Como instalar o Linux Kernel 4.6 no Ubuntu 16.04?

1

Eu faço, mas recebo erros de dependência que eu não entendo

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600_4.6.0-040600.201605151930_all.deb
sudo dpkg -i *.deb
Selecting previously unselected package linux-headers-4.6.0-040600-generic.
(Reading database ... 412868 files and directories currently installed.)
Preparing to unpack linux-headers-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb ...
Unpacking linux-headers-4.6.0-040600-generic (4.6.0-040600.201606100558) ...
dpkg: dependency problems prevent configuration of linux-headers-4.6.0-040600-generic:
 linux-headers-4.6.0-040600-generic depends on linux-headers-4.6.0-040600; however:
  Package linux-headers-4.6.0-040600 is not installed.

dpkg: error processing package linux-headers-4.6.0-040600-generic (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-4.6.0-040600-generic

Eu faço masi@masi:~$ sudo dpkg -i linux*.deb

Selecting previously unselected package linux-headers-4.6.0-040600.
(Reading database ... 418610 files and directories currently installed.)
Preparing to unpack linux-headers-4.6.0-040600_4.6.0-040600.201606100558_all.deb ...
Unpacking linux-headers-4.6.0-040600 (4.6.0-040600.201606100558) ...
Selecting previously unselected package linux-headers-4.6.0-040600-generic.
Preparing to unpack linux-headers-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb ...
Unpacking linux-headers-4.6.0-040600-generic (4.6.0-040600.201606100558) ...
Selecting previously unselected package linux-image-4.6.0-040600-generic.
Preparing to unpack linux-image-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
Done.
Unpacking linux-image-4.6.0-040600-generic (4.6.0-040600.201606100558) ...
Setting up linux-headers-4.6.0-040600 (4.6.0-040600.201606100558) ...
Setting up linux-headers-4.6.0-040600-generic (4.6.0-040600.201606100558) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
rmdir: failed to remove '': No such file or directory
Error! Problems with depmod detected.  Automatically uninstalling this module.
DKMS: Install Failed (depmod problems).  Module rolled back to built state.
Setting up linux-image-4.6.0-040600-generic (4.6.0-040600.201606100558) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic

Good news! Module version  for wl.ko
exactly matches what is already found in kernel 4.6.0-040600-generic.
DKMS will not replace this module.
You may override by specifying --force.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
update-initramfs: Generating /boot/initrd.img-4.6.0-040600-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.6.0-040600-generic
Found initrd image: /boot/initrd.img-4.6.0-040600-generic
Found linux image: /boot/vmlinuz-4.4.0-24-generic
Found initrd image: /boot/initrd.img-4.4.0-24-generic
Found linux image: /boot/vmlinuz-4.4.0-22-generic
Found initrd image: /boot/initrd.img-4.4.0-22-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done

onde existem alguns erros / avisos

  • : Unable to find an initial ram disk that I know how to handle. Will not try to make an initrd. rmdir: failed to remove '': No such file or directory Error! Problems with depmod detected. Automatically uninstalling this module. DKMS: Install Failed (depmod problems). Module rolled back to built state.
  • Eu deveria sobrescrever com força? %código%

Hardware: Macbook Air 2013-mid
SO: Ubuntu 16.04
Kernel do Linux: 4.4, mas queria 4.6

    
por Léo Léopold Hertz 준영 13.06.2016 / 17:47

2 respostas

5

Você está tentando instalar apenas um pacote de três obrigatório.

Faça o download desses pacotes para sua pasta pessoal:

link

link

link

Você pode fazer isso usando wget ou usando um navegador.

Em seguida, execute sudo dpkg -i linux*.deb

    
por Pilot6 13.06.2016 / 17:51
3

aqui

64Bit:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-image-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600_4.6.0-040600.201606100558_all.deb

sudo dpkg -i *.deb

32Bit :

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600_4.6.0-040600.201605151930_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600-generic_4.6.0-040600.201605151930_i386.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-image-4.6.0-040600-generic_4.6.0-040600.201605151930_i386.deb

sudo dpkg -i *.deb
    
por Inforcer25 13.06.2016 / 18:07