A while back I installed some software (I think it was some SDK software) and it didn't work so I removed it. Ever since I have been having problems with Ubuntu. That was back in 14.10 and I was hoping that updating to 15.04 would fix it, but it didn't help. Whenever I start up Ubuntu and log in, it tells me that a problem was detected and wants me to send a report. I eventually stopped sending reports because it was the same thing over and over again. Now I can't even install software from the terminal repos or from the software center. This is the error I get when the Software Center tries to fix it:
installArchives() failed: (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 562833 files and directories currently installed.)
Removing click (0.4.33) ...
Traceback (most recent call last):
File "/usr/bin/click", line 31, in <module>
from click import commands
ImportError: cannot import name 'commands'
dpkg: error processing package click (--remove):
subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
click
Error in function:
Setting up pay-service (2.0.0+14.10.20140916-0ubuntu1) ...
Traceback (most recent call last):
File "/usr/bin/click", line 31, in <module>
from click import commands
ImportError: cannot import name 'commands'
dpkg: error processing package pay-service (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up click-apparmor (0.3.8) ...
Traceback (most recent call last):
File "/usr/bin/click", line 31, in <module>
from click import commands
ImportError: cannot import name 'commands'
dpkg: error processing package click-apparmor (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ubuntu-app-launch:
ubuntu-app-launch depends on click-apparmor; however:
Package click-apparmor is not configured yet.
dpkg: error processing package ubuntu-app-launch (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-app-launch-tools:
ubuntu-app-launch-tools depends on ubuntu-app-launch (= 0.4+15.04.20150410-0ubuntu1); however:
Package ubuntu-app-launch is not configured yet.
dpkg: error processing package ubuntu-app-launch-tools (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of unity8-private:amd64:
unity8-private:amd64 depends on pay-service; however:
Package pay-service is not configured yet.
dpkg: error processing package unity8-private:amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
And this is what I get after using apt-get install:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
click : Depends: python3-click (= 0.4.33) but 0.4.38.5 is to be installed
openvpn : Depends: libpkcs11-helper1 (>= 1.11) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I am sick of all the errors, and I have thought about reinstalling Ubuntu, but I don't want to start all over again getting it back the way I want it.
EDIT: So apparently, the problem solved itself without me doing anything. Thanks everyone for responding to me so quickly and giving me such good advice!
cat /etc/apt/sources.list
and add the output to your question. Leave out the# comments
.sudo apt-get install -f
.sudo mv /usr/bin/click /usr/bin/click.bak
. Update your system and install software and maybeclick
again.