Não é possível instalar o libpng-dev

4

Eu uso o Ubuntu 15.10 de 64 bits. Quando eu corro

sudo apt-get install libpng-dev

o console imprime

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libpng12-dev' instead of 'libpng-dev'
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:
 libpng12-dev : Depends: libpng12-0 (= 1.2.51-0ubuntu3) but 1.2.51-0ubuntu3.15.10.2 is to be installed
E: Unable to correct problems, you have held broken packages.

Primeiro, tentei instalar o libpng-dev no Centro de Software, mas ele travou quando tentou instalar o libpng-dev. Então eu pesquisei, tentei

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f libpng-dev

mas isso não ajudou. Talvez eu deva reinstalar o Ubuntu? Eu não tenho nenhum problema com isso, levaria cerca de uma hora.

$ apt-cache policy libpng12-dev

imprime

libpng12-dev:
  Installed: (none)
  Candidate: 1.2.51-0ubuntu3
  Version table:
     1.2.51-0ubuntu3 0
        500 http://de.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
$ apt-cache policy libpng12-0

imprime

libpng12-0:
  Installed: 1.2.51-0ubuntu3.15.10.2
  Candidate: 1.2.51-0ubuntu3.15.10.2
  Version table:
 *** 1.2.51-0ubuntu3.15.10.2 0
        100 /var/lib/dpkg/status
     1.2.51-0ubuntu3 0
        500 http://de.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
    
por user492501 12.01.2016 / 22:01

1 resposta

5

Você instalou manualmente alguma outra compilação de libpng12-0 que aparece. Você precisa sudo apt-get install --reinstall libpng12-0=1.2.51-0ubuntu3 e, em seguida, poderá instalar libpng-dev .

    
por dobey 12.01.2016 / 23:24