Confusão de dependência

0

Estou tentando instalar o libglib2.0-dev tentando

brian@computer:~$ sudo apt-get install libglib2.0-dev

No entanto, eu volto:

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:
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
              Depends: libglib2.0-bin (= 2.48.0-1ubuntu4)
E: Unable to correct problems, you have held broken packages.

Oh não! E se eu tentar instalar esses pacotes que estão faltando?

brian@computer:~$ sudo apt-get install libglib2.0-0 libglib2.0-bin

Então eu recebo:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libglib2.0-0 is already the newest version (2.48.1-1~ubuntu16.04.1).
libglib2.0-bin is already the newest version (2.48.1-1~ubuntu16.04.1).
0 to upgrade, 0 to newly install, 0 to remove and 11 not to upgrade.

Então eles já estão instalados ... O que fazer agora? Eu vejo que há alguma discrepância em relação a 2.48.0-1ubuntu4) e 2.48.1-1~ubuntu16.04.1 , mas o que isso significa e como posso fazer isso ir embora?

    
por infinityplusb 10.10.2016 / 09:18

1 resposta

0

Isso pode ser um problema transitório com o espelho do Ubuntu que você está usando - ele tem o novo pacote libglib2.0 mas não o correspondente -dev ainda. Tente alternar para um espelho diferente ou faça o download e instale-o manualmente:

curl -O http://gb.archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/libglib2.0-dev_2.48.1-1~ubuntu16.04.1_amd64.deb
dpkg -i libglib2.0-dev_2.48.1-1~ubuntu16.04.1_amd64.deb
    
por Tim Small 10.10.2016 / 11:28