I cannot update anything or install new software because of problems with the dependencies. The terminal suggest to run apt-get -f install
. After trying this, there is a problem saying that it failed to correct efficiencies. Then it says:
The following packages have unmet dependencies:
update-notifier : Depends: update-notifier-common (= 3.168.9) but 3.168.8 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
I have tried some of the solutions to similar problems posted in here but all have been futile. One of them said to look at the log file and try to remove the "broken" packages... but my log file was blank...
** UPDATE **
I ran the command sudo apt-cache policy update-notifier update-notifier-common
This was the output:
update-notifier:
Installed: 3.168.9
Candidate: 3.192.1.4
Version table:
3.192.1.4 500
500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
3.192 500
500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
*** 3.168.9 100
100 /var/lib/dpkg/status
3.168.7 500
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
3.168 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
update-notifier-common:
Installed: 3.168.8
Candidate: 3.192.1.4
Version table:
3.192.1.4 500
500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
3.192 500
500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/main i386 Packages
*** 3.168.8 100
100 /var/lib/dpkg/status
3.168.7 500
500 **security.ubuntu**/ubuntu xenial-security/main amd64 Packages
500 **security.ubuntu**/ubuntu xenial-security/main i386 Packages
3.168 500
500 **archive.ubuntu**/ubuntu xenial/main amd64 Packages
500 **archive.ubuntu**/ubuntu xenial/main i386 Packages
Note : the last 4 links are modified. They should start with http:// and after ".ubuntu" should have a .com . However, I can only include up to 8 links.
update-notifier-common
that clash are not the correct versions for Ubuntu xenial (16.04) as shown in https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=update-notifier-common so it looks like you aren't using Ubuntu, or if using Ubuntu don't update or you've replaced your official sources with unofficial & thus this is your issue. I'd suggest checking your sources, and telling us what you actually are running. – guiverc Jan 11 '19 at 21:59apt-cache policy update-notifier update-notifier-common
to your question. Your problem I still believe is sources; changes made since install. We can't view what changes you've made to /etc/apt/sources.list* files, but this command will at least provide sources for those two packages. – guiverc Jan 14 '19 at 22:16do-release-upgrade
(or upgrade from one release to a later one). By introducing 'bionic' sources into your machine; it has detected later package version numbers, and 18.04/bionic packages are now in your system. apt/dpkg won't go backwards (easily) as they always go to the latest package as it's got later fixes. – guiverc Jan 15 '19 at 22:31