Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Times ago I have installed Linux Mint stuff on my Ubuntu 11.10 (now 12.04). I accidentally removed some files manually (they were under /usr/share). Now it is impossible to remove the related deb packages, and synaptic report various errors.

How can remove them bypassing errors? It is possible view the installed files in synaptic and remove them manually, but is tedious... also remain the problem to remove the files entry from the apt database.

Any suggestion?

share|improve this question

Open Terminal and run following command

First Clean Cache.

sudo apt-get clean

remove Unnecessary Packages

sudo apt-get autoremove

Update System to latest Packages and Reinstall broken packages

sudo apt-get update
sudo apt-get upgrade && sudo apt-get -f install
share|improve this answer
Solved. Removed the packages in /var/lib/dpkg/info, and THEN checked in synaptic "ripaire broken packages" – user60665 May 5 '12 at 13:57
Avoiding other warnings requires deleting any references to the missing packages in the file /var/lib/dpkg/status – user60665 May 6 '12 at 0:01

To fix or reinstall broken packages run the following in your terminal:

sudo apt-get --fix-broken install
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.