Debian 6 Sqeeze 上未解决的依赖关系问题

Debian 6 Sqeeze 上未解决的依赖关系问题

我正在使用 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从非 debian 存储库进行安装,但它需要比您安装的版本更高的库,而这些库在 debian 存储库中也不可用(对于挤压,因为它们是喘息版本)。

您的参赛作品,

deb http://packages.dotdeb.org stable all

正在为您提供 Wheezy 版本,因为 stable=wheezy。您应该将所有内容移至 Wheezy,或者使用旧稳定代替稳定的。 (事实上​​,最好坚持使用发布名称,例如, 而不是稳定的这些日子)​​。

相关内容