python-dev를 다운로드하려고 했는데(다른 것을 컴파일하려면 필요함) 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).
python2.6-dev를 설치하려고 시도했지만 또 다른 종속성(libssl-dev)이 필요하다고 말했습니다. 이 문제를 해결할 방법이 있나요?
패키지 없이 "apt-get -f install"을 실행하면 작동합니까? (이것을 시도했지만 다음과 같이 표시됩니다):
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
이제..."sudo apt-get update; sudo apt-get update"를 사용하여 모든 것을 업데이트/업그레이드하려고 하면 다음과 같이 끝납니다.
#(...)
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.
어떤 제안이 있으십니까?
처리 방법을 모르는 버전/불일치 문제가 항상 있는 것 같습니다...
정보를 위해:
$ 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
답변1
귀하는 수명이 다한 Squeeze를 사용하고 있습니다.2016년 2월실제로). 저장소가 archive.debian.org로 이동되었으므로 "http.debian.net" 및 "ftp.uk.debian.org"를 모두 /etc/apt/sources.list
"archive.debian.org"로 바꾸고 다음을 실행 해야 합니다.
apt-get update
다시. 그런 다음 apt-get upgrade
필요한 파일을 찾아야 합니다.
지원되는 버전으로 업그레이드하는 것이 좋습니다...