当新的更新在启动时显示黑屏时,如何在 Fedora 中回滚到以前的内核?

当新的更新在启动时显示黑屏时,如何在 Fedora 中回滚到以前的内核?

在 Fedora 37 中我做了

sudo dnf -y update

它更新了软件包和内核。但我记得此后我没有重启系统。我刚刚把它关掉了。

第二天,启动菜单按预期显示了多个条目。我选择第一个作为最新的默认值。但后来我的屏幕变黑了,角落里有一个闪烁的光标。

我按 CTRL + ALT + Del 重新启动系统,然后这次选择第二个启动项,我可以启动到该启动项。

现在,要恢复我尝试过的最新更新更改

sudo dnf history undo 23

它产生的输出如下:

Error: The following problems occurred while running a transaction:
  Cannot find rpm nevra "fwupd-1.8.12-1.fc37.x86_64".
  Cannot find rpm nevra "fwupd-plugin-flashrom-1.8.12-1.fc37.x86_64".
  Cannot find rpm nevra "fwupd-plugin-modem-manager-1.8.12-1.fc37.x86_64".
  Cannot find rpm nevra "fwupd-plugin-uefi-capsule-data-1.8.12-1.fc37.x86_64".
  Cannot find rpm nevra "gnome-maps-43.4-1.fc37.x86_64".
  Cannot find rpm nevra "gnome-shell-43.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-afc-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-afp-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-archive-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-client-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-fuse-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-goa-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-gphoto2-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-mtp-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "gvfs-smb-1.50.3-1.fc37.x86_64".
  Cannot find rpm nevra "libsemanage-3.5-1.fc37.x86_64".
  Cannot find rpm nevra "mutter-43.3-2.fc37.x86_64".
  Cannot find rpm nevra "python3-libsemanage-3.5-1.fc37.x86_64".
  Cannot find rpm nevra "tigervnc-license-1.13.1-1.fc37.noarch".
  Cannot find rpm nevra "tigervnc-server-minimal-1.13.1-1.fc37.x86_64".
  Cannot find rpm nevra "webp-pixbuf-loader-0.2.2-1.fc37.x86_64".
  Cannot find rpm nevra "kernel-6.1.14-200.fc37.x86_64".
  Cannot find rpm nevra "kernel-core-6.1.14-200.fc37.x86_64".
  Cannot find rpm nevra "kernel-modules-6.1.14-200.fc37.x86_64".

我也尝试过

sudo dnf history rollback 23

但它给了我以下输出

Transaction history is incomplete, before 25
Transaction history is incomplete, before 25
Dependencies resolved.
Nothing to do.
Complete!

相关内容