我下载了从 AMD 网站获取合适的驱动程序然后去安装它,因为我有以前的 (18.40) 驱动程序。但是,现在我处于一个奇怪的情况,无论我做什么,似乎都有未满足的依赖关系,而且我不认为安装已完成,即使似乎将apt search amd
其列为已完成。我根本没有管理依赖关系的经验(这就是为什么有包管理器的原因,对吧?),所以我在这里不合适。有人能告诉我可能发生了什么吗?
# amdgpu-install
给出:
greg@desktop:~/Downloads/amdgpu-pro-18.50-708488-ubuntu-18.04$ sudo ./amdgpu-install
deb [ trusted=yes ] file:/var/opt/amdgpu-pro-local/ ./
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Hit:4 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 247 kB in 1s (448 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
amdgpu-pro-pin is already the newest version (18.50-708488).
Selected version '18.50-708488' (localhost [all]) for 'amdgpu-pro-pin'
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
amdgpu : Depends: amdgpu-lib (= 18.50-708488) but it is not going to be installed
amdgpu-lib32 : Depends: amdgpu-lib (= 18.50-708488) but it is not going to be installed
Depends: libllvm7.0-amdgpu:i386 (= 1:7.0-708488)
Depends: libwayland-amdgpu-egl1:i386 (= 1.15.0-708488)
Depends: libegl1-amdgpu-mesa:i386 (= 1:18.2.0-708488)
Depends: libgl1-amdgpu-mesa-dri:i386 (= 1:18.2.0-708488)
Depends: mesa-amdgpu-va-drivers:i386 (= 1:18.2.0-708488)
Depends: mesa-amdgpu-vdpau-drivers:i386 (= 1:18.2.0-708488)
libegl1-amdgpu-mesa-drivers:i386 : Depends: libegl1-amdgpu-mesa:i386 (= 1:18.2.0-708488) but 1:18.1.0-676022 is to be installed
Depends: libwayland-amdgpu-egl1:i386 but it is not going to be installed
libegl1-amdgpu-mesa-drivers : Depends: libegl1-amdgpu-mesa (= 1:18.2.0-708488) but 1:18.1.0-676022 is to be installed
Depends: libwayland-amdgpu-egl1 but it is not going to be installed
libxatracker2-amdgpu:i386 : Depends: libllvm7.0-amdgpu:i386 but it is not going to be installed
libxatracker2-amdgpu : Depends: libllvm7.0-amdgpu but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
# apt --fix-broken install
给出:
greg@desktop:~/Downloads/amdgpu-pro-18.50-708488-ubuntu-18.04$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libllvm6.0-amdgpu libllvm6.0-amdgpu:i386
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
amdgpu-lib glamor-amdgpu gst-omx-amdgpu libegl1-amdgpu-mesa:i386 libegl1-amdgpu-mesa libgl1-amdgpu-mesa-dri:i386 libgl1-amdgpu-mesa-dri libllvm7.0-amdgpu:i386 libllvm7.0-amdgpu
libwayland-amdgpu-egl1:i386 libwayland-amdgpu-egl1 mesa-amdgpu-omx-drivers mesa-amdgpu-va-drivers:i386 mesa-amdgpu-va-drivers mesa-amdgpu-vdpau-drivers:i386 mesa-amdgpu-vdpau-drivers
xserver-xorg-amdgpu-video-amdgpu
Suggested packages:
libglide3:i386 libglide3
Recommended packages:
libtxc-dxtn-s2tc0:i386 | libtxc-dxtn0:i386 libtxc-dxtn-s2tc0 | libtxc-dxtn0
The following packages will be REMOVED:
libwayland-amdgpu-egl1-mesa libwayland-amdgpu-egl1-mesa:i386
The following NEW packages will be installed:
amdgpu-lib libllvm7.0-amdgpu:i386 libllvm7.0-amdgpu libwayland-amdgpu-egl1:i386 libwayland-amdgpu-egl1
The following packages will be upgraded:
glamor-amdgpu gst-omx-amdgpu libegl1-amdgpu-mesa:i386 libegl1-amdgpu-mesa libgl1-amdgpu-mesa-dri:i386 libgl1-amdgpu-mesa-dri mesa-amdgpu-omx-drivers mesa-amdgpu-va-drivers:i386 mesa-amdgpu-va-drivers
mesa-amdgpu-vdpau-drivers:i386 mesa-amdgpu-vdpau-drivers xserver-xorg-amdgpu-video-amdgpu
12 upgraded, 5 newly installed, 2 to remove and 4 not upgraded.
9 not fully installed or removed.
Need to get 0 B/40.1 MB of archives.
After this operation, 98.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 file:/var/opt/amdgpu-pro-local ./ libllvm7.0-amdgpu 1:7.0-708488 [11.9 MB]
Get:2 file:/var/opt/amdgpu-pro-local ./ libwayland-amdgpu-egl1 1.15.0-708488 [4,316 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ libllvm7.0-amdgpu 1:7.0-708488 [13.4 MB]
Get:4 file:/var/opt/amdgpu-pro-local ./ libegl1-amdgpu-mesa 1:18.2.0-708488 [77.8 kB]
Get:5 file:/var/opt/amdgpu-pro-local ./ libegl1-amdgpu-mesa 1:18.2.0-708488 [75.4 kB]
Get:6 file:/var/opt/amdgpu-pro-local ./ libwayland-amdgpu-egl1 1.15.0-708488 [4,344 B]
Get:7 file:/var/opt/amdgpu-pro-local ./ libgl1-amdgpu-mesa-dri 1:18.2.0-708488 [4,153 kB]
Get:8 file:/var/opt/amdgpu-pro-local ./ libgl1-amdgpu-mesa-dri 1:18.2.0-708488 [4,002 kB]
Get:9 file:/var/opt/amdgpu-pro-local ./ mesa-amdgpu-va-drivers 1:18.2.0-708488 [1,198 kB]
Get:10 file:/var/opt/amdgpu-pro-local ./ mesa-amdgpu-va-drivers 1:18.2.0-708488 [1,119 kB]
Get:11 file:/var/opt/amdgpu-pro-local ./ mesa-amdgpu-vdpau-drivers 1:18.2.0-708488 [1,427 kB]
Get:12 file:/var/opt/amdgpu-pro-local ./ mesa-amdgpu-vdpau-drivers 1:18.2.0-708488 [1,340 kB]
Get:13 file:/var/opt/amdgpu-pro-local ./ mesa-amdgpu-omx-drivers 1:18.2.0-708488 [1,113 kB]
Get:14 file:/var/opt/amdgpu-pro-local ./ glamor-amdgpu 1.19.0-708488 [69.7 kB]
Get:15 file:/var/opt/amdgpu-pro-local ./ xserver-xorg-amdgpu-video-amdgpu 1:18.1.99-708488 [56.3 kB]
Get:16 file:/var/opt/amdgpu-pro-local ./ gst-omx-amdgpu 1.0.0.1-708488 [57.9 kB]
Get:17 file:/var/opt/amdgpu-pro-local ./ amdgpu-lib 18.50-708488 [2,196 B]
(Reading database ... 206808 files and directories currently installed.)
Preparing to unpack .../libllvm7.0-amdgpu_7.0-708488_amd64.deb ...
Unpacking libllvm7.0-amdgpu:amd64 (1:7.0-708488) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libllvm7.0-amdgpu_7.0-708488_amd64.deb (--unpack):
trying to overwrite '/opt/amdgpu/lib/x86_64-linux-gnu/BugpointPasses.so', which is also in package libllvm6.0-amdgpu:amd64 1:6.0-676022
Preparing to unpack .../libwayland-amdgpu-egl1_1.15.0-708488_amd64.deb ...
Unpacking libwayland-amdgpu-egl1:amd64 (1.15.0-708488) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libwayland-amdgpu-egl1_1.15.0-708488_amd64.deb (--unpack):
trying to overwrite '/opt/amdgpu/lib/x86_64-linux-gnu/libwayland-egl.so.1.0.0', which is also in package libwayland-amdgpu-egl1-mesa:amd64 1:18.1.0-676022
Preparing to unpack .../libllvm7.0-amdgpu_7.0-708488_i386.deb ...
Unpacking libllvm7.0-amdgpu:i386 (1:7.0-708488) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libllvm7.0-amdgpu_7.0-708488_i386.deb (--unpack):
trying to overwrite '/opt/amdgpu/lib/i386-linux-gnu/BugpointPasses.so', which is also in package libllvm6.0-amdgpu:i386 1:6.0-676022
Errors were encountered while processing:
/var/opt/amdgpu-pro-local/./libllvm7.0-amdgpu_7.0-708488_amd64.deb
/var/opt/amdgpu-pro-local/./libwayland-amdgpu-egl1_1.15.0-708488_amd64.deb
/var/opt/amdgpu-pro-local/./libllvm7.0-amdgpu_7.0-708488_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我无法删除、升级或清除任何内容,因为 apt 一完成“读取状态信息”,它就会告诉我有未满足的依赖关系并停止。提前感谢任何帮助!
答案1
我花了几个小时才弄清楚操作系统和内核的组合以及正确的步骤是否可以正常工作(即,这可能在不同的组合上起作用,但这是我让它工作的方式 - 我认为它对某些人来说会很有用)。
如果出现 AMD 安装错误,请在 ubuntu 上安装 RX 570 显卡:
工作系统:
Ubuntu:20.04.1 LTS
内核版本:5.4.0-54-generic
工作驱动程序:
amdgpu-专业版-20.20-1098277-ubuntu-20.04
修复步骤:
sudo rm -f /var/lib/dpkg/info/libgl1-amdgpu-mesa-*
sudo dpkg --remove libgl1-amdgpu-mesa-dri
sudo dpkg -P libgl1-amdgpu-mesa-dri
cd ~/Downloads/amdgpu-pro-20.20-1098277-ubuntu-20.04/
sudo amdgpu-uninstall
sudo rm -rf /opt/amdgpu/
sudo ./amdgpu-pro-install
答案2
您拥有所需的一切(软件包),但您的系统是 64 位(amd64),而一些 AMD-GPU 驱动程序软件包是 32 位(i386)。您应该将 i386 架构添加到您的软件包管理器架构中,然后更新您的软件包管理器。
sudo dpkg --add-architecture i386
sudo apt update
另外,还有其他方法可以安装这些软件包,而无需向包管理器添加新架构。你可以查看它们这里。
答案3
升级到 18.04.1 后,我能够安装 18.50。我需要 amdgpu 来消除 htpc 上的撕裂。然而,18.50 让情况变得更糟,因为似乎需要一个驱动程序补丁才能使撕裂在 18.50 中保持启用状态。所以回到了 18.30。虽然可能会尝试 18.40。还将内核升级到 4.17.19-041719-generic 以修复 18.50 的问题,但最终还是回到了 18.30。当我尝试 4.19 或 4.20 内核时,发现 amdgpu 驱动程序有错误。
答案4
再试一次。确保你已为当前安装启用了所有存储库。例如,我有 18.04.2,所以我需要 bionic main、security 和 updates。第一个应该存在。后两个在软件更新程序首选项中选择。使用
$ grep "^deb" /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security universe multiverse main restricted
deb http://archive.ubuntu.com/ubuntu bionic-updates universe multiverse main restricted
另一个问答建议你至少需要universe。一旦你启用了正确的repos,依赖关系应该就会解决。错误并没有显示你需要的所有内容,问题来自amdgpu安装程序之外的问题。我将问题追溯到非amdgpu软件包,这些软件包需要更新中的版本,而我在gyrations的某个地方禁用了这些版本。