Всунутый поврежденный цикл пакетов (связанный с Libreoffice / Openoffice)

У меня есть некоторые поврежденные пакеты после того, чтобы портить удаление Libreoffice (я установил Apache OpenOffice, но кажется, что я не полностью удалил LO сначала). Ниже некоторые ответы, которые я получаю к различным командам.

Самый простой вопрос сначала... Я должен удалить Apache OO перед продолжением?

Первый набор здесь должен только показать то, что установлено, и я думаю, показывает все поврежденные пакеты LO:

$ 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

Не удалить поврежденные пакеты или установленные:

$ 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).

Я пытается зафиксировать поврежденные пакеты:

$ 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)

У меня есть LO ppa: ppa.launchpad.net/libreoffice/ppa/ubuntu
Я должен удалить его?

Что я могу попробовать затем? Существует ли опция "в лоб"? Как комната-f libreoffice каталогов?

5
задан 31 January 2014 в 09:01

2 ответа

У меня была точно такая же проблема, и после того, как все предложения оказались бесполезными, я создал загрузочный диск и переустановил Ubuntu ( http://www.ubuntu.com/download/desktop/ сжечь-A-DVD-на-убунту ). Лучше всего то, что я не потерял ни один из своих файлов, и, насколько я знаю, все мои настройки были восстановлены после переустановки моих программ. Так что я бы пошел с этим, если нет лучшего решения.

0
ответ дан 31 January 2014 в 09:01

Вы должны выбрать один пакет, который вам действительно нужен.

Вы можете попытаться исправить это с помощью графического менеджера пакетов Ubuntu (синаптического с GUI)! :

После входа в систему с вашим паролем, затем сначала установите хуклет, чтобы удалить (полностью удалить) все OpenOffice - соответственно. LibreOffice - пакеты. Затем «примените» это там.

После успешного удаления - затем закройте графический менеджер пакетов Ubuntu (синаптический с GUI).

Лучше перезагрузите свой Ubuntu-компьютер.

Вернувшись в терминал, вы можете попытаться повторно извлечь скачанный пакет Apache-Office.

gunzip Apache_OpenOffice * .tar.gz

затем

tar -xvf Apache_OpenOffice * .tar

Это должно сработать.

Если это не работает, то в Apache-package может быть ошибка.

0
ответ дан 31 January 2014 в 09:01

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

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