python-uno: Зависит от: libreoffice-core (= 1: 4.0.2-0ubuntu1)

У меня установлена ​​libreoffice4.1, но когда я пытаюсь установить python-uno, у нее была ошибка

sudo apt-get install python-uno
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-uno : Depends: libreoffice-core (= 1:4.0.2-0ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Я не знаю, как это исправить. Пожалуйста помоги. apt-cache policy python-uno libreoffice-core

python-uno:
  Installed: (none)
  Candidate: 1:4.0.2-0ubuntu1
  Version table:
     1:4.0.2-0ubuntu1 0
        500 http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/ raring/universe amd64 Packages
libreoffice-core:
  Installed: (none)
  Candidate: 1:4.0.2-0ubuntu1
  Version table:
     1:4.1.0-0ubuntu1~raring1~ppa1 0
        100 /var/lib/dpkg/status
     1:4.0.2-0ubuntu1 0
        500 http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/ raring/main amd64 Packages

После добавления ppa для libreoffice я устанавливаю, но имею ошибку, подобную этой

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libreoffice-common libreoffice-core
Suggested packages:
  libreoffice-style-crystal libreoffice-style-hicontrast libreoffice-style-human libreoffice-style-oxygen libreoffice-style-tango
The following NEW packages will be installed:
  libreoffice-common libreoffice-core python-uno
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.5 MB/56.2 MB of archives.
After this operation, 196 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ raring/main libreoffice-core amd64 1:4.1.0-0ubuntu1~raring1~ppa1 [28.2 MB]
Get:2 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ raring/main python-uno amd64 1:4.1.0-0ubuntu1~raring1~ppa1 [284 kB]                      
Fetched 28.5 MB in 1min 21s (351 kB/s)                                                                                                          
(Reading database ... 415424 files and directories currently installed.)
Unpacking libreoffice-common (from .../libreoffice-common_1%3a4.1.0-0ubuntu1~raring1~ppa1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a4.1.0-0ubuntu1~raring1~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
Selecting previously unselected package libreoffice-core.
Unpacking libreoffice-core (from .../libreoffice-core_1%3a4.1.0-0ubuntu1~raring1~ppa1_amd64.deb) ...
Selecting previously unselected package python-uno.
Unpacking python-uno (from .../python-uno_1%3a4.1.0-0ubuntu1~raring1~ppa1_amd64.deb) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.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 man-db ...
Processing triggers for gnome-icon-theme ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a4.1.0-0ubuntu1~raring1~ppa1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

, если я запустил

[ f4]

, если я запустил

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:
  libreoffice-common
Suggested packages:
  libreoffice-style-crystal libreoffice-style-hicontrast libreoffice-style-human libreoffice-style-oxygen libreoffice-style-tango
The following NEW packages will be installed:
  libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/27.7 MB of archives.
After this operation, 76.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 415610 files and directories currently installed.)
Unpacking libreoffice-common (from .../libreoffice-common_1%3a4.1.0-0ubuntu1~raring1~ppa1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a4.1.0-0ubuntu1~raring1~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-2.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 man-db ...
Processing triggers for gnome-icon-theme ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a4.1.0-0ubuntu1~raring1~ppa1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
1
задан 21 May 2015 в 04:18

1 ответ

Если вы установили пакеты, загрузив их вручную и установив их, вы получите такие конфликты. Зачем? Поскольку APT может «видеть» пакеты в репозиториях. Вы решили установить только определенный набор пакетов ранее, а теперь, когда вам нужен другой, он будет видеть только один из основных хранилищ Ubuntu.

Исправить это и установить LibreOffice таким образом, чтобы вы получите обновления, я предлагаю вам установить PPP LibreOffice 4.1.

Запустить
sudo apt-add-repository ppa:libreoffice/libreoffice-4-1
, чтобы установить хранилище 4.1. Затем запустите
sudo apt-get update && sudo apt-get dist-upgrade
, чтобы получить полную актуальность. Теперь вы можете установить последнюю версию python-uno, совместимую с 4.1.

См. также Есть ли PPA с последней версией LibreOffice?

2
ответ дан 24 May 2018 в 18:49
  • 1
    У меня была ошибка, прежде чем делать это обновление выше – giaosudau 22 August 2013 в 11:16
  • 2
    @sepdau Ах, вы установили больше пакетов с других сайтов, которые вызывают конфликты ... Вот в чем винить openoffice-debian-menus. Вам действительно нужен OpenOffice? – gertvdijk 22 August 2013 в 11:18
  • 3
    Я устанавливаю openoffice после удаления libreoffice, тогда я устанавливаю libreoffice снова, тогда я не могу удалить пакет. Возможно, вы захотите запустить «apt-get -f install», чтобы исправить следующее: Следующие пакеты имеют неудовлетворенные зависимости: libreoffice-core: Depends: libreoffice -common (& gt; 1: 4.1.0), но он не будет установлен E: Неудовлетворенные зависимости. Попробуйте «apt-get -f install» без пакетов (или укажите решение). – giaosudau 22 August 2013 в 11:22
  • 4
    @sepdau Ну, чтобы рассказать вам, как удалить OpenOffice, вам нужно будет рассказать, как вы его установили в первую очередь. Пожалуйста, включите это в свой вопрос. Кроме того, что делает sudo apt-get install -f? – gertvdijk 22 August 2013 в 11:38
  • 5
    У меня есть обновление выше. – giaosudau 22 August 2013 в 11:39

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

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