2014-01-06 56 views
1

所以看起來我安裝最新的乘客有一些官方的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?

+0

做,當你運行'的apt-緩存策略的nginx-extras' –

+0

'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

+0

@wlicpsc你能分享一下你的'/etc/apt/sources.list.d/passenger.list'看起來像修復了這個之後?謝謝。 – monteirobrena

回答

4

在2.3.1步驟3中,您是否添加了Ubuntu 13.10 APT回購庫,而不是Debian 6/7 APT回購庫?你的/etc/apt/sources.list.d/passenger.list是怎麼樣的?

+0

完全像2.3.2章節中所寫的文檔。 '#Ubuntu 13.10 deb https://oss-binaries.phusionpassenger.com/apt/passenger saucy main #Ubuntu 12.04 deb https://oss-binaries.phusionpassenger.com/apt/passenger precise main #Ubuntu 10.04 deb https://oss-binaries.phusionpassenger.com/apt/passenger lucid main #Debian 7 deb https://oss-binaries.phusionpassenger.com/apt/passenger wheezy main #Debian 6 deb https: //oss-binaries.phusionpassenger.com/apt/passenger squeeze main' – wlicpsc

+0

該文檔聲明您只應添加其中的一行,而不是全部。 – Hongli

+0

迷人,它的工作!謝謝。這裏還有一個關於Ruby版本的問題。在安裝過程中,似乎已經安裝了Ruby 1.9.1和2.0的包,現在我在RVM上運行了2.1.0,那麼Nginx使用的是什麼版本的Ruby?會不會有兼容性問題? – wlicpsc