我已经成功使用 Windows 和 Ubuntu 23.10 进行双启动大约两个月了。我首先安装了 Ubuntu 22.04,但无法使用我的硬件启动它(我认为 AMD 7800xt 是问题所在)。安装 23.10 后,我能够启动并使用 Ubuntu。
今天,我没有注意到任何更新,我无法再正常启动 23.10(也无法启动 6.5.0.14 或 6.5.0.10 恢复内核)。
我尝试启动这些选项时遇到错误:
Can't open blockdev
...
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ...
但是我可以使用 6.5.0.10 通用内核。当我从该内核启动并运行 sudo apt update 和 install 时,我收到许多错误,如下所示。我不确定它们是否与我挂载失败有关。
Building module:
Cleaning build area...(bad exit status: 2)
make -j12 KERNELRELEASE=6.5.0-14-generic TTM_NAME=amdttm SCHED_NAME=amd-sched -C
/lib/modules/6.5.0-14-generic/build M=/var/lib/dkms/amdgpu/6.2.4-1664922.22.04/
build...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.c
rash'
Error! Bad return status for module build on kernel: 6.5.0-14-generic (x86_64)
Consult /var/lib/dkms/amdgpu/6.2.4-1664922.22.04/build/make.log for more informa
tion.
dkms autoinstall on 6.5.0-14-generic/x86_64 succeeded for 8812au
dkms autoinstall on 6.5.0-14-generic/x86_64 failed for amdgpu(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: autoinstall for kernel 6.5.0-14-generic
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.5.0-14-generic (--configure):
installed linux-image-6.5.0-14-generic package post-installation script subproc
ess returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encoun
tered while processing:
linux-headers-6.5.0-14-generic
amdgpu-dkms
linux-headers-generic-hwe-22.04
linux-generic-hwe-22.04
linux-image-6.5.0-14-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
经过进一步的挖掘,我发现软件包 rocM 导致了软件更新程序出现问题。删除该软件包后,我就可以重新启动了。