Problema com o sudo apt-get -f install

0

Eu tentei sudo apt-get autoclean e sudo apt-get clean . Ainda continuo recebendo esse erro

Estou executando o Ubuntu 12

siddharth@IWORKHERE:~/Downloads$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree        
Reading state information... Done 
Correcting dependencies... Done 
The following extra packages will be installed:   
      openjdk-7-jdk 
Suggested packages:  
visualvm 
The following packages will be upgraded:   
      openjdk-7-jdk 1 upgraded, 0 newly installed, 0 to remove and 89 not upgraded. 
Need to get 0 B/16.5 MB of archives. 
After this operation, 88.1 kB of additional disk space will be used. 
Do you want to continue [Y/n]? Y 
(Reading database ... 394130 files and directories currently installed.) 
Preparing to replace openjdk-7-jdk 7u55-2.4.7-1ubuntu1~0.12.04.2 (using .../openjdk-7-jdk_7u65-2.5.1-4ubuntu1~0.12.04.2_i386.deb) ... 
Unpacking replacement openjdk-7-jdk ... dpkg: error processing 
/var/cache/apt/archives/openjdk-7-jdk_7u65-2.5.1-4ubuntu1~0.12.04.2_i386.deb (--unpack):  
trying to overwrite '/usr/lib/jvm/java-7-openjdk-i386/src.zip', which is also in package openjdk-7-source 7u55-2.4.7-1ubuntu1~0.12.04.2 
Errors were encountered while processing:  /var/cache/apt/archives/openjdk-7-jdk_7u65-2.5.1-4ubuntu1~0.12.04.2_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por Siddharth 08.10.2014 / 17:01

2 respostas

1

sudo dpkg -r openjdk-7-jdk
sudo apt-get remove --purge openjdk-7-jdk
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update

e, finalmente, você está pronto para instalar o pacote como se fosse um novo sem nenhum histórico final da instalação.

    
por Faron 08.10.2014 / 17:07
-1

Você precisará forçar a gravação desse arquivo.

por favor, execute este comando sudo dpkg -i --force-overwrite /var/cache/apt/archives/openjdk-7-jdk_7u65-2.5.1-4ubuntu1~0.12.04.2_i386.deb

execute sudo apt-get -f install

ref: [RESOLVIDO] ] Erro 'dpkg: processamento de erros (--unpack) tentando sobrescrever…

    
por AdigaJo 08.10.2014 / 17:08