Cannot remove old kernel in ubuntu 10.10
i have 3 kernels on my ubuntu 10.10 (2.6.35-22; 2.6.35-23; 2.6.35-24). i tried to remove the oldest kernel 2.6.35-22 through synaptic manager, but it says that the kernel is not installed on the system. in fact, all the kernels i have on my system were shown as not installed. when i right-click it highlights only 'mark for installation'. so i tried to remove it from the terminal using the command:
sudo apt-get remove linux-headers-2.6.20-15 linux-headers-2.6.20-15-generic linux-image-2.6.20-15-generic --purge
it processes and show that it has been deleted. then i typed:
it showed the grub2 without the deleted kernel. then i restarted, but it was still there. then i logged into the latest kernel (2.6.35-24) and typed:
it showed everything including the deleted kernel. then i typed:
and it now showed everything, including the deleted kernel. i thought it was a problem with grub showing deleted entries, so i tried to boot the deleted kernel (2.6.35-22) and surprisingly it booted very well, no hicks or slows. i rebooted into the latest kernel and then tried to re-run the kernel delete command via the terminal, but it said that the old kernel (2.6.35-22) is not installed.
i don't know what's wrong. how do i delete the 2.6.35-22 kernel and update my grub/grub 2?
pls help me!!!
***besides, my grub is stil GRUB 1.xx version. but pls how come i still have / can run grub and grub2 on my system? and is also can update both grubs? thanks