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.

Trying to purge the entry below but response is can't find. Then I do grub update and it sees the entries. Help

luisc@luisc-OptiPlex-GX280:~$ sudo apt-get purge linux-image-2.6.38-13
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-2.6.38-13
E: Couldn't find any package by regex 'linux-image-2.6.38-13'
luisc@luisc-OptiPlex-GX280:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-16-generic
Found initrd image: /boot/initrd.img-3.0.0-16-generic
Found linux image: /boot/vmlinuz-2.6.38-13-generic
Found initrd image: /boot/initrd.img-2.6.38-13-generic
Found linux image: /boot/vmlinuz-2.6.35-31-generic
Found initrd image: /boot/initrd.img-2.6.35-31-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Vista (loader) on /dev/sda1
Found Ubuntu 10.10 (10.10) on /dev/sda11
Found Ubuntu 11.10 (11.10) on /dev/sda9
done

Tried the suggested command and this is what I get.

luisc@luisc-OptiPlex-GX280:~$ sudo apt-get purge linux-image-2.6.38-13-generic
[sudo] password for luisc: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-2.6.38-13-generic
E: Couldn't find any package by regex 'linux-image-2.6.38-13-generic'
luisc@luisc-OptiPlex-GX280:~$ 
share|improve this question
    
Could you add the output of dpkg -l linux-image* ? –  Jeremy Kerr Mar 13 '12 at 8:03
add comment

1 Answer 1

You'll need to use the full package name in the purge command line - you're missing the -generic suffix.

This should work:

sudo apt-get purge linux-image-2.6.38-13-generic
share|improve this answer
    
one need not type the whole thing, just type tab after linux-, bash will prompt the remaining package name. –  Vineet Menon Mar 7 '12 at 6:52
    
... provided you have bash-completion installed, and the completion scripts are sourced into your shell session correctly. –  Jeremy Kerr Mar 7 '12 at 6:56
    
..and that's already done in a standard Ubuntu installation! :D –  Vineet Menon Mar 8 '12 at 14:27
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.