“dependências não atendidas”, não é possível remover o AOO ou o LibreOffice

-1

Então, eu recentemente reinstalei o Ubuntu (14.04, porque 14.10 estava dando alguns pequenos problemas) no meu computador.

Esqueci-me dos problemas que tive na última vez em que instalei o OpenOffice junto com o LibreOffice e tentei novamente ter os dois na mesma máquina (instalei o OO primeiro e depois o LO).

Agora, o Ubuntu não pode atualizar mais. Dá um problema que eu pude ver resolvido algumas vezes na web, as infames "dependências não atendidas". O fato é que eu já tentei -f install , e não funcionou, removendo o openoffice ou o libreoffice com remove , purge , ou comandos similares também não funcionam, e todos esses comandos retornam o mesmo problema com as dependências.

Eu peço ajuda: como faço para remover qualquer um desses programas, possivelmente sem reinstalar o Ubuntu novamente?

Anexei as respostas que recebo para cada comando que já vi na Web que já experimentei:

$ sudo apt-get -f install
The following packages were automatically installed and are no longer required:
  hyphen-it libreoffice-help-en-gb libreoffice-help-en-us libreoffice-help-it
  libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-it
  mythes-en-au mythes-en-us mythes-it
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-crystal libreoffice-style-hicontrast
  libreoffice-style-human libreoffice-style-oxygen libreoffice-style-sifr
  libreoffice-style-tango
The following NEW packages will be installed:
  libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 74 not upgraded.
23 not fully installed or removed.
Need to get 0 B/20,4 MB of archives.
After this operation, 79,2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Unpacking libreoffice-common (1:4.4.0~rc3-0ubuntu1~trusty1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a4.4.0~rc3-0ubuntu1~trusty1_all.deb (--unpack):
 trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.1-9775
rmdir: failed to remove ‘/var/lib/libreoffice/share/prereg/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice/share/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice/program/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice’: No such file or directory
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a4.4.0~rc3-0ubuntu1~trusty1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

apt-get autoremove (sugerido até mesmo quando entrei no último comando)

You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libreoffice-core : Depends: libreoffice-common (> 1:4.4.0~rc3) but it is not installed
 libreoffice-help-en-us : Depends: libreoffice-l10n-en-us
 libreoffice-java-common : Depends: libreoffice-common but it is not installed
 libreoffice-l10n-en-gb : Depends: libreoffice-common but it is not installed
 libreoffice-l10n-en-za : Depends: libreoffice-common but it is not installed
 libreoffice-l10n-it : Depends: libreoffice-common but it is not installed
E: Unmet dependencies. Try using -f.

Vendo que isso não me levou a nenhum lugar, eu até tentei "instalar" o Lo novamente, já que o problema parece ser causado pelos pacotes que faltam, mas recebo o mesmo tipo de resposta. O mesmo vale para tentar autoremove, purgar, autoclean, etc. Se alguém precisar, posso postar essas linhas também.

    
por Alberto 19.02.2015 / 08:49

1 resposta

0

Tente forçar a remoção de pacotes instalados com dependências não atendidas antes de executar apt-get -f install . No seu caso específico, você pode tentar:

sudo apt-get -f remove libreoffice-core libreoffice-help-en-us libreoffice-java-common libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-it

Certifique-se de examinar os pacotes instalados e adicionar ao comando acima de qualquer pacote relacionado ao OpenOffice.org, para evitar outros conflitos.

Tente também executar sudo apt-get autoremove e sudo apt-get check antes de tentar executar sudo apt-get install -f . Espero que o último comando não encontre nada para fazer, e você poderá fazer uma instalação limpa com sudo apt-get install libreoffice .

    
por gerlos 19.02.2015 / 10:40