我最近升级了一台旧电脑硬件,但遇到了启动不可靠的问题。有时,它永远无法启动。安全模式通常有效。当它启动时,有时 WiFi 和蓝牙不起作用。Ubuntu 23 是我尝试过的最可靠的,但仍然面临问题。
我已升级到以下版本:
- 主板:技嘉科技股份有限公司 B650 AORUS ELITE AX
- 处理器:AMD Ryzen 9 7950x
- GPU:NVIDIA GeForce RTX 3070/PCIe/SSE2
以下是完整的硬件列表:
$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14d8
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14da
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14db
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14db
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14da
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14db
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14da
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14da
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14da
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14dd
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14dd
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e7
01:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3070] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GA104 High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f4 (rev 01)
04:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:0b.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:0c.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
04:0d.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43f5 (rev 01)
0c:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
0d:00.0 Network controller: MEDIATEK Corp. Device 0616
0e:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43f7 (rev 01)
0f:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43f6 (rev 01)
10:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 164e (rev c1)
10:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1640
10:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] VanGogh PSP/CCP
10:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15b6
10:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15b7
10:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
11:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15b8
以下是蓝牙状态:
$ sudo systemctl status bluetooth.service
[sudo] password for ryan:
○ bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)
Nov 03 00:14:25 B650-970 systemd[1]: Condition check resulted in Bluetooth service being skipped.
Nov 03 00:15:05 B650-970 systemd[1]: Condition check resulted in Bluetooth service being skipped.
您可以在这里看到,WiFi 选项目前缺失,并且无法启用蓝牙。 设置概览
我尝试过以下 Ubuntu 版本:
- Ubuntu 22.04.2
- Ubuntu 22.04.3
- Ubuntu 23.04
以下是遇到的一些启动错误;如果出现这些错误,通常会阻止成功启动。
Nov 03 00:14:22 B650-970 kernel: hub 8-0:1.0: config failed, hub doesn't have any ports! (err -19)
当 WiFi 未启动时就会发生这种情况。
Nov 03 00:14:22 B650-970 systemd[1]: Started WPA supplicant.
Nov 03 00:14:22 B650-970 wpa_supplicant[919]: Successfully initialized wpa_supplicant
Nov 03 00:14:22 B650-970 systemd[1]: thermald.service: Deactivated successfully.
Nov 03 00:14:22 B650-970 apport[880]: ...done.
Nov 03 00:14:22 B650-970 systemd[1]: Started LSB: automatic crash report generation.
Nov 03 00:14:22 B650-970 systemd[1]: grub-common.service: Deactivated successfully.
Nov 03 00:14:22 B650-970 systemd[1]: Finished Record successful boot for GRUB.
Nov 03 00:14:22 B650-970 systemd[1]: Starting GRUB failed boot detection...
Nov 03 00:14:22 B650-970 udisksd[918]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
Nov 03 00:14:22 B650-970 udisksd[918]: Failed to load the 'mdraid' libblockdev plugin
Nov 03 00:14:22 B650-970 dbus-daemon[884]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.7' (uid=0 pid=918 comm="/usr/libexec/udisks2/udisksd " label="unconfined")
Nov 03 00:14:22 B650-970 systemd[1]: Starting Authorization Manager...
Nov 03 00:14:22 B650-970 polkitd[966]: started daemon version 0.105 using authority implementation `local' version `0.105'
Nov 03 00:14:22 B650-970 dbus-daemon[884]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Nov 03 00:14:22 B650-970 systemd[1]: Started Authorization Manager.
Nov 03 00:14:22 B650-970 systemd[1]: grub-initrd-fallback.service: Deactivated successfully.
Nov 03 00:14:22 B650-970 systemd[1]: Finished GRUB failed boot detection.
Nov 03 00:14:22 B650-970 snapd-aa-prompt-listener[903]: AA Prompt listener not implemented
Nov 03 00:14:22 B650-970 systemd[1]: snapd.aa-prompt-listener.service: Deactivated successfully.
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: No valid path found for iw
Nov 03 00:14:22 B650-970 dbus-daemon[884]: [system] Activating via systemd: service name='org.freedesktop.network1' unit='dbus-org.freedesktop.network1.service' requested by ':1.9' (uid=0 pid=982 comm="/usr/bin/networkctl list --no-pager --no-legend " label="unconfined")
Nov 03 00:14:22 B650-970 dbus-daemon[884]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.network1.service': Unit dbus-org.freedesktop.network1.service not found.
Nov 03 00:14:22 B650-970 networkd-dispatcher[982]: WARNING: systemd-networkd is not running, output will be incomplete.
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: ERROR:Unknown state for interface NetworkctlListState(idx=1, name='lo', type='loopback', operational='n/a', administrative='unmanaged'): n/a
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: Traceback (most recent call last):
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: File "/usr/bin/networkd-dispatcher", line 298, in trigger_all
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: self.handle_state(iface_name,
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: File "/usr/bin/networkd-dispatcher", line 348, in handle_state
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: raise UnknownState(operational_state)
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: UnknownState: n/a
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: ERROR:Unknown state for interface NetworkctlListState(idx=2, name='enp12s0', type='ether', operational='n/a', administrative='unmanaged'): n/a
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: Traceback (most recent call last):
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: File "/usr/bin/networkd-dispatcher", line 298, in trigger_all
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: self.handle_state(iface_name,
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: File "/usr/bin/networkd-dispatcher", line 348, in handle_state
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: raise UnknownState(operational_state)
Nov 03 00:14:22 B650-970 networkd-dispatcher[896]: UnknownState: n/a
Nov 03 00:14:22 B650-970 systemd[1]: Started Dispatcher daemon for systemd-networkd.
Nov 03 00:14:22 B650-970 systemd[1]: Started Disk Manager.
Nov 03 00:14:22 B650-970 udisksd[918]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Nov 03 00:14:23 B650-970 snapd[904]: overlord.go:272: Acquiring state lock file
Nov 03 00:14:23 B650-970 snapd[904]: overlord.go:277: Acquired state lock file
Nov 03 00:14:23 B650-970 snapd[904]: daemon.go:247: started snapd/2.60.4 (series 16; classic) ubuntu/22.04 (amd64) linux/6.2.0-36-generic.
Nov 03 00:14:23 B650-970 kernel: loop21: detected capacity change from 0 to 8
Nov 03 00:14:23 B650-970 snapd[904]: daemon.go:340: adjusting startup timeout by 1m40s (pessimistic estimate of 30s plus 5s per snap)
Nov 03 00:14:23 B650-970 systemd[1]: e2scrub_reap.service: Deactivated successfully.
Nov 03 00:14:23 B650-970 systemd[1]: Finished Remove Stale Online ext4 Metadata Check Snapshots.
Nov 03 00:14:23 B650-970 snapd[904]: backends.go:58: AppArmor status: apparmor is enabled and all features are available (using snapd provided apparmor_parser)
Nov 03 00:14:23 B650-970 NetworkManager[886]: <info> [1698992063.3727] NetworkManager (version 1.36.6) is starting... (for the first time)
Nov 03 00:14:23 B650-970 NetworkManager[886]: <info> [1698992063.3727] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 10-dns-resolved.conf, 20-connectivity-ubuntu.conf, no-mac-addr-change.conf) (run: 10-globally-managed-devices.conf) (etc: default-wifi-powersave-on.conf)
Nov 03 00:14:23 B650-970 NetworkManager[886]: <info> [1698992063.3737] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager"
Nov 03 00:14:23 B650-970 NetworkManager[886]: <info> [1698992063.3756] manager[0x5563c33be000]: monitoring kernel firmware directory '/lib/firmware'.
Nov 03 00:14:23 B650-970 NetworkManager[886]: <info> [1698992063.3756] monitoring ifupdown state file '/run/network/ifstate'.
Nov 03 00:14:23 B650-970 dbus-daemon[884]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.13' (uid=0 pid=886 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Nov 03 00:14:23 B650-970 accounts-daemon[876]: started daemon version 22.07.5
Nov 03 00:14:23 B650-970 systemd-logind[913]: Watching system buttons on /dev/input/event1 (Power Button)
我尝试了以下修复方法:
- https://github.com/blueman-project/blueman/wiki/Troubleshooting
bluetoothctl list
永远挂起blueman-applet
我的系统上没有安装- 审查https://ubuntuforums.org/showthread.php?t=2336447
- 集线器 8-0:1.0:配置失败,集线器没有任何端口!(错误 -19)
- 锯最近升级到 Ubuntu 22.04 后,登录后开始出现错误
- 锯Ubuntu 22.04 ACPI BIOS 错误(BUG)
- 已审核https://wiki.ubuntu.com/DebuggingKernelBoot
鉴于 Linux 内核 6.2 面临的所有这些问题,建议采用什么流程来开始解决这些问题?我很乐意深入调试,但我不知道从哪个问题开始。
答案1
所有这些严重问题,包括无法启动,实际上都是由 nvidia 驱动程序不匹配引起的。
该命令nvidia-smi
返回与该帖子相同的信息:
https://forums.developer.nvidia.com/t/failed-to-initialize-nvml-driver-library-version-mismatch/190421/4
安装正确的 nvidia 驱动程序后,WiFi 和蓝牙都可以正常工作。不清楚它们之间为什么相关,但它们确实相关。
软件和更新报告我安装了正确的版本,但重新安装相同版本后问题得到解决。
工作内核:Linux B650-970 6.2.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC 星期五 10 月 6 日 10:23:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux