I have a standard Ubuntu 12.04 (32bit PAE) installed. At one time I used xorg-edgers PPA (I wanted to see how far nouveau has gotten) which also provided a linux kernel

Since edge xorg made my system unstable I used ppa-purge to downgrade packages to stable which also uninstalled kernel, but the removal process didn't remove 3.5 images in /boot, which has caused warnings during package operations when a package would trigger update-initramfs:

FATAL: Could not load /lib/modules/3.5.0-4-generic/modules.dep: No such file or directory

Deleting 3.5 images in /boot made the warnings go away, but after today's update they are back again. None of the 3.5 deb packages are installed but somehow my system remembers that it had a 3.5 kernel at one time. I'm wondering where this info is stored and how can I remove it.


Try sudo update-initramfs -d -k 3.5.0-4-generic.

It looks like the initramfs did not get removed for some reason when the kernel did.


Have a look at the file /var/lib/dpkg/status and edit as appropriate, but first make a backup of the file so you can roll back if needed.

  • Nope, the file doesn't contain '' or '3.5.0-4'. Also package managers like synaptic or aptitude don't have 3.5.0-4 listed either as available, installed, or anything. – Boris B. Oct 19 '12 at 18:08
  • Is the fact that the system has an unused(?) 3.5 kernel causing you any issues as such? If not, why not just leave it as is? – Clive van Hilten Oct 19 '12 at 19:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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