如何修复 Ubuntu 20.04 升级 5.8.0-

Sco*_*ers 8 upgrade boot kernel 20.04

我有戴尔 xps 笔记本电脑。它随 Windows 10 一起提供,但我将其擦除以安装 Ubuntu 18.04,这很好。去年,我升级到 ubuntu 20.04。除了在关机时有很多关于设备未断开连接的消息外,它运行得非常好。有时不同的消息。启动时,总​​是有磁盘检查。

今天,我做了“apt升级”,有42个升级。这是在昨天更新和升级之后。因此,过去一天有 42 个新更新……回想起来似乎很高。现在,我无法正常启动到我的操作系统。我得到加密密码屏幕,但之后只是挂起戴尔和 Ubuntu 标志。

硬重启,esc,我进入启动页面。我的选择是 Ubuntu,使用 Linux 5.8.0-34 通用 Ubuntu,使用 Linux 5.8.0-34 通用(恢复)Ubuntu,使用 Linux 5.4.0-59 通用 Ubuntu,使用 Linux 5.4.0-59 通用(恢复)

如果我使用 5.4.0-59 generic 启动,我可以进入并且一切看起来都和以前一样。所以,这是我在此期间的解决方法。

rpr*_*rpr 4

我还可以确认 Ubuntu 20.04.1 已升级到 Linux 5.8.0-34。

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
...

$ inxi -r
Repos:     Active apt repos in: /etc/apt/sources.list 
           1: deb http://hr.archive.ubuntu.com/ubuntu/ focal main restricted
           2: deb http://hr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
           3: deb http://hr.archive.ubuntu.com/ubuntu/ focal universe
           4: deb http://hr.archive.ubuntu.com/ubuntu/ focal-updates universe
           5: deb http://hr.archive.ubuntu.com/ubuntu/ focal multiverse
           6: deb http://hr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
           7: deb http://hr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
           8: deb http://archive.canonical.com/ubuntu focal partner
           9: deb http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse
Run Code Online (Sandbox Code Playgroud)

/var/log/apt/term.log中我可以找到以下内容:

Selecting previously unselected package linux-image-5.8.0-34-generic.
Preparing to unpack .../46-linux-image-5.8.0-34-generic_5.8.0-34.37~20.04.2_amd64.deb ...
Unpacking linux-image-5.8.0-34-generic (5.8.0-34.37~20.04.2) ...
Run Code Online (Sandbox Code Playgroud)

apt-cache 显示有关新内核包的以下信息:

$ apt-cache showpkg linux-image-5.8.0-34-generic
Package: linux-image-5.8.0-34-generic
Versions: 
5.8.0-34.37~20.04.2 (/var/lib/apt/lists/hr.archive.ubuntu.com_ubuntu_dists_focal-updates_main_binary-amd64_Packages) (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_focal-security_main_binary-amd64_Packages) (/var/lib/dpkg/status)
...
Run Code Online (Sandbox Code Playgroud)

所以,新内核似乎来自官方存储库。另请参阅: https://packages.ubuntu.com/focal/linux-image-5.8.0-34-generic https://packages.ubuntu.com/focal-updates/linux-image-5.8.0-34-通用的

我的问题是Linux内核升级后Ubuntu桌面环境(GNOME)无法启动。在 Linux 5.4.0-59-generic 上它工作得很好。

根据guiverc的建议,我删除了 Ubuntu 20.04 上对 HWE 堆栈的支持。以下文章在这方面很有用: Disable HWE and continue with GA kernal of 16.04? https://wiki.ubuntu.com/Kernel/LTSEnablementStack

$ sudo apt install linux-generic
$ sudo apt remove linux-image-5.8.0-34-generic linux-headers-5.8.0-34-generic linux-modules-5.8.0-34-generic linux-modules-extra-5.8.0-34-generic linux-hwe-5.8-headers-5.8.0-34 linux-generic-hwe-20.04
Run Code Online (Sandbox Code Playgroud)

重新启动后,系统回到 Linux 5.4.0-59-generic,并且“apt update”不再提供到 Linux 5.8 的升级。


pab*_*omd 1

我的笔记本电脑(Ryzen 4 + rtx2060)刚刚遇到了同样的问题。原因是我使用的自定义 GRUB 标志“nomodeset amdgpu.dc=0”。

我将 /etc/default/grub 恢复为默认值,运行 sudo update-grub ,一切都再次运行。

再加上内核 5.8 和 nvidia 驱动程序 460 修复了我遇到的几乎所有问题(挂起后黑屏、hdmi 无法工作、许多游戏无法运行)。

希望能帮助到你