我安装了 amdgpu-pro 17.40,运行良好,但遇到了一些问题,特定显示器(Dell U3014)无法通过显示端口工作。我向 AMD 开具了一张工单,他们建议更新到 amdgpu-pro 17.50。
运行 amdgpu-pro 17.50 的安装程序失败,并且包管理器损坏,因此我无法安装或卸载任何东西。我已联系 AMD 寻求帮助,但 5 天内没有收到任何回复……他们只是仍在调查此事。
安装脚本和修复尝试的结果是:
./amdgpu-pro-install
[sudo] password for xxxx:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
amdgpu : Depends: amdgpu-core (= 17.50-511655) but it is not going to be installed
Depends: amdgpu-dkms (= 17.50-511655) but it is not going to be installed
Depends: libdrm2-amdgpu (= 1:2.4.82-511655) but it is not going to be installed
amdgpu-lib32 : Depends: libdrm2-amdgpu:i386 (= 1:2.4.82-511655)
glamor-amdgpu : Depends: amdgpu-core but it is not going to be installed
Depends: libdrm2-amdgpu but it is not going to be installed
gst-omx-amdgpu : Depends: amdgpu-core but it is not going to be installed
ids-amdgpu : Depends: amdgpu-core but it is not going to be installed
libdrm-amdgpu-amdgpu1:i386 : Depends: libdrm2-amdgpu:i386 (= 1:2.4.82-511655) but it is not going to be installed
libdrm-amdgpu-amdgpu1 : Depends: libdrm2-amdgpu (= 1:2.4.82-511655) but it is not going to be installed
libegl1-amdgpu-mesa:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
Depends: amdgpu-core:i386
libegl1-amdgpu-mesa : Depends: libdrm2-amdgpu but it is not going to be installed
Depends: amdgpu-core but it is not going to be installed
libgbm1-amdgpu:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
Depends: amdgpu-core:i386
libgbm1-amdgpu : Depends: libdrm2-amdgpu but it is not going to be installed
Depends: amdgpu-core but it is not going to be installed
libgl1-amdgpu-mesa-dri:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
Depends: amdgpu-core:i386
libgl1-amdgpu-mesa-dri : Depends: libdrm2-amdgpu but it is not going to be installed
Depends: amdgpu-core but it is not going to be installed
libgl1-amdgpu-mesa-glx:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
libgl1-amdgpu-mesa-glx : Depends: libdrm2-amdgpu but it is not going to be installed
libglapi-amdgpu-mesa:i386 : Depends: amdgpu-core:i386
libglapi-amdgpu-mesa : Depends: amdgpu-core but it is not going to be installed
libllvm5.0-amdgpu:i386 : Depends: amdgpu-core:i386
libllvm5.0-amdgpu : Depends: amdgpu-core but it is not going to be installed
libwayland-amdgpu-client0:i386 : Depends: amdgpu-core:i386
libwayland-amdgpu-client0 : Depends: amdgpu-core but it is not going to be installed
libwayland-amdgpu-server0:i386 : Depends: amdgpu-core:i386
libwayland-amdgpu-server0 : Depends: amdgpu-core but it is not going to be installed
libxatracker2-amdgpu:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
libxatracker2-amdgpu : Depends: libdrm2-amdgpu but it is not going to be installed
mesa-amdgpu-omx-drivers : Depends: libdrm2-amdgpu but it is not going to be installed
mesa-amdgpu-vdpau-drivers:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
Depends: amdgpu-core:i386
mesa-amdgpu-vdpau-drivers : Depends: libdrm2-amdgpu but it is not going to be installed
Depends: amdgpu-core but it is not going to be installed
xserver-xorg-amdgpu-video-amdgpu : Depends: amdgpu-core but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
然后尝试修复:
sudo apt-get -f 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:
cinnamon-desktop-data gyp javascript-common libcinnamon-desktop4 libjs-inherits libjs-jquery libjs-node-uuid libjs-underscore libssl-dev libssl-doc
libuv1 libuv1-dev linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic
node-abbrev node-ansi node-ansi-color-table node-archy node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream
node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp node-inherits
node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json node-request node-retry node-rimraf
node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which zlib1g-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
amdgpu-dkms libdrm2-amdgpu:i386 libdrm2-amdgpu
The following NEW packages will be installed:
amdgpu-dkms libdrm2-amdgpu:i386 libdrm2-amdgpu
0 upgraded, 3 newly installed, 0 to remove and 56 not upgraded.
46 not fully installed or removed.
Need to get 0 B/5,638 kB of archives.
After this operation, 127 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/opt/amdgpu-pro-local ./ amdgpu-dkms 17.50-511655 [5,578 kB]
Get:2 file:/var/opt/amdgpu-pro-local ./ libdrm2-amdgpu 1:2.4.82-511655 [29.5 kB]
Get:3 file:/var/opt/amdgpu-pro-local ./ libdrm2-amdgpu 1:2.4.82-511655 [30.5 kB]
(Reading database ... 334828 files and directories currently installed.)
Preparing to unpack .../amdgpu-dkms_17.50-511655_all.deb ...
Unpacking amdgpu-dkms (17.50-511655) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./amdgpu-dkms_17.50-511655_all.deb (--unpack):
trying to overwrite '/etc/modprobe.d/blacklist-radeon.conf', which is also in package amdgpu-pro-dkms 17.40-492261
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libdrm2-amdgpu_2.4.82-511655_amd64.deb ...
Unpacking libdrm2-amdgpu:amd64 (1:2.4.82-511655) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_amd64.deb (--unpack):
trying to overwrite '/lib/udev/rules.d/91-amdgpu-pro-modeset.rules', which is also in package libdrm2-amdgpu-pro:i386 1:2.4.82-492261
Preparing to unpack .../libdrm2-amdgpu_2.4.82-511655_i386.deb ...
Unpacking libdrm2-amdgpu:i386 (1:2.4.82-511655) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_i386.deb (--unpack):
trying to overwrite '/lib/udev/rules.d/91-amdgpu-pro-modeset.rules', which is also in package libdrm2-amdgpu-pro:i386 1:2.4.82-492261
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
/var/opt/amdgpu-pro-local/./amdgpu-dkms_17.50-511655_all.deb
/var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_amd64.deb
/var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我将非常感激任何关于如何解决此问题的想法/指导。此时 apt 无法安装或卸载任何东西。
答案1
我的情况完全一样。尝试了很多方法,最后终于有办法了。在启动时,我选择了高级选项:修复包,它做了一些事情,甚至卡住了,我按下 ctrl+c,然后它继续出错,之后它需要按下 ctrl+alt+del 才能重新启动。
sudo apt-get install update 和 sudo apt-get distro-upgrade 显示 amd 驱动程序将被删除。它删除了它,我重新启动了,但无法登录(弹回登录屏幕)也许在这里你可以执行 sudo chown username:username .Xauthority 来修复它,但我还不知道这一点,所以我在执行 chown 命令之前执行了一些其他命令(这修复了我的登录问题,一切正常)所以在 distro-upgrade 命令之后我执行了 sudo apt-get purge amd* 安装了 16.40 amd 驱动程序再次重新启动
我不确定它为什么会起作用,但也许这对你也有帮助。祝你好运