web-dev-qa-db-ja.com

AMDGPU-PROのインストールが失敗した後に壊れたパッケージを修正する方法

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は何もインストールまたはアンインストールできません。

7
mmeyer

私と同じシナリオ。多くのことを試した後、何かが最終的に機能しました。起動時に高度なオプションを選択しました:パッケージを修復し、いくつかのことを行って行き詰まり、ctrl + cを押してエラーが続いた後、ctrl + alt + delが必要で再起動しました。

Sudo apt-get install updateおよびSudo apt-get distro-upgradeは、AMDドライバーが削除されることを示しました。それを削除して再起動しましたが、ログインできませんでした(ログイン画面に戻って) chownコマンドを実行して(ログインの問題を修正し、すべて順調です)、distro-upgradeコマンドの実行後に、Sudoを実行しましたapt-get purge AMD *インストール済み16.40 AMDドライバー

なぜ機能したのかはわかりませんが、おそらくこれもあなたの役に立つでしょう。幸運を

4
NV1199