Как мне починить сломанный каталог?

Я запустил sudo apt-get install -f, из-за чего я получил ошибку: (после ввода 'y', чтобы дать ему разрешение на установку 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)

Я запускаю 12.10.

Я также выполнил команды:

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

Затем я попытался

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

и получил ошибку:

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).
0
задан 30 January 2013 в 00:08

2 ответа

Тот факт, что вы столкнулись с этой проблемой, является ошибкой, и о ней можно сообщить.

Попробуйте полностью удалить LibreOffice:

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

Затем убедитесь, что все работает нормально:

sudo apt-get install -f

Попробуйте установить SL (это небольшой пакет шуток, который безвреден): [ 117]

sudo apt-get install sl

Это решение основано на этой дискуссии .

0
ответ дан 30 January 2013 в 00:08

Можно попытаться удалить оскорбление .deb файл сначала:

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

После того как это сделано, обновите список доступных пакетов:

sudo apt-get update

Затем возобновите выполнение apt-get -f install, удаление openoffice, и т.д.

0
ответ дан 30 January 2013 в 00:08

Другие вопросы по тегам:

Похожие вопросы: