我如何修复我的 Ubuntu 安装并重新获得 USB 设备控制权?

我如何修复我的 Ubuntu 安装并重新获得 USB 设备控制权?

我在已经安装了 Ubuntu 20.04 的机器上安装了第二个存储设备来运行 Windows。这样做的目的是能够切换操作系统,但保持存储设备独立。

安装 Windows 并重新启动后,在启动时从设备启动列表中选择 Ubuntu 驱动器,我注意到一些我以前从未见过的错误:

ubuntu 错误

[2.738207] xhci hcd 0000:24:00.0: init 0000:24:00.0 fail, -16
[2.739256] xhci_hcd 0000:29:00.1: init 0000:29:00.1 fail, -16
[2.739344] xhci_hcd 0000:29:00.3: init 0000:29:00.3 fail, -16
/dev/nvme0n1p3: clean, 1248701/116178944 files, 59804647/464709120 blocks
[ 6.816557) iwlwifi 0000:26:00.0: pcim_iomap_regions_request_all failed
[7.206276]

我可以看到桌面,但是 (USB) 键盘和鼠标不再工作。此外,我再也看不到 WLAN 上的机器,无法通过 SSH 进入。

更新

幸运的是以太网仍然有效,我可以让机器上网/通过 SSH/VNC 上网。

通过dmesg我可以看到更多详细信息:

[    2.731813] ahci 0000:26:00.0: version 3.0
[    2.731894] ahci: probe of 0000:26:00.0 failed with error -22
[    2.731940] acpi PNP0C14:02: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:01)
[    2.731952] xhci_hcd 0000:23:00.0: init 0000:23:00.0 fail, -16
[    2.731958] fbcon: Taking over console
[    2.732020] Console: switching to colour frame buffer device 128x48
[    2.732045] ahci: probe of 0000:27:00.0 failed with error -22
[    2.732083] acpi PNP0C14:03: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:01)
[    2.732244] ahci: probe of 0000:29:00.0 failed with error -22
[    2.732564] nvme nvme0: pci function 0000:2a:00.0
[    2.732575] xhci_hcd: probe of 0000:23:00.0 failed with error -16
[    2.732806] acpi PNP0C14:04: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:01)
[    2.732898] xhci_hcd 0000:28:00.1: init 0000:28:00.1 fail, -16
[    2.732900] xhci_hcd: probe of 0000:28:00.1 failed with error -16
[    2.732966] xhci_hcd 0000:28:00.3: init 0000:28:00.3 fail, -16
[    2.732967] xhci_hcd: probe of 0000:28:00.3 failed with error -16
[    2.733044] xhci_hcd 0000:2c:00.3: xHCI Host Controller
[    2.733052] xhci_hcd 0000:2c:00.3: new USB bus registered, assigned bus number 1
[    2.733136] xhci_hcd 0000:2c:00.3: hcc params 0x0260ffe5 hci version 0x110 quirks 0x0000000000000410
[    2.733497] xhci_hcd 0000:2c:00.3: xHCI Host Controller
...
[    6.791039] Intel(R) Wireless WiFi driver for Linux
[    6.791732] iwlwifi 0000:25:00.0: pcim_iomap_regions_request_all failed
[    6.791768] iwlwifi: probe of 0000:25:00.0 failed with error -22

我尝试了以下操作(但没有成功):

  • update-grub
  • boot-repair使用默认选项
  • boot-repair使用“清除内核然后重新安装最后一个内核”:该命令只是默默失败(没有明显的错误,但命令永远不会完成)
  • 将 BIOS 设置恢复为默认值
  • 通过以下方式安装不同的内核(5.15.95-051595-genericubuntu-mainline-kernel.sh

我该怎么做才能解决这个问题?有没有办法让 USB(键盘/WiFi)重新工作,而无需重新安装 Ubuntu?我如何才能找出到底是什么问题(为什么安装 Win11 会搞乱它以及如何搞乱它)?

更新 2

我尝试了机器附带的恢复介质,然后尝试下载新鲜的 20.04 图像并重新刷新 USB,但最终出现了相同的错误 + 一些新的错误(nouveau:未知的芯片组和 stdin(可能是因为 USB 输入不起作用?):

xhci_hcd 失败错误 + stdin:无效错误

xhci_hcd 0000:24:00.0: init 0000:24:00.0 fail, -16
xhci_hcd 0000:24:00.0: init 0000:24:00.0 fail, -16
xhci_hcd 0000:24:00.1: init 0000:24:00.1 fail, -16
xhci_hcd 0000:24:00.3: init 0000:24:00.3 fail, -16
nouveau 0000:41:00.0: unknown chipset (192000a1)
stdin:Invalid argument
stdin:Invalid argument
stdin:Invalid argument
...
Unable to find a medium container a live file system
Attempt interactive netboot from a URL?
yes no (default yes):

(因为 USB 没有工作,我无法输入任何内容)

相关内容