Preso no ciclo de pacotes quebrados (relacionado ao Libreoffice / Openoffice)

5

Eu tenho alguns pacotes quebrados depois de bagunçar a desinstalação do Libreoffice (eu instalei o Apache Openoffice, mas parece que eu não removi completamente o LO primeiro). Abaixo estão algumas das respostas que recebo para vários comandos.

A pergunta mais simples primeiro ... Devo remover o Apache OO antes de continuar?

O primeiro conjunto aqui é apenas para mostrar o que está instalado, e eu acho que mostra todos os pacotes LO quebrados:

$ aptitude search '~i' | grep libreoffice
B   libreoffice-emailmerge          - transitional package for LibreOffices emai
B   libreoffice-java-common         - office productivity suite -- arch-independ
i   libreoffice-style-tango         - office productivity suite -- Tango symbol 
i   openclipart-libreoffice         - clip art for OpenOffice.org/LibreOffice ga

Não é possível remover pacotes quebrados ou instalados:

$ sudo apt-get purge libreoffice-emailmerge
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:
 libreoffice-java-common : Depends: libreoffice-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$
$ sudo apt-get purge openclipart-libreoffice
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:
 libreoffice-emailmerge : Depends: libreoffice-common (>= 1:4.0.2~rc1) but it is not going to be installed
 libreoffice-java-common : Depends: libreoffice-common but it is not going to be installed
 openclipart : Depends: openclipart-libreoffice (= 2.0-1ubuntu1) but it is not going to be installed
 openclipart-openoffice.org : Depends: openclipart-libreoffice but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Eu tento consertar pacotes quebrados:

$ sudo apt-get install -f 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libclucene-contribs1 libclucene-core1 libcmis-0.3-3 libexttextcat-2.0-0 libexttextcat-data liblangtag-common liblangtag1
  libreoffice-common libreoffice-core python-uno uno-libs3 ure
Suggested packages:
  libreoffice-style-crystal libreoffice-style-hicontrast libreoffice-style-human libreoffice-style-oxygen
The following packages will be REMOVED:
  libexttextcat0
The following NEW packages will be installed:
  libclucene-contribs1 libclucene-core1 libcmis-0.3-3 libexttextcat-2.0-0 liblangtag-common liblangtag1 libreoffice-common
  libreoffice-core python-uno
The following packages will be upgraded:
  libexttextcat-data uno-libs3 ure
3 upgraded, 9 newly installed, 1 to remove and 6 not upgraded.
4 not fully installed or removed.
Need to get 61.5 MB of archives.
After this operation, 209 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main ure amd64 4.1.0-0ubuntu1~precise1~ppa1 [1,910 kB]
Get:2 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main uno-libs3 amd64 4.1.0-0ubuntu1~precise1~ppa1 [773 kB]          
Get:3 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main libreoffice-common all 1:4.1.0-0ubuntu1~precise1~ppa1 [27.5 MB]
Get:4 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main libclucene-core1 amd64 2.3.3.4-2~precise1 [602 kB]             
Get:5 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main libclucene-contribs1 amd64 2.3.3.4-2~precise1 [114 kB]         
Get:6 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main libcmis-0.3-3 amd64 0.3.1-1ubuntu1~precise1 [318 kB]           
Get:7 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main libexttextcat-data all 3.4.0-1~precise1 [193 kB]               
Get:8 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main libexttextcat-2.0-0 amd64 3.4.0-1~precise1 [17.0 kB]           
Get:9 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main liblangtag-common all 0.5.1-2~precise2 [135 kB]                
Get:10 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main liblangtag1 amd64 0.5.1-2~precise2 [55.4 kB]                  
Get:11 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main libreoffice-core amd64 1:4.1.0-0ubuntu1~precise1~ppa1 [29.5 MB]
Get:12 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main python-uno amd64 1:4.1.0-0ubuntu1~precise1~ppa1 [283 kB]      
Fetched 61.5 MB in 29s (2,104 kB/s)                                                                                                
(Reading database ... 1099753 files and directories currently installed.)
Preparing to replace ure 3.5.7-0ubuntu4 (using .../ure_4.1.0-0ubuntu1~precise1~ppa1_amd64.deb) ...
Unpacking replacement ure ...
Preparing to replace uno-libs3 3.5.7-0ubuntu4 (using .../uno-libs3_4.1.0-0ubuntu1~precise1~ppa1_amd64.deb) ...
Unpacking replacement uno-libs3 ...
Unpacking libreoffice-common (from .../libreoffice-common_1%3a4.1.0-0ubuntu1~precise1~ppa1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a4.1.0-0ubuntu1~precise1~ppa1_all.deb (--unpack):
 trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.0-9702
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/share/': Directory not empty
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': Directory not empty
rmdir: failed to remove '/var/lib/libreoffice': Directory not empty
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for hicolor-icon-theme ...
Processing triggers for gnome-icon-theme ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a4.1.0-0ubuntu1~precise1~ppa1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Eu tenho o LO ppa: ppa.launchpad.net/libreoffice/ppa/ubuntu
Devo removê-lo?

O que posso experimentar agora? Existe uma opção de força bruta? Como rm -f dos diretórios libreoffice?

    
por a different ben 29.07.2013 / 07:45

2 respostas

0

Você deve decidir por um pacote, o que realmente precisa.

Você poderia tentar consertar isso com o gerenciador de pacotes gráfico do Ubuntu (synaptic with GUI)! :

Depois de entrar lá com sua senha, então primeiro configure um hooklet para remover (remover totalmente) todo o OpenOffice - resp. LibreOffice - pacotes. Então "aplique" isso aí.

Após a remoção bem sucedida - então feche o gerenciador de pacotes gráfico do Ubuntu (synaptic with GUI).

Melhor reiniciar sua máquina Ubuntu.

De volta ao terminal, você pode tentar extrair novamente o pacote Apache-Office baixado.

  

gunzip Apache_OpenOffice * .tar.gz

então

  

tar -xvf Apache_OpenOffice * .tar

Isso deve funcionar.

Caso isso não funcione, o pacote Apache pode ter um bug.

    
por dschinn1001 01.08.2013 / 12:18
0

Eu tive o mesmo problema EXATO, e depois de tentar todas as sugestões sem sucesso, eu criei um disco de inicialização e reinstalei o Ubuntu ( link ). O melhor de tudo, não perdi nenhum dos meus arquivos e, até onde sei, todas as minhas configurações foram restauradas depois que eu reinstalei meus programas. Então eu iria com isso se não houvesse uma solução melhor.

    
por apmonr 10.08.2013 / 22:08

Tags