内核 5.11 更新后,计算机无法启动?与 nVidia 驱动程序有关。(内核 5.11.0.25.27~20.04.10)

内核 5.11 更新后,计算机无法启动?与 nVidia 驱动程序有关。(内核 5.11.0.25.27~20.04.10)

几乎解决了——请帮忙!

我之前以为这是由于安装了 i386 架构,但事实上是因为最新的 Ubuntu 20.04.10 Linux 内核 5.11.0.25.27

    $ dpkg --list | grep linux-image
ii  linux-image-5.11.0-25-generic              5.11.0-25.27~20.04.1                  amd64        Signed kernel image generic
rc  linux-image-5.4.0-42-generic               5.4.0-42.46                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-52-generic               5.4.0-52.57                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-53-generic               5.4.0-53.59                           amd64        Signed kernel image generic
ii  linux-image-5.8.0-63-generic               5.8.0-63.71~20.04.1                   amd64        Signed kernel image generic
ii  linux-image-generic-hwe-20.04              5.11.0.25.27~20.04.10                 amd64        Generic Linux kernel image

这是最后一个显然导致我的 HP Pavilion dv7-3130eo 出现问题的。我能够在 5.8.0-63-generic 内核中启动,现在正在尝试找到删除最新内核的方法。

我尝试运行这个:

    sudo apt-get remove "linux-image-5.11*"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'linux-image-5.11.0-1009-gcp' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-1007-azure' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-1008-oracle' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-25-generic' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-1013-oracle' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-22-lowlatency' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-1014-aws' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-1014-gcp' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-1012-azure' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-22-generic' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-1009-aws' for glob 'linux-image-5.11*'
Note, selecting 'linux-image-5.11.0-25-lowlatency' for glob 'linux-image-5.11*'
Package 'linux-image-5.11.0-1007-azure' is not installed, so not removed
Package 'linux-image-5.11.0-1008-oracle' is not installed, so not removed
Package 'linux-image-5.11.0-1009-aws' is not installed, so not removed
Package 'linux-image-5.11.0-1009-gcp' is not installed, so not removed
Package 'linux-image-5.11.0-1012-azure' is not installed, so not removed
Package 'linux-image-5.11.0-1013-oracle' is not installed, so not removed
Package 'linux-image-5.11.0-1014-aws' is not installed, so not removed
Package 'linux-image-5.11.0-1014-gcp' is not installed, so not removed
Package 'linux-image-5.11.0-22-generic' is not installed, so not removed
Package 'linux-image-5.11.0-22-lowlatency' is not installed, so not removed
Package 'linux-image-5.11.0-25-lowlatency' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  amd64-microcode intel-microcode iucode-tool linux-headers-generic-hwe-20.04 thermald
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-unsigned-5.11.0-25-generic
Suggested packages:
  fdutils linux-doc | linux-hwe-5.11-source-5.11.0 linux-hwe-5.11-tools linux-modules-extra-5.11.0-25-generic
The following packages will be REMOVED:
  linux-generic-hwe-20.04 linux-image-5.11.0-25-generic linux-image-generic-hwe-20.04 linux-modules-extra-5.11.0-25-generic
The following NEW packages will be installed:
  linux-image-unsigned-5.11.0-25-generic

不确定我是否应该按“是”...或者找到另一种方法完全卸载最新版本?请帮我解决这个问题? 如何准确地删除或停用有问题的内核并确保保留和保护正常运行的内核?

关于 Ubuntu 20.04.2 LTS 内核 5.11.0-25 的错误报告

类似帖子:linux-image-5.11.0-22-generic:amd64 自动安装后 20.04.2 无法启动

似乎与我的 Nvidia 驱动程序(Ubuntu 系统自带)搭配的内核更新有关。
这里有一些类似的经历,但这些帖子没有提供任何明确的解决方法,除了删除内核,但如何以正确的方式做到这一点?:

将内核 5.8 更新至 5.11 ubuntu 20.1 无法启动

内核更新至 5.11 后 NVIDIA 驱动程序无法运行


旧的解决方法:这不是问题的真正原因!在这里好心人的帮助下,我得到了进入恢复模式的指导,我决定尝试删除几个月前安装的 i386 架构。我运行了以下命令:sudo apt-get remove libc6:i386

我的电脑有 Nvidia Geforce,是 64 位 Ubuntu。可能是一些新更新导致我无法启动。我之前安装了 i386 架构,以便运行电脑游戏(Enemy Territory),但它不起作用。现在我删除了 i386,我的电脑又可以正常工作了。谢谢大家!


旧帖:描述第一次无法启动计算机的经历,不知道问题的原因:

我的HP Pavilion dv7-3130eo电脑突然无法启动。一切都加载,甚至 Ubuntu 徽标也出现了。我按“ESC”来跟踪终端输出。我只能快速浏览一下GRUB failed boot detection.:(通过检查 boot.log1 确认)在某个时刻,屏幕变黑。唯一可见的元素是:

_

在左上角。屏幕一直卡在那里。当我点击电源按钮时,它会在几分钟后自动关闭。还有

我尝试做的是: 首先,我能够从新的 Ubuntu 安装 USB 密钥启动,我这样做了很多次。在这里,我首先尝试安装硬盘并删除了一些文件。我很快发现硬盘还远远没有满。它仍然无法启动。

然后我在 USB-Boot 中安装了 Boot-repair 软件包,并尝试修复启动。尝试执行此操作时,出现了以下消息: 当前会话处于 BIOS 兼容模式。请在 UEFI 固件中禁用 BIOS 兼容/CSM/Legacy 模式。

然后我重启并进入 BIOS 查看如何启用 UEFI。但是 BIOS 没有提供任何此类选项,总体来说它似乎是一个非常简单或旧版本的 BIOS。

我重新启动并从 USB 再次启动,使用 Boot-repair 包运行测试。这是完整的 pastebin 输出: Boot-repair 测试的 Pastebin

这是我在 pastebin 中注意到的:

=============================== StdErr Messages ================================

File descriptor 63 (pipe:[76976]) leaked on lvs invocation. Parent PID 22927: /bin/bash

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to fix packages) and reinstall the grub-efi-amd64-signed of
sda5,
using the following options:        sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s  use-standard-efi-file    

Blockers in case of suggested repair: __________________________________________

 The current session is in BIOS-compatibility mode. Please disable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB) that is compatible with UEFI booting mode. For example, use a live-USB of Boot-Repair-Disk-64bit (www.sourceforge.net/p/boot-repair-cd), after making sure your BIOS is set up to boot USB in EFI mode. This will enable this feature.

Confirmation request before suggested repair: __________________________________

The boot of your PC is in BIOS-compatibility/CSM/Legacy mode. You may want to retry after changing it to EFI mode.
Alternatively, you may want to retry after deactivating the [Separate /usr partition:] option.
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.2 LTS entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !
The boot of your PC is in BIOS-compatibility/CSM/Legacy mode. You may want to retry after changing it to UEFI mode.

我在网上搜索如何启用 UEFI。由于我无法找到任何立即的解决方案,我再次尝试启动修复,这次我在高级选项中找到一个忽略 UEFI 的框。我尝试运行修复,成功了。这是我取消勾选的框:单独的 boot/efi 分区

这是 boot-repair 修复给我的 pastebin:修复 pastebin

我尝试重启电脑。但什么都没变。电脑仍然无法启动。

有人有任何线索或建议吗?非常感谢大家提供的任何帮助!

澄清:问题依然存在。我无法成功加载 Ubuntu,加载到一半时它就停止了,并且_左上角出现了一个带有标志的黑屏。

在 BIOS 中,它显示我正在运行BIOS 版本 F.1A InsydeG20 设置实用程序。修订版 3.5 该计算机配有 Nvidia Geforce 显卡。

感谢您的帮助

雅典娜诚挚的

答案1

我认为我根据其他一些经验找到了解决方案:

  • 针对 5.11 内核应用修复:

    1. 在第一个可用的内核中启动(对我来说是 5.8.0.59)
    2. 添加存储库:sudo add-apt-repository ppa:kelebek333/nvidia-legacy
    3. 应用修复:sudo apt install xorg-modulepath-fix

从 Nvidia 驱动程序更改为 nouveau 驱动程序。

尝试使用 5.11 重新启动。

对我来说,这是一个有效的组合。

注意:lib32gcc1 和 libgc6xx 肯定存在一些错误,并且它们与此内核更新及后续内核更新不兼容。我们必须等待 nvidia 驱动程序的修复。

答案2

我在将发行版从 20.04 升级到 21.04 时也遇到了类似的问题,因为 21.04 附带了一个更新的内核(从 5.8 升级到 5.11.. 工作电脑自疫情以来一直处于闲置状态)。更新 gcc 包对我来说已经修复了,实际上是编译器尝试运行和配置 nvidia-driver 包,而 5.11 显然附带了一个新版本,而发行版升级没有更新,或者至少没有配置为使用。所以一个简单的方法就sudo apt install gcc帮我解决了这个问题。

相关内容