A Debian 7.0 falhou ao instalar o pacote php5-dev

0

Ao tentar instalar no debian, mostra libssl-dev dependência necessária

apt-get install php5-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:
 php5-dev : Depends: libssl-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Instalando o libssl-dev package needed dependency zlib1g-dev . A instalação do pacote zliblg-dev tem dependências de unment,

The following packages have unmet dependencies:
 zlib1g-dev : Depends: zlib1g (= 1:1.2.3.4.dfsg-3) but 1:1.2.7.dfsg-13 is to be installed

Como instalar o pacote zlib1g-dev para instalar dev5-php ?

    
por KKD 06.02.2016 / 10:25

3 respostas

0

Eu adicionei as linhas abaixo no arquivo de repositório: /etc/apt/sources.list

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://http.us.debian.org/debian jessie main contrib non-free

Após a atualização: apt-get update com as linhas adicionadas acima, pude instalar o pacote php5-dev com sucesso!

    
por 08.02.2016 / 11:11
1

Poste seus textos do diretório: /etc/apt/sources.list para ver se a lista de repositórios seria suficiente ou não. Veja o link , isso pode valer a pena ver.

    
por 06.02.2016 / 11:44
1

Você pode instalá-lo digitando:

su -c 'aptitude install libssl-dev'

Se não for feito, compartilhe a saída de

apt-cache show libssl-dev
    
por 06.02.2016 / 13:13