升级后没有看到新内核

升级后没有看到新内核

我有 Ubuntu 18.04,想升级到内核 4.16.9。尝试过 :update-grub,,,如上所述update-grub2sudo update-initramfs -usudo grub2-install /dev/sda这里这里(没有帮助)。

uname -a显示旧内核。新内核甚至不在启动菜单中 Ubuntu 的附加启动选项列表中。

我尝试过dpkg -i *.deb这些包: 在此处输入图片描述

答案1

我不认为你想尝试4.16.9,但是

去:http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16.9/

选择文件:

  • Linux 头文件
  • Linux 标头-4.16.9-041609-generic_4.16.9-041609.201805161024_amd64.deb
  • Linux-映像-未签名-4.16.9-041609-generic_4.16.9-041609.201805161024_amd64.deb
  • Linux 模块-4.16.9-041609-generic_4.16.9-041609.201805161024_amd64.deb

用于下载到目录,例如~/Downloads

然后切换到目录,确认他们已经完成下载并安装新内核:

$ cd ~/Downloads
$ ll *.deb
-rw-rw-r-- 1 rick rick 10956316 May 16 21:59 linux-headers-4.16.9-041609_4.16.9-041609.201805161024_all.deb
-rw-rw-r-- 1 rick rick  1062312 May 16 21:59 linux-headers-4.16.9-041609-generic_4.16.9-041609.201805161024_amd64.deb
-rw-rw-r-- 1 rick rick  7938532 May 16 21:59 linux-image-unsigned-4.16.9-041609-generic_4.16.9-041609.201805161024_amd64.deb
-rw-rw-r-- 1 rick rick 45088060 May 16 21:59 linux-modules-4.16.9-041609-generic_4.16.9-041609.201805161024_amd64.deb
$ sudo dpkg -i *.deb
Selecting previously unselected package linux-headers-4.16.9-041609.
(Reading database ... 603082 files and directories currently installed.)
Preparing to unpack linux-headers-4.16.9-041609_4.16.9-041609.201805161024_all.deb ...
Unpacking linux-headers-4.16.9-041609 (4.16.9-041609.201805161024) ...
Selecting previously unselected package linux-headers-4.16.9-041609-generic.
Preparing to unpack linux-headers-4.16.9-041609-generic_4.16.9-041609.201805161024_amd64.deb ...
Unpacking linux-headers-4.16.9-041609-generic (4.16.9-041609.201805161024) ...
Selecting previously unselected package linux-image-unsigned-4.16.9-041609-generic.
Preparing to unpack linux-image-unsigned-4.16.9-041609-generic_4.16.9-041609.201805161024_amd64.deb ...
Unpacking linux-image-unsigned-4.16.9-041609-generic (4.16.9-041609.201805161024) ...
Selecting previously unselected package linux-modules-4.16.9-041609-generic.
Preparing to unpack linux-modules-4.16.9-041609-generic_4.16.9-041609.201805161024_amd64.deb ...
Unpacking linux-modules-4.16.9-041609-generic (4.16.9-041609.201805161024) ...
Setting up linux-headers-4.16.9-041609 (4.16.9-041609.201805161024) ...
dpkg: dependency problems prevent configuration of linux-headers-4.16.9-041609-generic:
 linux-headers-4.16.9-041609-generic depends on libssl1.1 (>= 1.1.0); however:
  Package libssl1.1 is not installed.

dpkg: error processing package linux-headers-4.16.9-041609-generic (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-unsigned-4.16.9-041609-generic:
 linux-image-unsigned-4.16.9-041609-generic depends on linux-base (>= 4.5ubuntu1~16.04.1); however:
  Version of linux-base on system is 4.0ubuntu1.

dpkg: error processing package linux-image-unsigned-4.16.9-041609-generic (--install):
 dependency problems - leaving unconfigured
Setting up linux-modules-4.16.9-041609-generic (4.16.9-041609.201805161024) ...
Errors were encountered while processing:
 linux-headers-4.16.9-041609-generic
 linux-image-unsigned-4.16.9-041609-generic

然后你会看到一条错误消息漏洞。现在你必须用这个答案来修复它:4.16.3 之后无法升级内核

相关内容