다음을 통해 Debian 7.2에 패키지를 설치할 수 없습니다.apt-get
root@sandbox:~# apt-get install curl
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:
curl : Depends: libcurl3 (= 7.26.0-1+wheezy3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@sandbox:~# apt-cache policy curl
curl:
Installed: (none)
Candidate: 7.26.0-1+wheezy3
Version table:
7.26.0-1+wheezy3 0
500 http://security.debian.org/ wheezy/updates/main amd64 Packages
500 http://mirror.yandex.ru/debian-security/ wheezy/updates/main amd64 Packages
500 http://mirror.mephi.ru/debian-security/ wheezy/updates/main amd64 Packages
root@sandbox:~# cat /etc/apt/sources.list
deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib
#deb http://mirror.yandex.ru/debian-security/ wheezy/updates main contrib non-free
#deb-src http://mirror.yandex.ru/debian-security/ wheezy/updates main contrib non-free
#deb http://mirror.mephi.ru/debian-security/ wheezy/updates main contrib non-free
#deb-src http://mirror.mephi.ru/debian-security/ wheezy/updates main contrib non-free
apt-get -f install
작동하지 않습니다
답변1
시스템이 sources.list
손상되었습니다. 대부분의 데비안 패키지가 포함된 저장소의 "안정적인" 부분이 없습니다. "stable"의 특정 패키지에 대한 업데이트만 포함하는 "wheezy/updates" 섹션을 추가했습니다.
다음과 같아야 합니다(다음으로 생성됨).http://debgen.simplylinux.ch/, 귀하가 러시아에 있다고 가정):
deb http://ftp.ru.debian.org/debian stable main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free