Dependências não satisfeitas no upgrade do apt-get

0

Eu tenho os seguintes problemas ao tentar atualizar

*david@david-K42F:~$ sudo apt-get upgrade
[sudo] password for david:
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 : Depends: libreoffice-core (= 1:4.3.0-3ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
libreoffice-base : Depends: libreoffice-base-core (= 1:4.2.6~rc2-0ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
            Depends: libreoffice-base-drivers (= 1:4.2.6~rc2-0ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
            Depends: libreoffice-core (= 1:4.2.6~rc2-0ubuntu1~precise1) but 
1:4.3.0-3ubuntu2~precise1 is installed
libreoffice-base-drivers : Breaks: libreoffice-base (< 1:4.3.0-3ubuntu2~) but 1:4.2.6~rc2-0ubuntu1~precise1 is installed
libreoffice-core : Breaks: libreoffice-base (< 1:4.3.0-3ubuntu2~precise1) but 1:4.2.6~rc2-0ubuntu1~precise1 is installed
E: Unmet dependencies. Try using -f.*

tentei usar o apt-get -f install e recebo o seguinte erro

*david@david-K42F:~$ sudo apt-get -f install
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:
libnumber-compare-perl libnet-ip-perl libnet-dns-perl libdate-calc-xs-perl
libcdr-0.0-0 libfile-find-rule-perl libwps-0.2-2 liborcus-0.6-0 libwpd-0.9-9
libdate-calc-perl libcarp-clan-perl libtext-glob-perl libvisio-0.0-0 libwpg-0.2-2
libmspub-0.0-0 libdigest-hmac-perl libbit-vector-perl
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libreoffice libreoffice-base
Suggested packages:
libreoffice-grammarcheck openclipart-libreoffice pstoedit libreoffice-officebean
libreoffice-gcj libreoffice-report-builder
The following packages will be upgraded:
libreoffice libreoffice-base
2 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.
3 not fully installed or removed.
Need to get 0 B/1,738 kB of archives.
After this operation, 915 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libreoffice-base libreoffice
Install these packages without verification [y/N]? y
dpkg: dependency problems prevent configuration of libreoffice-base:
libreoffice-base depends on libreoffice-base-core (= 1:4.2.6~rc2-0ubuntu1~precise1); however:
Version of libreoffice-base-core on system is 1:4.3.0-3ubuntu2~precise1. libreoffice-base depends on libreoffice-base-drivers (= 1:4.2.6~rc2-0ubuntu1~precise1);
however: Version of libreoffice-base-drivers on system is 1:4.3.0-3ubuntu2~precise1. libreoffice-base depends on libreoffice-core (= 1:4.2.6~rc2-0ubuntu1~precise1); however: Version of libreoffice-core on system is 1:4.3.0-3ubuntu2~precise1. libreoffice-core (1:4.3.0-3ubuntu2~precise1) breaks libreoffice-base (<< 1:4.3.0-3ubuntu2~precise1) and is installed.
Version of libreoffice-base to be configured is 1:4.2.6~rc2-0ubuntu1~precise1. libreoffice-base-drivers (1:4.3.0-3ubuntu2~precise1) breaks libreoffice-base (<< 1:4.3.0-3ubuntu2~) and is installed.
Version of libreoffice-base to be configured is 1:4.2.6~rc2-0ubuntu1~precise1.
dpkg: error processing libreoffice-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-report-builder-bin: libreoffice-report-builder-bin depends on libreoffice-base; however: Package libreoffice-base is not configured yet. dpkg: error processing libreoffice-report-builder-bin (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
            No apport report written because the error message indicates its a followup error from a previous failure.
                                dpkg: dependency problems prevent configuration of libreoffice:
libreoffice depends on libreoffice-base; however: Package libreoffice-base is not configured yet.
libreoffice depends on libreoffice-core (= 1:4.3.0-3ubuntu1~precise1); however: Version of libreoffice-core on system is 1:4.3.0-3ubuntu2~precise1.
libreoffice depends on libreoffice-report-builder-bin; however: Package libreoffice-report-builder-bin is not configured yet.
dpkg: error processing libreoffice (--configure): dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
            Errors were encountered while processing:
libreoffice-base
libreoffice-report-builder-bin
libreoffice
E: Sub-process /usr/bin/dpkg returned an error code (1) david@david-K42F:~$*

e então eu tentei isso

*david@david-K42F:~$ sudo apt-get -u dist-upgrade
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 : Depends: libreoffice-core (= 1:4.3.0-3ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
libreoffice-base : Depends: libreoffice-base-core (= 1:4.2.6~rc2-0ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
            Depends: libreoffice-base-drivers (= 1:4.2.6~rc2-0ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
            Depends: libreoffice-core (= 1:4.2.6~rc2-0ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
libreoffice-base-drivers : Breaks: libreoffice-base (< 1:4.3.0-3ubuntu2~) but 1:4.2.6~rc2-0ubuntu1~precise1 is installed
libreoffice-core : Breaks: libreoffice-base (< 1:4.3.0-3ubuntu2~precise1) but 1:4.2.6~rc2-0ubuntu1~precise1 is installed
E: Unmet dependencies. Try using -f.
david@david-K42F:~$*

Eu não tenho ideia do que fazer .... também não sou usuário linux Mudei do Windows para o Elementary OS Luna, que é strongmente baseado no Ubuntu 12.04

david@david-K42F:~$ sudo apt-get check
[sudo] password for david: 
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 : Depends: libreoffice-core (= 1:4.3.0-3ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
 libreoffice-base : Depends: libreoffice-base-core (= 1:4.2.6~rc2-0ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
                    Depends: libreoffice-base-drivers (= 1:4.2.6~rc2-0ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
                    Depends: libreoffice-core (= 1:4.2.6~rc2-0ubuntu1~precise1) but 1:4.3.0-3ubuntu2~precise1 is installed
 libreoffice-base-drivers : Breaks: libreoffice-base (< 1:4.3.0-3ubuntu2~) but 1:4.2.6~rc2-0ubuntu1~precise1 is installed
 libreoffice-core : Breaks: libreoffice-base (< 1:4.3.0-3ubuntu2~precise1) but 1:4.2.6~rc2-0ubuntu1~precise1 is installed
E: Unmet dependencies. Try using -f.
david@david-K42F:~$ sudo dpkg -C
[sudo] password for david: 
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 libreoffice          office productivity suite (metapackage)
 libreoffice-report-builder-bin LibreOffice component for building database rep

The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 libreoffice-base     office productivity suite -- database




david@david-K42F:~$ apt-cache policy libreoffice libreoffice-core libreoffice-base libreoffice-base-core libreoffice-base-drivers
libreoffice:
  Installed: 1:4.3.0-3ubuntu1~precise1
  Candidate: 1:4.3.0-3ubuntu2~precise1
  Version table:
     1:4.3.0-3ubuntu2~precise1 0
        500 ****://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main amd64 Packages
 *** 1:4.3.0-3ubuntu1~precise1 0
        100 /var/lib/dpkg/status
     1:3.5.7-0ubuntu6.1 0
        500 ****://il.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     1:3.5.4-0ubuntu1.1 0
        500 ****://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     1:3.5.2-2ubuntu1 0
        500 ****://il.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
libreoffice-core:
  Installed: 1:4.3.0-3ubuntu2~precise1
  Candidate: 1:4.3.0-3ubuntu2~precise1
  Version table:
 *** 1:4.3.0-3ubuntu2~precise1 0
        500 ****://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
     1:3.5.7-0ubuntu6.1 0
        500 ****://il.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     1:3.5.4-0ubuntu1.1 0
        500 ****://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     1:3.5.2-2ubuntu1 0
        500 ****://il.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
libreoffice-base:
  Installed: 1:4.2.6~rc2-0ubuntu1~precise1
  Candidate: 1:4.3.0-3ubuntu2~precise1
  Version table:
     1:4.3.0-3ubuntu2~precise1 0
        500 ****://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main amd64 Packages
 *** 1:4.2.6~rc2-0ubuntu1~precise1 0
        100 /var/lib/dpkg/status
     1:3.5.7-0ubuntu6.1 0
        500 ****://il.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     1:3.5.4-0ubuntu1.1 0
        500 ****://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     1:3.5.2-2ubuntu1 0
        500 ****://il.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
libreoffice-base-core:
  Installed: 1:4.3.0-3ubuntu2~precise1
  Candidate: 1:4.3.0-3ubuntu2~precise1
  Version table:
 *** 1:4.3.0-3ubuntu2~precise1 0
        500 ****://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
     1:3.5.7-0ubuntu6.1 0
        500 ****://il.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     1:3.5.4-0ubuntu1.1 0
        500 ****://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     1:3.5.2-2ubuntu1 0
        500 ****://il.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
libreoffice-base-drivers:
  Installed: 1:4.3.0-3ubuntu2~precise1
  Candidate: 1:4.3.0-3ubuntu2~precise1
  Version table:
 *** 1:4.3.0-3ubuntu2~precise1 0
        500 ****://ppa.launchpad.net/libreoffice/ppa/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
david@david-K42F:~$ 

Ele não me permitirá reinstalar o repositório eos

david@david-K42F:~$ sudo apt-add-repository ppa:versable/elementary-update
Ignoring unknown parameter "update encrypted"
You are about to add the following PPA to your system:
 A supplementary PPA for elementaryOS Luna, providing elementaryOS based apps, third party icons for the elementary icon theme, additional plank themes and more.

For more elementaryOS visit http ://www.elementaryupdate.com/
For bug reports visit https ://bugs.launchpad.net/elementary-community
 More info: https ://launchpad.net/~versable/+archive/ubuntu/elementary-update
Press [ENTER] to continue or ctrl-c to cancel adding it

Traceback (most recent call last):
  File "/usr/bin/apt-add-repository", line 185, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 97, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 585, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template

============================ Estes são os conteúdos do arquivo source.list

# deb cdrom:[elementary OS 0.2 _Luna_ - Stable amd64 (20130810)]/ dists/precise/main/binary-i386/
# deb cdrom:[elementary OS 0.2 _Luna_ - Stable amd64 (20130810)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[elementary OS 0.2 _Luna_ - Stable amd64 (20130810)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://il.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://il.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://il.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://il.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://il.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://il.archive.ubuntu.com/ubuntu/ precise universe
deb http://il.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://il.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://il.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://il.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://il.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://il.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://il.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://il.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://archive.getdeb.net/ubuntu/ precise-getdeb games
deb-src http://archive.getdeb.net/ubuntu/ precise-getdeb games
    
por David jorge Nordmann 20.08.2014 / 15:07

1 resposta

1

Você tem um PPA que está causando problemas, o melhor curso de ação é removê-lo e fazer o downgrade dos pacotes:

sudo sed -i 's/deb\ http:\/\/ppa\.launchpad\.net/#deb\ http:\/\/ppa\.launchpad\.net/' /etc/apt/sources.list{,.d/*.list}
sudo apt-get update
sudo apt-get -f install libreoffice-base-drivers_ libreoffice-base-core/precise-updates libreoffice-base/precise-updates libreoffice-core/precise-updates libreoffice/precise-updates

Uma explicação do que o acima faz:

  1. Desativar todos os PPAs no seu sistema
  2. Atualize a lista de pacotes
  3. Com o apt-get, limpe o libreoffice-base-drivers e faça downgrade de todos os outros pacotes para os que estão em precise-updates .

A última linha também pode ser usada como:

sudo dpkg --purge --force-depends libreoffice-base-drivers
sudo apt-get install libreoffice-base-core/precise-updates libreoffice-base/precise-updates libreoffice-core/precise-updates libreoffice/precise-updates
    
por 20.08.2014 / 16:17