Eu tenho um erro “apt-get -f install”, ajude-me a consertá-lo [duplicado]

0

Então, da última vez eu meio que quebrei o meu servidor Ubuntu e estou recebendo o seguinte erro, eu quero dizer que eu deletei algumas coisas do libjpeg8:i386 e agora não consigo instalar nenhum pacote!

root@s1:~# apt-get install php-apc 
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:  
libgd3:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed  
libgphoto2-6:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed  
libsane:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed  
libtiff5:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed  
libv4lconvert0:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed  
php-apc : Depends: php5-apcu but it is not going to be installed 
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

root@s1:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libjpeg8:i386
The following NEW packages will be installed:
  libjpeg8:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
11 not fully installed or removed.
Need to get 0 B/2,188 B of archives.
After this operation, 26.6 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 247834 files and directories currently installed.)
Preparing to unpack .../libjpeg8_8c-2ubuntu8_i386.deb ...
Unpacking libjpeg8:i386 (8c-2ubuntu8) ...
dpkg: error processing archive /var/cache/apt/archives/libjpeg8_8c-2ubuntu8_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libjpeg8/copyright', which is different from other instances of package libjpeg8:i386
Errors were encountered while processing:
 /var/cache/apt/archives/libjpeg8_8c-2ubuntu8_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por Curean Nicușor 14.02.2017 / 11:36

1 resposta

1

Isso consertou meu problema, desculpe por incomodar vocês, obrigado por todo o apoio!

sudo dpkg -i --force-overwrite /var/cache/apt/archives/var/cache apt/archives/libjpeg8_8c-2ubuntu8_i386.deb 

Verifique se tudo está corrigido executando:

sudo apt-get -f install

Se você ainda tiver problemas, execute novamente a primeira etapa com qualquer dpkg: erro de processamento (...) restante

    
por Curean Nicușor 14.02.2017 / 19:58