web-dev-qa-db-fra.com

Comment réparer les paquets cassés après l'échec de l'installation d'AMDGPU-PRO

Amdgpu-pro 17.40 était installé et fonctionnait correctement, mais il y avait des problèmes avec un écran spécifique (Dell U3014) qui ne fonctionnait pas sur displayport. J'ai ouvert un ticket avec AMD et ils ont suggéré une mise à jour pour amdgpu-pro 17.50.

L'exécution du programme d'installation pour amdgpu-pro 17.50 a échoué et le gestionnaire de paquets est endommagé, de sorte que je ne peux ni installer ni désinstaller quoi que ce soit. J'ai demandé de l'aide à AMD, mais je n'ai reçu aucune réponse au bout de 5 jours ... simplement parce qu'ils sont toujours à la recherche de solutions.

Les résultats du script d'installation et des tentatives de réparation sont les suivants:

 ./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).

Et puis, en essayant de réparer:

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)

J'apprécierais toutes les idées/conseils sur la façon de résoudre ce problème. À ce stade, vous ne pouvez pas installer ou désinstaller quoi que ce soit.

7
mmeyer

Même scénario exact pour moi. J'ai essayé beaucoup de choses, puis quelque chose a finalement fonctionné. Au démarrage, j’ai sélectionné les options avancées: Réparer les packages, il s’est parfois bloqué et j’ai appuyé sur ctrl + c, puis il a continué avec des erreurs; après cela, il a fallu un ctrl + alt + suppr et il a redémarré.

Sudo apt-get install update et Sudo apt-get distro-upgrade ont montré que les pilotes AMD seraient supprimés. Il l’a supprimé et j’ai redémarré, mais je n’ai pas pu me connecter (je suis retourné à l’écran de connexion) Peut-être que vous pouvez faire ici Sudo chown nom d'utilisateur: nom d'utilisateur .Xauthority pour le réparer mais je ne le savais pas encore. J'ai donc fait quelques autres commandes avant faire la commande chown (ce qui corrige mon problème de connexion et tout va bien) donc après la commande distro-upgrade j'ai fait Sudo apt-get purger AMD * installé 16.40 pilote AMD à nouveau redémarrer

Je ne sais pas pourquoi cela a fonctionné, mais peut-être que cela vous aide aussi. Bonne chance

4
NV1199