How to fix the apt fix-broken

If you are facing some unmet dependencies like that and the suggested “apt –fix-broken install” doesn’t work, then maybe this suggestion will help:

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
ubuntu-desktop : Depends: libu2f-udev but it is not going to be installed
ubuntu-desktop-minimal : Depends: libu2f-udev but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

You should manually install the missing package, normally you will find it inside /var/cache/apt/archives otherwise you need to download it manually from Internet. In my case:

$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/libu2f-udev_1.1.10-3build1_all.deb
Selecting previously unselected package libu2f-udev.
(Reading database … 332193 files and directories currently installed.)
Preparing to unpack …/libu2f-udev_1.1.10-3build1_all.deb …
Unpacking libu2f-udev (1.1.10-3build1) over (1.1.10-3build1) …
Setting up libu2f-udev (1.1.10-3build1) …

Then finally a simple apt-get install -f finished the installation:

$ sudo apt-get install -f


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s