Como posso remover um pacote?

2

Como remover linux-image-extra-3.13.0-49-generic do meu sistema?

Não consigo instalar nenhum pacote devido a este erro:

$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-image-extra-3.13.0-49-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 152 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 225623 files and directories currently installed.)
Removing linux-image-extra-3.13.0-49-generic (3.13.0-49.83) ...
depmod: FATAL: could not load /boot/System.map-3.13.0-49-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-49-generic /boot/vmlinuz-3.13.0-49-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-49-generic /boot/vmlinuz-3.13.0-49-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-49-generic /boot/vmlinuz-3.13.0-49-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-49-generic
grep: /boot/config-3.13.0-49-generic: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_UCk0cv/lib/modules/3.13.0-49-generic/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_UCk0cv/lib/modules/3.13.0-49-generic/modules.builtin: No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-49-generic /boot/vmlinuz-3.13.0-49-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-49-generic /boot/vmlinuz-3.13.0-49-generic
run-parts: executing /etc/kernel/postinst.d/zz-runlilo 3.13.0-49-generic /boot/vmlinuz-3.13.0-49-generic
Added Linux  *
Fatal: open /boot/vmlinuz-3.13.0-49-generic.efi.signed: No such file or directory
run-parts: /etc/kernel/postinst.d/zz-runlilo exited with return code 1
dpkg: error processing package linux-image-extra-3.13.0-49-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-3.13.0-49-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Não é o mesmo que http://askubuntu.com/questions/89710/how-do-i-free-up-more-space-in-boot pergunta, pois apt-get purge xxx não funciona (o mesmo erro).

    
por user2647545 18.05.2015 / 22:33

1 resposta

1

Pesquisei muitas respostas e tentei todas as possíveis sem sorte.

os sudo apt-get -f install e sudo apt-get install otherpackage all recebem o mesmo erro acima no final:

Não consigo instalar ou remover nenhum pacote. A solução é simples (demorei um dia):

Basta fazer o download do arquivo vmlinuz-3.13.0-49-generic.efi.signed para a pasta /boot e executar sudo apt-get autoremove

Desde então, tudo está bem. Obrigado a todos pela ajuda e tempo!

    
por user2647545 20.05.2015 / 07:15