Sometimes when you install manually some packages, they are broken and the command

sudo apt --fix-broken install

does not works !

In this case, 2 steps to correct:

  1. Soft correction
sudo apt-get update --fix-missing
sudo dpkg --configure -a
sudo apt-get install -f

If the problem of a broken package still exist you can try the hard correction: Edit the dpkg status file manually

  1. Hard correction

Edit the dpkg status file manually:

sudo nano /var/lib/dpkg/status

Locate the corrupt package, and remove the whole block of information about it and save the file.

To control, if all is ok:

sudo apt install

Next Post Previous Post