我确实这样做了,但是得到了我无法理解的依赖性错误
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
我愿意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
存在一些错误/警告
: 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.
- 我应该强制覆盖吗?
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.
硬件:Macbook Air 2013-mid
操作系统:Ubuntu 16.04
Linux 内核:4.4,但想要 4.6
答案1
您正在尝试仅安装一个软件包三必需的。
将这些包下载到你的主文件夹:
您可以使用wget
或使用浏览器来完成此操作。
然后运行sudo dpkg -i linux*.deb
答案2
这里
64位:
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
32位:
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