Impossível instalar o Warzone2100 devido a pacotes quebrados

0

Eu tentei usar o comando sudo apt install warzone2100 para instalar o Warzone 2100, mas estou recebendo o erro abaixo. Por favor, alguém pode aconselhar como resolver este problema?

Laptop@HP-DM1Z:~$ sudo apt install warzone2100
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:
 warzone2100 : Depends: libglew2.0 (>= 1.12.0) but it is not installable
               Depends: libqt5core5a (>= 5.7.0) but 5.5.1+dfsg-16ubuntu7.5 is to be installed
               Depends: libqt5script5 (>= 5.6.0~beta) but 5.5.1+dfsg-2build1 is to be installed
               Depends: libstdc++6 (>= 6) but 5.4.0-6ubuntu1~16.04.4 is to be installed
E: Unable to correct problems, you have held broken packages.

EDIT: Atualmente estou usando o Ubuntu 16.04 LTS.

Se eu digitar apt policy warzone2100 libglew2.0 libqt5core5a libqt5script5 libstdc++6 no terminal, o resultado será mostrado abaixo:

  Laptop@HP-DM1Z:~$ apt policy warzone2100 libglew2.0 libqt5core5a libqt5script5 libstdc++6
warzone2100:
  Installed: (none)
  Candidate: 3.2.3-1~getdeb2~zesty
  Version table:
     3.2.3-1~getdeb2~zesty 500
        500 http://archive.getdeb.net/ubuntu zesty-getdeb/games amd64 Packages
     3.1.1-2 500
        500 http://ph.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status
libglew2.0:
  Installed: (none)
  Candidate: (none)
  Version table:
libqt5core5a:
  Installed: 5.5.1+dfsg-16ubuntu7.5
  Candidate: 5.5.1+dfsg-16ubuntu7.5
  Version table:
 *** 5.5.1+dfsg-16ubuntu7.5 500
        500 http://ph.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     5.5.1+dfsg-16ubuntu7 500
        500 http://ph.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libqt5script5:
  Installed: 5.5.1+dfsg-2build1
  Candidate: 5.5.1+dfsg-2build1
  Version table:
 *** 5.5.1+dfsg-2build1 500
        500 http://ph.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status
libstdc++6:
  Installed: 5.4.0-6ubuntu1~16.04.4
  Candidate: 5.4.0-6ubuntu1~16.04.4
  Version table:
 *** 5.4.0-6ubuntu1~16.04.4 500
        500 http://ph.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.3.1-14ubuntu2 500
        500 http://ph.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Laptop@HP-DM1Z:~$ 
    
por LesterTriple7 16.07.2017 / 13:02

1 resposta

0

Você tem um repositório para o Zesty ativado (archive.getdeb.com), que contém pacotes em versões incompatíveis com o resto do sistema. Você precisa desativar esse repositório, atualizar suas listas de software e, em seguida, obter a versão correta.

  • Para desativar o repositório, encontre sua linha em /etc/apt/sources.list ou qualquer arquivo em /etc/apt/sources.list.d/ e exclua-o ou comente colocando um # na frente da linha. Observe que você precisa de sudo para editar esses arquivos.

    Você também pode fazer isso através do Configurações do sistema → Software e amp; Atualizações GUI.

  • Atualize suas listas de software usando sudo apt update .

  • Tente instalar seu pacote novamente: sudo apt install warzon2100 . Ele deve escolher uma versão compatível agora e você não deve mais ter conflitos.

por Byte Commander 16.07.2017 / 17:00