E: O subprocesso / usr / bin / dpkg retornou um código de erro (1) assim como outros erros

2

Eu estava tentando atualizar o OpenGL (Um problema para outro dia, mas se você puder ajudar nessa frente, também será apreciado) quando comecei a ter problemas Então eu fiz:

root@Friithian:/home/gunqqer# apt autoremove  
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:
 libdrm-dev : Depends: libdrm-amdgpu1 (= 2.4.89+git1712180630.831036~oibaf~x) but 2.4.83-1~16.04.1 is installed
 libgl1-mesa-dri : Depends: libdrm-amdgpu1 (>= 2.4.89+git1712180630.831036~oibaf~x) but 2.4.83-1~16.04.1 is installed
 libgl1-mesa-dri:i386 : Depends: libdrm-amdgpu1:i386 (>= 2.4.89+git1712180630.831036~oibaf~x) but 2.4.83-1~16.04.1 is installed
 mesa-va-drivers : Depends: libdrm-amdgpu1 (>= 2.4.89+git1712180630.831036~oibaf~x) but 2.4.83-1~16.04.1 is installed
 mesa-vdpau-drivers : Depends: libdrm-amdgpu1 (>= 2.4.89+git1712180630.831036~oibaf~x) but 2.4.83-1~16.04.1 is installed
E: Unmet dependencies. Try using -f.

Então eu fiz

root@Friithian:/home/gunqqer# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libdrm-common
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libdrm-amdgpu1 libdrm-amdgpu1:i386
The following packages will be upgraded:
  libdrm-amdgpu1 libdrm-amdgpu1:i386
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
15 not fully installed or removed.
Need to get 0 B/60.1 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 232943 files and directories currently installed.)
Preparing to unpack .../libdrm-amdgpu1_2.4.89+git1712180630.831036~oibaf~x_amd64.deb ...
De-configuring libdrm-amdgpu1:i386 (2.4.83-1~16.04.1) ...
Unpacking libdrm-amdgpu1:amd64 (2.4.89+git1712180630.831036~oibaf~x) over (2.4.83-1~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libdrm-amdgpu1_2.4.89+git1712180630.831036~oibaf~x_amd64.deb (--unpack):
 trying to overwrite '/usr/share/libdrm/amdgpu.ids', which is also in package libdrm-common 2.4.83-1~16.04.1
Preparing to unpack .../libdrm-amdgpu1_2.4.89+git1712180630.831036~oibaf~x_i386.deb ...
De-configuring libdrm-amdgpu1:amd64 (2.4.83-1~16.04.1) ...
Unpacking libdrm-amdgpu1:i386 (2.4.89+git1712180630.831036~oibaf~x) over (2.4.83-1~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libdrm-amdgpu1_2.4.89+git1712180630.831036~oibaf~x_i386.deb (--unpack):
 trying to overwrite '/usr/share/libdrm/amdgpu.ids', which is also in package libdrm-common 2.4.83-1~16.04.1
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libdrm-amdgpu1_2.4.89+git1712180630.831036~oibaf~x_amd64.deb
 /var/cache/apt/archives/libdrm-amdgpu1_2.4.89+git1712180630.831036~oibaf~x_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Não sei o que fazer para corrigir isso. Se você precisar que eu execute um comando e informe os resultados que puder.

    
por Gunqqer 07.01.2018 / 00:45

1 resposta

3

É causada pelo status de sobregravação dpkg padrão. O dpkg não irá sobrescrever sem sua permissão na pasta compartilhada. A solução alternativa:

Pressione Ctrl + Alt + T e faça:

sudo apt-get -o Dpkg::Options::="--force-overwrite" -f install

Espero que ajude ...

    
por Olimjon 07.01.2018 / 00:53