![Debian 6 Sqeeze에서 해결되지 않은 종속성 문제](https://linux55.com/image/45122/Debian%206%20Sqeeze%EC%97%90%EC%84%9C%20%ED%95%B4%EA%B2%B0%EB%90%98%EC%A7%80%20%EC%95%8A%EC%9D%80%20%EC%A2%85%EC%86%8D%EC%84%B1%20%EB%AC%B8%EC%A0%9C.png)
VirtualBox 4.2.14 VM 및 Debian 6 Sqeeze를 게스트 시스템으로 사용하고 있으며 Nginx를 (재)설치하려고 시도했지만 작동하지 않습니다.
root@devmv:~# apt-get install nginx
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:
nginx : Depends: nginx-full but it is not going to be installed or
nginx-light but it is not going to be installed
E: Broken packages
또는 Synaptic 패키지 관리자에서도 동일합니다.
aptitude
누락된 종속성에 대한 추가 정보를 제공합니다.
root@devmv:~# aptitude install nginx
The following NEW packages will be installed:
nginx nginx-common{a} nginx-full{ab}
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 580 kB/645 kB of archives. After unpacking 1,391 kB will be used.
The following packages have unmet dependencies:
nginx-full: Depends: libgeoip1 (>= 1.4.8+dfsg) but 1.4.7~beta6+dfsg-1 is installed.
Depends: libpcre3 (>= 8.10) but 8.02-1.1 is installed.
Depends: libssl1.0.0 (>= 1.0.1) which is a virtual package.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) nginx [Not Installed]
2) nginx-full [Not Installed]
Accept this solution? [Y/n/q/?]
일반적 apt-get
으로 패키지를 설치해야 할 뿐만 아니라 해당 종속 항목도 재귀적으로 설치해야 합니다. 그렇죠? 여기서 무슨 문제가 있습니까?
편집하다:
/etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official amd64 NETINST Binary-1 20120930-15:53]/ squeeze main
#deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official amd64 NETINST Binary-1 20120930-15:53]/ squeeze main
deb http://ftp.de.debian.org/debian/ squeeze main
deb-src http://ftp.de.debian.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
# squeeze-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ squeeze-updates main
deb-src http://ftp.de.debian.org/debian/ squeeze-updates main
# For Nginx & PHP
deb http://packages.dotdeb.org stable all
deb http://packages.dotdeb.org squeeze-php54 all
deb-src http://packages.dotdeb.org squeeze-php54 all
# psmisc 22.16
deb http://ftp.at.debian.org/debian-backports/ squeeze-backports main
/etc/apt/sources.list.d비었다.
답변1
데비안이 아닌 저장소에서 설치하고 있지만 nginx
설치한 것보다 더 높은 버전의 라이브러리가 필요합니다. 이 라이브러리는 데비안 저장소에서도 사용할 수 없습니다(wheeze 릴리스이기 때문에 squeeze의 경우).
당신의 입장,
deb http://packages.dotdeb.org stable all
stable=wheezy이므로 Wheezy 버전이 제공됩니다. 모든 것을 Wheezy로 옮기거나오래된 마구간바꾸다안정적인. (실제로 릴리스 이름을 그대로 유지하는 것이 더 좋습니다.짜내다, 대신에안정적인요즘).