Can I go ahead and downgrade apt to upgrade apt-utils? Ubuntu server 16.04

Hi guys, I need a word on this. I try to update my Ubuntu server 16.04. It does not have anything installed which is not from the default repo’s and has had a weekly or daily update/upgrade run. I did try to reboot.

sudo apt-get update && sudo apt-get upgrade

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.
apt-utils : Depends: apt (= 1.2.20) but 1.2.24 is installed
E: Unmet dependencies. Try using -f.


apt list --upgradable

apt-transport-https/xenial-updates 1.2.24 amd64 [upgradable from: 1.2.20]
apt-utils/xenial-updates 1.2.24 amd64 [upgradable from: 1.2.20]
libgl1-mesa-dri/xenial-updates 17.0.7-0ubuntu0.16.04.1 amd64 [upgradable from: 12.0.6-0ubuntu0.16.04.1]
linux-generic/xenial-updates,xenial-security 4.4.0.89.95 amd64 [upgradable from: 4.4.0.87.93]
linux-headers-generic/xenial-updates,xenial-security 4.4.0.89.95 amd64 [upgradable from: 4.4.0.87.93]
linux-image-generic/xenial-updates,xenial-security 4.4.0.89.95 amd64 [upgradable from: 4.4.0.87.93]
linux-libc-dev/xenial-updates,xenial-security 4.4.0-89.112 amd64 [upgradable from: 4.4.0-87.110]
mesa-vdpau-drivers/xenial-updates 17.0.7-0ubuntu0.16.04.1 amd64 [upgradable from: 12.0.6-0ubuntu0.16.04.1]
open-iscsi/xenial-updates 2.0.873+git0.3b4b4500-14ubuntu3.4 amd64 [upgradable from: 2.0.873+git0.3b4b4500-14ubuntu3.3]
unattended-upgrades/xenial-updates,xenial-updates 0.90ubuntu0.7 all [upgradable from: 0.90ubuntu0.6]


TL;DR: So, I have apt version 1.2.24, need apt-utils version 1.2.24, but this needs version 1.2.20 of apt to upgrade. What the F… Why is this even happening? Is it safe to downgrade apt and see if it will upgrade apt-utils?

Edit: This is strange because apt-utils 1.2.24 should have apt 1.2.24 as a dependency https://launchpad.net/ubuntu/xenial/amd64/apt-utils/1.2.24

Is apt broken, should I reinstall?

Edit II: So I just -f installed apt-utils. Don’t know if I’ve broken the dependency.

Fix broken packages if need be.

sudo apt --fix-broken install
1 Like