19th Jul2012
Author: Gyro

Fix problem with broken package that cannot be uninstalled in Ubuntu

During an update some package broke and caused apt-get to throw a fit. I could't remove the package, nor could I update it. It was really annoying, as no update would work, as long as this broken package was there.


If you got a similar problem, first try:

sudo apt-get autoclean
and then
sudo apt-get -f install

If that doesn't fix the problem:
Open /var/lib/dpkg/status, then remove the info about every package causing the issue. Make sure you really deleted all instances, then reinstalled the package(s) along with all dependencies, so all (broken) files are overwritten. After that, you could do a full uninstall, if that was you intention ;)

887

Keep Me Going
Your Name / Website:
Did you like my post? Buy me a Bitcoffee! 14JX52Li7zTKbyQv2omw4tvu6Bi1KzfHNW



Leave a Reply

Your email address will not be published. Required fields are marked *

What is 8 + 7 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)