我正在尝试按照此处的说明安装 amdgpu:https://amdgpu-install.readthedocs.io/en/latest/install-installing.html
运行命令:
sudo amdgpu-install --usecase=workstation --accept-eula
出现以下错误:
The following packages have unmet dependencies:
amdgpu-pro : Depends: libgl1-amdgpu-pro-ext but it is not going to be installed
我正在尝试安装 amdgpu,因为我的第二台显示器未被检测到,而且似乎我实际上没有安装驱动程序,因为我的输出sudo lshw -c video
是:
*-display UNCLAIMED
description: VGA compatible controller
product: Advanced Micro Devices, Inc. [AMD/ATI]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:2f:00.0
version: c1
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list
configuration: latency=0
resources: memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:e000(size=256) memory:fcd00000-fcdfffff memory:fce00000-fce1ffff
如果已安装驱动程序,我希望该驱动程序能够按配置列出。
有人知道如何修复这个问题吗?谢谢。
amdgpu-install 的完整输出:
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:4 https://repo.radeon.com/amdgpu/21.50.2/ubuntu focal InRelease
Hit:5 https://repo.radeon.com/rocm/apt/5.0.2 ubuntu InRelease
Get:6 https://repo.radeon.com/amdgpu/21.50.2/ubuntu focal/proprietary amd64 Packages [3,562 B]
Get:7 https://repo.radeon.com/amdgpu/21.50.2/ubuntu focal/proprietary i386 Packages [2,884 B]
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Fetched 342 kB in 1s (275 kB/s)
Reading package lists... Done
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:4 https://repo.radeon.com/amdgpu/21.50.2/ubuntu focal InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:6 https://repo.radeon.com/rocm/apt/5.0.2 ubuntu InRelease
Fetched 336 kB in 1s (643 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-5.13.0-28-generic is already the newest version (5.13.0-28.31~20.04.1).
linux-headers-5.13.0-28-generic set to manually installed.
linux-modules-extra-5.13.0-28-generic is already the newest version (5.13.0-28.31~20.04.1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
amdgpu-pro : Depends: libgl1-amdgpu-pro-ext but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:4 https://repo.radeon.com/amdgpu/21.50.2/ubuntu focal InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:6 https://repo.radeon.com/rocm/apt/5.0.2 ubuntu InRelease
Fetched 336 kB in 1s (642 kB/s)
Reading package lists... Done
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:4 https://repo.radeon.com/amdgpu/21.50.2/ubuntu focal InRelease
Hit:5 https://repo.radeon.com/rocm/apt/5.0.2 ubuntu InRelease
Get:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Fetched 336 kB in 0s (677 kB/s)
Reading package lists... Done
答案1
解决方案只需安装 libgl1-amdgpu-pro-ext。
sudo apt-get install libgl1-amdgpu-pro-ext