Não é possível baixar o python-dev

0

Estou pesquisando o download do python-dev (eu preciso dele para compilar outra coisa), mas aparentemente não consigo baixar / instalar usando o apt-get.

$ sudo apt-get -f install python-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libc6 : Depends: libc-bin (= 2.11.3-4+deb6u6) but 2.11.3-4+deb6u8 is to be installed
 libc6-dev : Depends: libc6 (= 2.11.3-4+deb6u8) but 2.11.3-4+deb6u6 is to be installed
 libc6-i386 : Depends: libc6 (= 2.11.3-4+deb6u8) but 2.11.3-4+deb6u6 is to be installed
 python-dev : Depends: python2.6-dev (>= 2.6.6-1~) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Eu tentei instalar python2.6-dev, mas novamente diz que preciso de outras dependências (libssl-dev). Qualquer maneira de contornar esse problema?

A execução do 'apt-get -f install' sem pacotes funciona? (Eu tentei isso, mas depois diz o seguinte):

WARNING: The following packages cannot be authenticated!
  libc6-i386 libc6-dev libc-dev-bin libc-bin libc6
Install these packages without verification [y/N]? N

Agora .... se eu tentar atualizar / atualizar tudo usando "sudo apt-get update; sudo apt-get upgrade", acabo recebendo isso:

#(...)
E: Some index files failed to download, they have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libc6 : Depends: libc-bin (= 2.11.3-4+deb6u6) but 2.11.3-4+deb6u8 is installed
 libc6-dev : Depends: libc6 (= 2.11.3-4+deb6u8) but 2.11.3-4+deb6u6 is installed
 libc6-i386 : Depends: libc6 (= 2.11.3-4+deb6u8) but 2.11.3-4+deb6u6 is installed
E: Unmet dependencies. Try using -f.

Alguma sugestão?

Parece que estou sempre correndo para algum problema com versões / coisas incomparáveis que não sei como lidar ...

Para informações:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.10 (squeeze)
Release:    6.0.10
Codename:   squeeze

$ apt-cache policy libc6-i386 libc6-dev libc-dev-bin libc-bin libc6 python python-dev python2.6-dev 
libc6:
  Installed: 2.11.3-4+deb6u6
  Candidate: 2.11.3-4+deb6u11
  Version table:
     2.11.3-4+deb6u11 0
        500 http://http.debian.net/debian/ squeeze-lts/main amd64 Packages
 *** 2.11.3-4+deb6u6 0
        100 /var/lib/dpkg/status
     2.11.3-4 0
        500 http://ftp.uk.debian.org/debian/ squeeze/main amd64 Packages
python:
  Installed: 2.6.6-3+squeeze7
  Candidate: 2.6.6-3+squeeze7
  Version table:
 *** 2.6.6-3+squeeze7 0
        500 http://ftp.uk.debian.org/debian/ squeeze/main amd64 Packages
        100 /var/lib/dpkg/status
libc6-dev:
  Installed: 2.11.3-4+deb6u8
  Candidate: 2.11.3-4+deb6u11
  Version table:
     2.11.3-4+deb6u11 0
        500 http://http.debian.net/debian/ squeeze-lts/main amd64 Packages
 *** 2.11.3-4+deb6u8 0
        100 /var/lib/dpkg/status
     2.11.3-4 0
        500 http://ftp.uk.debian.org/debian/ squeeze/main amd64 Packages
libc6-i386:
  Installed: 2.11.3-4+deb6u8
  Candidate: 2.11.3-4+deb6u11
  Version table:
     2.11.3-4+deb6u11 0
        500 http://http.debian.net/debian/ squeeze-lts/main amd64 Packages
 *** 2.11.3-4+deb6u8 0
        100 /var/lib/dpkg/status
     2.11.3-4 0
        500 http://ftp.uk.debian.org/debian/ squeeze/main amd64 Packages
python-dev:
  Installed: (none)
  Candidate: 2.6.6-3+squeeze7
  Version table:
     2.6.6-3+squeeze7 0
        500 http://ftp.uk.debian.org/debian/ squeeze/main amd64 Packages
libc-bin:
  Installed: 2.11.3-4+deb6u8
  Candidate: 2.11.3-4+deb6u11
  Version table:
     2.11.3-4+deb6u11 0
        500 http://http.debian.net/debian/ squeeze-lts/main amd64 Packages
 *** 2.11.3-4+deb6u8 0
        100 /var/lib/dpkg/status
     2.11.3-4 0
        500 http://ftp.uk.debian.org/debian/ squeeze/main amd64 Packages
libc-dev-bin:
  Installed: 2.11.3-4+deb6u8
  Candidate: 2.11.3-4+deb6u11
  Version table:
     2.11.3-4+deb6u11 0
        500 http://http.debian.net/debian/ squeeze-lts/main amd64 Packages
 *** 2.11.3-4+deb6u8 0
        100 /var/lib/dpkg/status
     2.11.3-4 0
        500 http://ftp.uk.debian.org/debian/ squeeze/main amd64 Packages
python2.6-dev:
  Installed: (none)
  Candidate: 2.6.6-8+deb6u3
  Version table:
     2.6.6-8+deb6u3 0
        500 http://http.debian.net/debian/ squeeze-lts/main amd64 Packages
     2.6.6-8+b1 0
        500 http://ftp.uk.debian.org/debian/ squeeze/main amd64 Packages
    
por PGen 22.07.2017 / 20:19

1 resposta

3

Você está usando o Squeeze, que chegou ao fim de sua vida (desde o final de fevereiro de 2016 na verdade). Os repositórios foram movidos para archive.debian.org, então você precisa substituir todas as ocorrências de “http.debian.net” e “ftp.uk.debian.org” em /etc/apt/sources.list com “archive.debian.org”, então corra

apt-get update

novamente. Então apt-get upgrade deve encontrar os arquivos que precisa.

Recomendamos enfaticamente que você atualize para uma versão compatível ...

    
por 22.07.2017 / 21:40