Ubunut 18.04.2, rx550 显卡升级驱动到19.10,安装驱动时出现如下错误:
Preparing to unpack .../libllvm7.1-amdgpu_7.1-785425_amd64.deb ...
Unpacking libllvm7.1-amdgpu:amd64 (1:7.1-785425) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libllvm7.1-amdgpu_7.1-785425_amd64.deb (--unpack):
trying to overwrite '/opt/amdgpu/lib/x86_64-linux-gnu/BugpointPasses.so', which is also in package libllvm7.0-amdgpu:amd64 1:7.0-756341
Preparing to unpack .../libllvm7.1-amdgpu_7.1-785425_i386.deb ...
Unpacking libllvm7.1-amdgpu:i386 (1:7.1-785425) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libllvm7.1-amdgpu_7.1-785425_i386.deb (--unpack):
trying to overwrite '/opt/amdgpu/lib/i386-linux-gnu/BugpointPasses.so', which is also in package libllvm7.0-amdgpu:i386 1:7.0-756341
Errors were encountered while processing:
/var/opt/amdgpu-pro-local/./libllvm7.1-amdgpu_7.1-785425_amd64.deb
/var/opt/amdgpu-pro-local/./libllvm7.1-amdgpu_7.1-785425_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
- 执行下面命令,删除之前的驱动
amdgpu-uninstall
sudo rm -rf /var/opt/amdgpu-pro-local
sudo rm -rf /opt/amdgpu/
sudo apt --fix-broken install
sudo apt autoremove
- 驱动目录执行下面命令安装新版驱动
./amdgpu-install
网友评论