Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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
3  
Solved. Removed the packages in /var/lib/dpkg/info, and THEN checked in synaptic "ripaire broken packages" –  user60665 May 5 '12 at 13:57
1  
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

Your Answer

 
discard

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.