python-uno: Depende: libreoffice-core (= 1: 4.0.2-0ubuntu1)

0

Instalei o libreoffice4.1, mas quando tento instalar o python-uno Houve erro

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.

Eu não sei como consertar isso. Por favor ajude. política do apt-cache 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

Depois de adicionar ppa para libreoffice Eu instalo mas tenho um erro como este

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)

se eu correr

sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of libreoffice-core:
 libreoffice-core depends on libreoffice-common (>> 1:4.1.0); however:
  Package libreoffice-common is not installed.

dpkg: error processing libreoffice-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-uno:
 python-uno depends on libreoffice-core (= 1:4.1.0-0ubuntu1~raring1~ppa1); however:
  Package libreoffice-core is not configured yet.

dpkg: error processing python-uno (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libreoffice-core
 python-uno

se eu correr

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)
    
por giaosudau 22.08.2013 / 07:32

2 respostas

3
% bl0ck_qu0te%

python-uno depende de libreoffice-core e libreoffice-core deppends de libreoffice-common , mas libreoffice-common não está sendo instalado devido openoffice-debian-menus possuindo o binário /usr/bin/soffice . É um problema de correlação de dependência devido à instalação e mistura de pacotes, onde python-uno não será instalado enquanto openoffice-debian-menus estiver instalado. Então, método para resolver isso:

sudo apt-get --fix-broken purge openoffice-debian-menus
sudo dpkg --configure -a
sudo apt-get -f install

Isto irá deletar o pacote openoffice-debian-menus , que permitirá que você instale o libreoffice e salve o seu sistema.

    
por Braiam 22.08.2013 / 12:14
2

Se você instalou os pacotes manualmente baixando e instalando-os, você receberá conflitos como este. Por quê? Porque o APT só pode "ver" os pacotes em repositórios . Você decidiu instalar apenas um certo conjunto de pacotes anteriormente e agora que você precisa de outro, ele verá apenas um nos repositórios principais do Ubuntu.

Para consertar isso e instalar o LibreOffice de forma que você receba atualizações, eu sugiro que você instale o LibreOffice 4.1 PPA.

  1. Executar

    sudo apt-add-repository ppa:libreoffice/libreoffice-4-1
    

    para instalar o repositório 4.1.

  2. Em seguida, execute

    sudo apt-get update && sudo apt-get dist-upgrade
    

    para ficar totalmente atualizado.

  3. Agora você deve conseguir instalar o mais recente python-uno compatível com o 4.1.

Veja também Existe um PPA com a versão mais recente do LibreOffice?

    
por gertvdijk 22.08.2013 / 08:08