Meu atualizador de software ficou preso durante a instalação do kernel do Linux 4.10.0-38. Quando matei o processo e execute sudo dpkg --configure -a
, obtive:
Setting up linux-headers-4.10.0-38-generic (4.10.0-38.42) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.10.0-38-generic /boot/vmlinuz-4.10.0-38-generic
E então nada aconteceu por um longo tempo. Quando eu pressiono control + C
, eu tenho:
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-4.10.0-38-generic.postinst line 110.
dpkg: error processing package linux-headers-4.10.0-38-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.10.0-38-generic (4.10.0-38.42) ...
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.10.0-38-generic
vmlinuz(/boot/vmlinuz-4.10.0-38-generic
) points to /boot/vmlinuz-4.10.0-38-generic
(/boot/vmlinuz-4.10.0-38-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.10.0-38-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.10.0-38-generic /boot/vmlinuz-4.10.0-38-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.10.0-38-generic /boot/vmlinuz-4.10.0-38-generic
E ficou preso novamente. Então eu pressiono control + C
de novo, eu tenho:
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.10.0-38-generic.postinst line 1052.
dpkg: error processing package linux-image-4.10.0-38-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-headers-generic:
linux-headers-generic depends on linux-headers-4.10.0-38-generic; however:
Package linux-headers-4.10.0-38-generic is not configured yet.
dpkg: error processing package linux-headers-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-headers-4.10.0-38-generic
linux-image-4.10.0-38-generic
linux-headers-generic
Em seguida, corro sudo dpkg --config -a
e obtenho:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-headers-generic Generic Linux kernel headers
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
linux-headers-4.10.0-38-generic Linux kernel headers for version 4.10.0 on 64
linux-image-4.10.0-38-generic Linux kernel image for version 4.10.0 on 64 bit
Agora não consigo instalar nada usando o apt, porque sempre que eu uso o apt, ele tentará configurar o kernel e travar novamente. Eu também preciso selecionar manualmente o kernel toda vez que eu inicializo meu computador porque o kernel padrão 4.10.0-38 não funcionava. Como posso consertar isso?
Eu tentei esta solução substituindo todos os 4.4.0-38
em comandos por 4.10.0-38
, mas não funcionou.
Agora meu /var/lib/dpkg/status
é:
Package: linux-image-extra-4.10.0-38-generic
Status: deinstall ok config-files
Priority: optional
Section: kernel
Installed-Size: 151751
Maintainer: Ubuntu Kernel Team <[email protected]>
Architecture: amd64
Source: linux
Version: 4.10.0-38.42
Depends: linux-image-4.10.0-38-generic, crda | wireless-crda
P.S. Estou usando o driver da nvidia e tenho o VirtualBox instalado. No entanto, não tenho o arquivo /etc/kernel/postinst.d/vboxadd
.