Darkland | net

Cool Trick When dpkg Fucks Up

Published on 17 April 2014 by amj

The following is specific to the shown packages. The idea is the same for other packages that dpkg chokes on.

sudo rm /var/lib/dpkg/info/linux-backports-modules-2.6.24-16-generic.postrm
sudo rm /var/lib/dpkg/info/linux-backports-modules-2.6.24-17-generic.postrm
sudo rm /var/lib/dpkg/info/linux-ubuntu-modules-2.6.24-16-generic.postrm
sudo rm /var/lib/dpkg/info/linux-ubuntu-modules-2.6.24-17-generic.postrm
sudo apt-get remove linux-ubuntu-modules-2.6.24-16-generic \
linux-ubuntu-modules-2.6.24-17-generic \
linux-backports-modules-2.6.24-16-generic \
linux-backports-modules-2.6.24-17-generic