“/ usr / sbin / grub-mkconfig: 11: / etc / default / grub: *: não encontrado” erro ao remover os pacotes do kernel

0

Eu preciso instalar algumas coisas, mas ela diz que eu preciso remover o Linux Kernel Image para a versão 3.11.0-12-generic e o Linux Kernel extra para a versão 3.11.0-12-generic. Por favor ajude.

miles@Ubuntu-PC:~$ sudo apt-get install -f
[sudo] password for miles: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-image-3.11.0-12-generic linux-image-extra-3.11.0-12-generic
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 183 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 185492 files and directories currently installed.)
Removing linux-image-extra-3.11.0-12-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
update-initramfs: Deleting /boot/initrd.img-3.11.0-12-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
/usr/sbin/grub-mkconfig: 11: /etc/default/grub: splash: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-extra-3.11.0-12-generic.postrm line 328.
dpkg: error processing linux-image-extra-3.11.0-12-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.11.0-12-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
update-initramfs: Deleting /boot/initrd.img-3.11.0-12-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
/usr/sbin/grub-mkconfig: 11: /etc/default/grub: splash: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.11.0-12-generic.postrm line 328.
dpkg: error processing linux-image-3.11.0-12-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-3.11.0-12-generic
 linux-image-3.11.0-12-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

/ etc / default / grub:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian'
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash profile”
GRUB_CMDLINE_LINUX=""
    
por Miles 21.12.2013 / 19:33

1 resposta

1

Você não pode instalar nada porque existem pacotes quebrados em seu sistema. Considerando a saída de apt-get install -f , sua remoção falha devido a um erro em seu /etc/default/grub , linha 11:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash profile”

Essas não são as aspas que você está procurando. Você precisa de um par de " ou ' . Você pode alterá-los manualmente ou com

sudo sed -i -e 's/”/"/g' /etc/default/grub

Depois, você pode tentar remover esses pacotes quebrados ( sudo apt-get install -f ).

    
por David Foerster 21.12.2013 / 20:49