Code:sudo apt-get remove linux-image-2.6.31-17-genericfirst line had a small syntax error.Code:sudo update-grub
Code:sudo apt-get remove linux-image-2.6.31-17-genericfirst line had a small syntax error.Code:sudo update-grub
stmpoodle@stmpoodle-laptop:~$ sudo update-grub
[sudo] password for stmpoodle:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Vista (loader) on /dev/sda1
done
stmpoodle@stmpoodle-laptop:~$ sudo apt-get remove linux-image-2.6.31-17-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-image-2.6.31-17-generic
stmpoodle@stmpoodle-laptop:~$
LOL - it's just not my night on this one. I got the error message again "couldn't find package"
hi
ok - try this:
sudo apt-get remove --purge 2.6.31-17-generic
sudo update-grub
have fun
ciao
"What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht
stmpoodle@stmpoodle-laptop:~$ sudo apt-get remove --purge 2.6.31-17-generic
[sudo] password for stmpoodle:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package 2.6.31-17-generic
stmpoodle@stmpoodle-laptop:~$ sudo apt-get remove purge 2.6.31-17-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package purge
stmpoodle@stmpoodle-laptop:~$ sudo apt-get remove -purge linux-image-2.6.31-17-generic
E: Command line option 'p' [from -purge] is not known.
stmpoodle@stmpoodle-laptop:~$ sudo apt-get remove --purge linux-image-2.6.31-17-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-image-2.6.31-17-generic
stmpoodle@stmpoodle-laptop:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Vista (loader) on /dev/sda1
done
stmpoodle@stmpoodle-laptop:~$
It looks like the PURGE command is treated the same as REMOVE and the system can't find the package or line to remove it, even though "2.6.31-17-generic" is there in grub.
Alright, lets see what kernel versions are installed:
dpkg -l | grep linux-image
stmpoodle@stmpoodle-laptop:~$ dpkg -l | grep linux-image
rc linux-image-2.6.32-21-generic 2.6.32-21.32 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-22-generic 2.6.32-22.33 Linux kernel image for version 2.6.32 on x86
ii linux-image-generic 2.6.32.22.23 Generic Linux kernel image
stmpoodle@stmpoodle-laptop:~$
I typed the terminal command in and this is what I received in response.
As expected, there is not linux-image-2.6.31-17-generic. I suspect that you must have upgraded, and what grub finds is a bunch of old config files, probably in /boot. What's the output of ls /boot?
Also try:
sudo apt-get --purge autoremove
to mikewhatever: I agree. But I'll have to put this little project temporarily on hold while the PC is being serviced. It's nothing to do with Linux or Ubuntu. In fact it was giving me serious problems of flickering screen in Windows Vista. So to test if whether it was software or hardware, I worked in Ubuntu (its dual booted) for a few days. Ironically, the same problems only happened about 10% of the time in Ubuntu compared to 100% in Windows. But that was still evident that it was the system bios misbehaving and needed professional help under warranty.
As soon as I get it back in healthy shape again, I will contact you here. Please keep the subscription to this thread for a while. Thanks.
Bookmarks