Как исправить неисправные зависимости после прерванной установки gnome / libreoffice?

Я использую Ubuntu 14.04 LTS (64 бита) с удаленным Libreoffice и установленным Openoffice 4.1.0.

Моя система пакетов не работает, и я не могу ничего установить или удалить, пока не устраню проблему. Я искал ask-ubuntu и прочитал множество «решений» для сломанных зависимостей, но ни одно из них не помогло мне в затруднительном положении.

Вот что я сделал, чтобы попасть в нынешний тупик.

Я пытался установить рабочий стол gnome с помощью «Центра программного обеспечения», но я не осознавал, что установка рабочего стола также пыталась установить Libreoffice. В процессе установки процесс выплюнул ошибку и остановился. Использование «sudo apt-get install -f» приводит к выводу ниже.

Я хотел бы исправить зависимости, чтобы избавиться от сломанной установки Libreoffice, но я не знаю, с чего начать.

sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libreoffice-help-en-gb libreoffice-help-en-us libreoffice-l10n-en-gb
  libreoffice-l10n-en-za mythes-en-au mythes-en-us
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-breeze libreoffice-style-crystal
  libreoffice-style-hicontrast libreoffice-style-oxygen libreoffice-style-sifr
  libreoffice-style-tango
The following NEW packages will be installed
  libreoffice-common
0 to upgrade, 1 to newly install, 0 to remove and 24 not to upgrade.
23 not fully installed or removed.
Need to get 0 B/22.0 MB of archives.
After this operation, 82.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 266625 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a4.4.3~rc2-0ubuntu1~trusty1_all.deb ...
Unpacking libreoffice-common (1:4.4.3~rc2-0ubuntu1~trusty1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a4.4.3~rc2-0ubuntu1~trusty1_all.deb (--unpack):
 trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1-9764
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) ...
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 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...
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) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a4.4.3~rc2-0ubuntu1~trusty1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

These are the broken dependencies: 
libreoffice-core: Depends: libreoffice-common (> 1:4.4.3~rc2) but it is not installed 
libreoffice-help-en-us: Depends: libreoffice-l10n-en-us but it is a virtual package 
libreoffice-l10n-en-gb: Depends: libreoffice-common but it is not installed 
libreoffice-l10n-en-za: Depends: libreoffice-common but it is not installed –
0
задан 25 May 2015 в 15:34

1 ответ

Следующий этот поток и делают затем:

sudo rm /var/cache/apt/archives/* -vf
sudo apt-get update
sudo apt-get dist-upgrade

при необходимости:

sudo apt-get install --reinstall libreoffice

или чистка это и установка это назад с:

sudo apt-get remove --purge libreoffice
sudo apt-get install libreoffice
0
ответ дан 25 May 2015 в 15:34

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

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