我最近购买了带有 Ryzen 5 4600H 和专用 NVIDIA gtx 1650Ti 的 ASUS TUF Gaming FA506IH。我不是一个游戏玩家,所以我安装了 Ubuntu 20.04 并考虑在需要它之前不使用 Nvidia 驱动程序(因为与新内核的兼容性问题),而只使用集成的 Radeon 显卡。但是,我注意到 5.4 内核不支持较新的 Radeon 显卡,所以我安装了主线 5.8 内核,在安装 amdgpu 驱动程序后,它似乎工作正常,但我收到 dkms 错误,说它在 5.8 内核中不受支持. 我也试过 xanmod 内核 5.8,但仍然是同样的问题。这是我在 amdgpu 尝试在此内核上构建其包时收到的错误消息。
Setting up amdgpu-dkms (1:5.6.0.15-1098277) ...
Removing old amdgpu-5.6.0.15-1098277 DKMS files...
------------------------------
Deleting module version: 5.6.0.15-1098277
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.6.0.15-1098277 DKMS files...
Building for 5.8.16-xanmod1
Building for architecture x86_64
Building initial module for 5.8.16-xanmod1
ERROR (dkms apport): kernel package linux-headers-5.8.16-xanmod1 is not supported
Error! Bad return status for module build on kernel: 5.8.16-xanmod1 (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
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
amdgpu-dkms
amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)
当我尝试在内核 5.8.*-generic 上安装 amdgpu 时出现同样的错误。