Existe o erro que ocorre sempre que eu tento baixar dependências?

2
root@lap425:~# apt-get install -f
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:
 libwireshark3 libwiretap3 libwsutil3 re2c
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
 libc6-dev-i386
The following packages will be upgraded:
 libc6-dev-i386
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
8 not fully installed or removed.
Need to get 1,152 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main libc6-dev-i386 amd64 2.19-0ubuntu6.13 [1,152 kB]
Fetched 1,152 kB in 2s (531 kB/s)        
(Reading database ... 322294 files and directories currently installed.)
Preparing to unpack .../libc6-dev-i386_2.19-0ubuntu6.13_amd64.deb ...
Unpacking libc6-dev-i386 (2.19-0ubuntu6.13) over (2.19-0ubuntu6.11) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.13_amd64.deb (--unpack):
trying to overwrite '/usr/include/sys/uio.h', which is also in package libc6-dev-amd64 2.19-0ubuntu6.13
E: Sub-process /usr/bin/dpkg returned an error code (1)

solução para isso.

    
por Vaibhav Kadam 28.06.2017 / 14:16

1 resposta

1

O erro diz que ele não pode descompactar o pacote libc6-dev-i386 , porque um arquivo já existe de um pacote diferente e o apt-get não sobrescreverá os arquivos existentes.

  

tentando sobrescrever '/usr/include/sys/uio.h', que também está no pacote libc6-dev-amd64 2.19-0ubuntu6.13

Você pode tentar excluir um dos pacotes ofensivos:

sudo dpkg --force-overwrite --purge libc6-dev-i386

ou

sudo dpkg --force-overwrite --purge libc6-dev-amd64

Se ambos os pacotes forem necessários por outros pacotes de software que você deseja manter, você pode tentar instalar o novo pacote e forçar a sobrescrita dos arquivos conforme descrito em esta resposta :

sudo apt-get -o Dpkg::Options::="--force-overwrite" install libc6-dev-i386

Nota: isso pode causar problemas no primeiro pacote instalado.

    
por RoVo 28.06.2017 / 14:42