我尝试运行sudo apt-get dist-upgrade
但最后得到了这个输出:
Loading new amdgpu-5.6.0.15-1098277 DKMS files...
Building for 5.11.0-40-generic 5.13.0-30-generic
Building for architecture x86_64
Building initial module for 5.11.0-40-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-firmware.0.crash'
Error! Bad return status for module build on kernel: 5.11.0-40-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.0.15-1098277); however:
Package amdgpu-dkms is not configured yet.
dpkg: error processing package amdgpu (--configure):
dependency problems - leaving unconfigured
Setting up gir1.2-polkit-1.0 (0.105-26ubuntu1.3) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Errors were encountered while processing:
amdgpu-dkms
amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)
/var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log
我认为这篇文章太全面了,不适合在这里发布,但最后几行还是要说一下:
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.o] Error 1
make[1]: *** [scripts/Makefile.build:519: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm] Error 2
make: *** [Makefile:1849: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.11.0-40-generic'
我使用的是带有专用 nvidia GPU 的笔记本电脑,但大多数时候都使用集成 AMD GPU。我最近在这里发布的另一个问题是任何端口(usb-c、hdmi)都没有视频信号。我还没有解决这个问题,但它可能与此有关。
当我通过 Ubuntu 软件卸载某些东西时,会出现一个弹出窗口:
Unable to remove "app_name":
Error while installing package: installed amdgpu-dkms package
post-installation script subprocess returned error exit status 10
编辑:
apt-cache policy amdgpu amdgpu-dkms
输出:
amdgpu:
Installed: 20.20-1098277
Candidate: 20.20-1098277
Version table:
*** 20.20-1098277 1000
500 file:/var/opt/amdgpu-pro-local ./ Packages
100 /var/lib/dpkg/status
amdgpu-dkms:
Installed: 1:5.6.0.15-1098277
Candidate: 1:5.6.0.15-1098277
Version table:
*** 1:5.6.0.15-1098277 1000
500 file:/var/opt/amdgpu-pro-local ./ Packages
100 /var/lib/dpkg/status
dkms status
输出:
amdgpu, 5.6.0.15-1098277: added
uname -r
输出:
5.11.0-40-generic
答案1
答案2
我通过以下方式解决了这个问题(你的版本可能不同): cd /var/lib/dkms/amdgpu/6.0.5-1620033.22.04/ sudo mv source source_back sudo mv build source 所需的配置位于 build 文件夹中