Debian

Debian 6 Sqeeze 上未解決的依賴問題

  • July 21, 2013

我正在使用 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為空。

您是nginx從非 debian 儲存庫安裝的,但它需要比您安裝的版本更高的庫,這些庫在 debian 儲存庫中也不可用(對於擠壓,因為它們是 wheezy 版本)。

你的入場,

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

為您提供 Wheezy 版本,因為 stable=wheezy。您應該將所有內容移至 Wheezy,或使用oldstable而不是stable。(事實上,最好堅持使用類似的發布名稱squeeze,而不是這些天來的穩定)。

引用自:https://unix.stackexchange.com/questions/83818