Como faço para reparar meu catálogo quebrado?

0

Eu corri sudo apt-get install -f do qual recebi o erro: (depois de digitar 'y' para dar permissão para instalar o libreoffice-common)

Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a3.6.2~rc2-0ubuntu4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Eu estou executando 12.10.

Eu também executei os comandos:

sudo apt-get clean
sudo apt-get autoremove
sudo apt-get autoclean

Então eu tentei

sudo apt-get remove libreoffice-common libreoffice-core libreoffice-ogltrans

e recebeu o erro:

Package 'libreoffice-common' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libreoffice-base-core : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but it is not going to be installed
 libreoffice-calc : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but it is not going to be installed
 libreoffice-draw : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but it is not going to be installed
 libreoffice-emailmerge : Depends: libreoffice-core but it is not going to be installed
 libreoffice-gnome : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but it is not going to be installed
 libreoffice-gtk : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but it is not going to be installed
 libreoffice-impress : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but it is not going to be installed
 libreoffice-math : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but it is not going to be installed
 libreoffice-pdfimport : Depends: libreoffice-core but it is not going to be installed
 libreoffice-presentation-minimizer : Depends: libreoffice-core but it is not going to be installed
 libreoffice-presenter-console : Depends: libreoffice-core but it is not going to be installed
 libreoffice-writer : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but it is not going to be installed
 mythes-en-us : Depends: libreoffice-core but it is not going to be installed or
                         openoffice.org-core (>= 1.9) but it is not installable or
                         language-support-writing-en but it is not installable
 python-uno : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    
por BH2017 28.01.2013 / 20:43

2 respostas

1

O fato de você estar enfrentando esse problema é um bug e pode ser denunciado.

Tente remover o LibreOffice completamente:

sudo apt-get remove libreoffice-common libreoffice-core libreoffice-ogltrans libreoffice-base-core libreoffice-calc libreoffice-draw libreoffice-emailmerge libreoffice-gnome libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-pdfimport libreoffice-presentation-minimizer libreoffice-presenter-console libreoffice-writer mythes-en-us python-uno openoffice.org-debian-menus libreoffice-help-en-gb libreoffice-help-en-us libreoffice-help-zh-cn

Em seguida, verifique se tudo parece estar funcionando normalmente:

sudo apt-get install -f

Tente instalar o SL (é um pequeno pacote de brincadeira inofensivo):

sudo apt-get install sl

Esta solução é baseada nesta discussão .

    
por Flimm 29.01.2013 / 21:02
0

Você pode tentar remover o arquivo .deb ofensivo primeiro:

sudo rm /var/cache/apt/archives/libreoffice-common_1%3a3.6.2~rc2-0ubuntu4_all.deb

Uma vez feito isso, atualize a lista de pacotes disponíveis:

sudo apt-get update

Em seguida, continue executando apt-get -f install , removendo o openoffice, etc.

    
por ImaginaryRobots 29.01.2013 / 21:43