在 Ubuntu 16.04 中安装主线内核

在 Ubuntu 16.04 中安装主线内核

我正在尝试安装内核 v4.13-rc6,因为我听说了它有我的以太网接口的驱动程序。但是我以前从未处理过自定义内核,因此我认为我的问题的答案可能很明显。

据我了解Ubuntu 用户 Wiki:主线内核我应该从以下位置下载相应的 .deb 文件电力供应协议并安装它。

linux-headers-4.13.0-*_all.deb 工作原理:

engor@engorx1:~/Downloads$ sudo dpkg -i linux-headers-4.13.0-041300rc6_4.13.0-041300rc6.201708201831_all.deb 
(Reading database ... 281073 files and directories currently installed.)
Preparing to unpack linux-headers-4.13.0-041300rc6_4.13.0-041300rc6.201708201831_all.deb ...
Unpacking linux-headers-4.13.0-041300rc6 (4.13.0-041300rc6.201708201831) over (4.13.0-041300rc6.201708201831) ...
Setting up linux-headers-4.13.0-041300rc6 (4.13.0-041300rc6.201708201831) ...

Linux-headers-4.13.0--通用_4.13.0-_amd64.deb 失败:

engor@engorx1:~/Downloads$ sudo dpkg -i linux-headers-4.13.0-041300rc6-generic_4.13.0-041300rc6.201708201831_amd64.deb 
(Reading database ... 281073 files and directories currently installed.)
Preparing to unpack linux-headers-4.13.0-041300rc6-generic_4.13.0-041300rc6.201708201831_amd64.deb ...
Unpacking linux-headers-4.13.0-041300rc6-generic (4.13.0-041300rc6.201708201831) over (4.13.0-041300rc6.201708201831) ...
Setting up linux-headers-4.13.0-041300rc6-generic (4.13.0-041300rc6.201708201831) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.13.0-041300rc6-generic /boot/vmlinuz-4.13.0-041300rc6-generic
ERROR (dkms apport): kernel package linux-headers-4.13.0-041300rc6-generic is not supported
Error! Bad return status for module build on kernel: 4.13.0-041300rc6-generic (x86_64)
Consult /var/lib/dkms/r8168/8.043.02/build/make.log for more information.

可以找到 /var/lib/dkms/r8168/8.043.02/build/make.log这里

编辑:两个软件包安装时都出现了错误。感谢 Pilot6 的回答。但我的问题的第二部分仍未得到解答。

问题:我怎样才能让 grub 使用新内核启动?

答案1

相关内容