Como consertar pacotes quebrados após a instalação do AMDGPU-PRO falhar [duplicado]

3

Eu tinha o amdgpu-pro 17.40 instalado e rodando bem, mas tive alguns problemas com um monitor específico (Dell U3014) não funcionando na exibição. Eu abri um ticket com a AMD e eles sugeriram uma atualização para o amdgpu-pro 17.50.

A execução do instalador do amdgpu-pro 17.50 falhou e quebrou o gerenciador de pacotes, de modo que não consigo instalar ou desinstalar nada. Eu entrei em contato com a AMD para obter ajuda, mas não obtive nenhuma resposta em 5 dias ... simplesmente porque eles ainda estão investigando.

Os resultados do script de instalação e tentativas de correção são:

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

E, em seguida, tentando corrigir:

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)

Gostaria de receber sugestões / orientações sobre como corrigir esse problema. Neste ponto, o apt não pode instalar ou desinstalar nada.

    
por mmeyer 19.12.2017 / 17:00

1 resposta

3

O mesmo cenário exato para mim. Tentei um monte de coisas, então algo finalmente funcionou. Na inicialização, selecionei as opções avançadas: Repare os pacotes, ele fez algumas coisas até travar e apertei ctrl + c então continuou com erros, depois disso precisou de um ctrl + alt + del e reiniciou.

O sudo apt-get install atualiza e o sudo apt-get distro-upgrade mostra que os drivers serão removidos. Ele removeu e eu reiniciei, mas não conseguia logar (devolvido para a tela de login) Talvez aqui você pode fazer sudo chown username: username .Xauthority para consertá-lo, mas eu não sabia sobre isso ainda assim eu fiz alguns outros comandos antes fazendo o comando chown (que corrigiu meu problema de login e tudo está bem) Então, após o comando distro-upgrade eu fiz sudo apt-get purge amd * instalei o driver de 16.40 amd novamente reboot

Não sei por que funcionou, mas talvez isso também ajude você. Boa sorte

    
por NV1199 20.12.2017 / 03:11