Não consigo instalar nem desinstalar pacotes. O que posso fazer sobre isso? [duplicado]

0

Por exemplo: sudo apt-get install gedit retorna isso.

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:
     gedit : Depends: gedit-common (>= 3.10) but it is not going to be installed
             Depends: gedit-common (< 3.11) but it is not going to be installed
     libqt4-declarative : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4.9 is to
be installed
     libqt4-network : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4.9 is to
be installed
     libqt4-script : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4.9 is to
be installed
     libqt4-scripttools:i386 : Depends: libqt4-script:i386 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but it is not going to be
installed
                               Depends: libqtcore4:i386 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4 is to be
installed
                               Depends: libqtgui4:i386 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but it is not going to be
installed
                               Depends: libstdc++6:i386 (>= 4.1.1) but it is not going to be installed
     libqt4-sql : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4.9 is to
be installed
     libqt4-sql-mysql : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4.9 is to
be installed
     libqt4-xml : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4.9 is to
be installed
     libqt4-xmlpatterns : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4.9 is to
be installed
     libqt4-xmlpatterns:i386 : Depends: libqt4-network:i386 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but it is not going to be
installed
                               Depends: libqtcore4:i386 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4 is to be
installed
                               Depends: libstdc++6:i386 (>= 4.1.1) but it is not going to be installed
     libqtcore4 : Breaks: libqtcore4:i386 (!= 4:4.8.1-0ubuntu4.9) but 4:4.8.1-0ubuntu4 is to be installed
     libqtcore4:i386 : Depends: libglib2.0-0:i386 (>= 2.22.0) but it is not going to be installed
                       Depends: libstdc++6:i386 (>= 4.6) but it is not going to be installed
                       Breaks: libqtcore4 (!= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.9 is to be installed
     libqtdbus4 : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4.9 is to
be installed
     libqtgui4 : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1) but 4:4.8.1-0ubuntu4.9 is to
be installed
     qtcore4-l10n : Breaks: libqtcore4 (< 4:4.8.5+dfsg-1~) but 4:4.8.1-0ubuntu4.9 is to be installed
                    Breaks: libqtcore4:i386 (< 4:4.8.5+dfsg-1~) but 4:4.8.1-0ubuntu4 is to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Eu tentei o "apt-get -f install", o "apt-get update", o "apt-get upgrade", o "apt-get dist-update" e muito mais. Parece ser um problema com "libqtcore4". Eu tentei usar o dpkg para instalá-lo com um arquivo .deb. Eu esvaziei todos os caches possíveis e tentei instalá-lo a partir do centro de software. Por favor me ajude, eu gostaria de usar o apt-get novamente. Obrigado antecipadamente!

Aqui está a política do apt-cache:

$ apt-cache policy libqtcore4
libqtcore4:
  Installed: 4:4.8.1-0ubuntu4.9
  Candidate: 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1
  Version table:
     4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6.1 0
        500 http://se.archive.ubuntu.com/ubuntu/ vivid-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ vivid-security/main amd64 Packages
     4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6 0
        500 http://se.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
 *** 4:4.8.1-0ubuntu4.9 0
        100 /var/lib/dpkg/status
    
por 075 01.10.2015 / 17:55

1 resposta

0

Você não está usando o último libqtcore4 disponível. Cada um dos pacotes quebrados acima é dependente de uma versão muito mais nova do que existe nos repositórios do Vivid, e é por isso que você tem tantas coisas quebradas.

Use o dos repositórios do Ubuntu, ou não use nada que dependa dele. Não há razão para usar as bibliotecas mais antigas, porque quebra o QT Core quando tudo depende do 4.8.6 e não do 4.8.1

    
por Thomas Ward 01.10.2015 / 18:20