Ainda sou novato no que diz respeito ao Ubuntu e tive alguns problemas ao tentar atualizar o kernel.
Eu segui instruções como isso tentando atualizar o kernel, mas sempre fica preso aqui:
Setting up linux-image-4.9.35-040935-generic (4.9.35-040935.201706290837) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.9.35-040935-generic
vmlinuz(/boot/vmlinuz-4.9.35-040935-generic
) points to /boot/vmlinuz-4.9.35-040935-generic
(/boot/vmlinuz-4.9.35-040935-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.9.35-040935-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.9.35-040935-generic /boot/vmlinuz-4.9.35-040935-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.9.35-040935-generic /boot/vmlinuz-4.9.35-040935-generic
E então ele repete o primeiro erro novamente. Eu encontrei esta página com algumas sugestões. A execução de sudo apt-get update –fix-missing
me dá isso no final:
W: The repository 'http://ppa.launchpad.net/floe/beignet/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/floe/beignet/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
A execução de sudo apt-get install -f
(e, algumas vezes, ao tentar atualizar ou instalar algo) me fornece isso:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
~$ sudo apt-get install -f
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
~$ sudo dpkg --configure -a
Setting up linux-image-4.9.35-040935-generic (4.9.35-040935.201706290837) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.9.35-040935-generic
vmlinuz(/boot/vmlinuz-4.9.35-040935-generic
) points to /boot/vmlinuz-4.9.35-040935-generic
(/boot/vmlinuz-4.9.35-040935-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.9.35-040935-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.9.35-040935-generic /boot/vmlinuz-4.9.35-040935-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.9.35-040935-generic /boot/vmlinuz-4.9.35-040935-generic
O que me leva de volta ao primeiro erro. Estou um pouco nervoso sobre editar o status do dpkg manualmente , já que parece que eu poderia acidentalmente causar mais problemas.
Se isso faz alguma diferença, estou rodando o Bash no Ubuntu no Windows e é isso que eu recebo ao verificar a versão atual do kernel.
~$ uname -r
4.4.0-43-Microsoft
~$ uname -a
Linux LAPTOP-CMEAJ743 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux