Meu sistema está quebrado Eu acho - problemas com libqt4-test

2

Então, eis o problema, toda vez que tento instalar um pacote, recebo um erro que diz:

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:
 libqt4-test : Breaks: libqt4-test:i386 (!= 4:4.8.1-0ubuntu4.3) but 4:4.8.1-0ubuntu4.2 is to be installed
 libqt4-test:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.2) but 4:4.8.1-0ubuntu4.3 is to be installed
                    Breaks: libqt4-test (!= 4:4.8.1-0ubuntu4.2) but 4:4.8.1-0ubuntu4.3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Então, quando eu chamo sudo apt-get -f install , recebo este erro:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libpgm-5.1-0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libqt4-test:i386
The following packages will be upgraded:
  libqt4-test:i386
1 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
2 not fully installed or removed.
Need to get 0 B/61.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: error processing libqt4-test:i386 (--configure):
 libqt4-test:i386 4:4.8.1-0ubuntu4.2 cannot be configured because libqt4-test:amd64 is in a different version (4:4.8.1-0ubuntu4.3)
dpkg: error processing libqt4-test (--configure):
 libqt4-test:amd64 4:4.8.1-0ubuntu4.3 cannot be configured because libqt4-test:i386 is in a different version (4:4.8.1-0ubuntu4.2)
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 libqt4-test:i386
 libqt4-test
E: Sub-process /usr/bin/dpkg returned an error code (1)

Alguém tem alguma idéia de como eu poderia encontrar meu caminho para sair deste dilema?

    
por João Pinto Jerónimo 26.11.2012 / 12:36

1 resposta

2

Parece uma inclinação de vários arcos. O Apt pode ver a versão 4:4.8.1-0ubuntu4.2 para i386 e 4:4.8.1-0ubuntu4.3 para amd64 , mas precisa da mesma versão para as duas arquiteturas.

Talvez você tenha se atualizado em um momento muito ruim, quando este pacote foi criado para amd64 , mas não i836 ainda?

4:4.8.1-0ubuntu4.3 foi criado para os dois, então você deve conseguir fazer um apt-get update seguido por um apt-get -f install .

Solução: dpkg --force-depends --remove libqt4-test libqt4-test:i386 para remover os dois e, em seguida, reinstale-os com apt-get -f install libqt4-test libqt4-test:i386

    
por tumbleweed 30.11.2012 / 14:34