所以看起來我安裝最新的乘客有一些官方的nginx軟件包有問題。根據客流的官方文檔在這裏:乘客不會安裝官方的Ubuntu Nginx軟件包
http://www.modrails.com/documentation/Users%20guide%20Nginx.html#install_add_apt_repo
我已經做到了從2.3.1告訴一切。我的系統是Ubuntu 13.10,目前通過gem安裝乘客Nginx。現在我希望將服務更改爲使用官方軟件包,因爲我相信它具有更好的集成支持,同時還支持更好的logrotate。所以,當我已經執行安裝的主要命令:
sudo apt-get install nginx-extras passenger
它吐出錯誤顯示這樣的:
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-extras : Depends: perl (>= 5.14.2-21+deb7u1) but 5.14.2-21build1 is to be installed
Depends: libgd2-noxpm (>= 2.0.36~rc1~dfsg) but it is not installable or
libgd2-xpm (>= 2.0.36~rc1~dfsg) but it is not installable
Recommends: passenger (< 4.0.34) but 1:4.0.33-1~wheezy1 is to be installed
E: Unable to correct problems, you have held broken packages.
我不知道爲什麼和依賴檢查怎麼這麼嚴格到這種程度。正如它所說我需要Debian的軟件包,但是我在Ubuntu上,所以軟件包名稱稍有不同是很自然的。任何人都可以爲此做任何解決方案?非常感謝。
另外,還有一個問題:如果這是成功的,Nginx是否會自動支持IPv6?
做,當你運行'的apt-緩存策略的nginx-extras' –
'nginx的,演員你會得到什麼: 安裝:(無) 候選人:1.4.1-3ubuntu1.1 版本表: 1.4.1- 3ubuntu1.1 0 500 http://ubuntu.bhs.mirrors.ovh.net/ubuntu/ saucy-updates/universe amd64軟件包 500 http://security.ubuntu.com/ubuntu/ saucy-security/universe amd64軟件包 1.4.1-3ubuntu1 0 500 http://ubuntu.bhs.mirrors.ovh.net/ubuntu/ saucy/universe amd64 Packages' – wlicpsc
@wlicpsc你能分享一下你的'/etc/apt/sources.list.d/passenger.list'看起來像修復了這個之後?謝謝。 – monteirobrena