Não é possível instalar alguns pacotes. Depende: x mas x deve ser instalado

2

Eu estou em um sistema de 64 bits, é o que eu suspeito que esteja criando este problema. Estou tentando instalar vários pacotes, um deles é libssl-dev .

$ sudo apt-get install libssl-dev 
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:
 libssl-dev : Depends: libssl1.0.0 (= 1.0.1f-1ubuntu2) but 1.0.1f-1ubuntu2.8 is to be installed
              Recommends: libssl-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Eu tentei fazer sudo apt-get -f install , o que é sugerido em uma pergunta semelhante no site. Mas isso é o que eu recebo:

$ sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Eu pesquisei mais no site e alguém sugeriu instalar os pacotes ausentes manualmente. Então eu fiz o mesmo:

$ sudo apt-get install libssl1.0.0 Reading package lists... Done
Building dependency tree       
Reading state information... Done
libssl1.0.0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

Aqui você pode ver, o pacote já está instalado.

Então, meu palpite aqui é que meu sistema está tentando instalar a versão de 64 bits do libssl-dev , mas não consegue encontrar a versão de 64 bits do libssl1.0.0 . Se instalar manualmente, meu sistema está mostrando que eu tenho libssl1.0.0 , o que é suspeito é a versão de 32 bits.

Eu tenho muitos outros pacotes para instalar que estão infectados com esse bug.

Aqui está a saída solicitada por @nephente

 $ uname -a
Linux sntsh-pc 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
 $ apt-cache policy libssl1.0.0 libssl-dev
libssl1.0.0:
  Installed: 1.0.1f-1ubuntu2.8
  Candidate: 1.0.1f-1ubuntu2.8
  Version table:
 *** 1.0.1f-1ubuntu2.8 0
        100 /var/lib/dpkg/status
     1.0.1f-1ubuntu2 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libssl-dev:
  Installed: (none)
  Candidate: 1.0.1f-1ubuntu2
  Version table:
     1.0.1f-1ubuntu2 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
 $ 
    
por Santosh Kumar 19.09.2015 / 10:28

1 resposta

2

Forçar o downgrade de libssl1.0.0

sudo apt-get install libssl1.0.0=1.0.1f-1ubuntu2

A versão instalada 1.0.1f-1ubuntu2.8 bloqueia a instalação de libssl-dev

E você deve atualizar sua máquina com urgência. A versão atual é 1.0.1f-1ubuntu2.15

Abra o Software & amp; Atualiza e marca trusty-security e trusty-updates

Depois disso

sudo apt-get update
sudo apt-get dist-upgrade

E não, sudo apt-get dist-upgrade não instala o Vivid.

    
por A.B. 19.09.2015 / 13:10