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.

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 3.5.0.4.

Since edge xorg made my system unstable I used ppa-purge to downgrade packages to stable which also uninstalled kernel 3.5.0.4, 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.

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer
add comment

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.

share|improve this answer
    
Nope, the file doesn't contain '3.5.0.4' 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
add comment

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.