2016-10-31 78 views
4

,當我嘗試運行sudo apt-get install nginx-full我得到這個錯誤:包未滿足的,當我嘗試安裝nginx的

The following packages have unmet dependencies: 
nginx-full : Depends: nginx-extras (>= 1:1.10.1-8.5.0.30~trusty1) but it is not going to be installed 
Depends: nginx-extras (< 1:1.10.1-8.5.0.30~trusty1.1~) but it is not going to be installed 

,所以我跑apt-get install nginx-extras,我得到這個錯誤:

The following packages have unmet dependencies: 
nginx-extras : Depends: perlapi-5.18.2 but it is not installable 
       Depends: libperl5.18 (>= 5.18.2) but it is not installable 
       Recommends: passenger (< 5.0.31) but 1:5.0.30-1~wheezy1 is to be installed 
E: Unable to correct problems, you have held broken packages. 

如何解決?

回答

0

我也遇到過同時爲我的應用程序https://www.wiki11.com設置相同的問題。

請映射到新的apt庫以訪問Phusion Passenger 4庫。

deb https://oss-binaries.phusionpassenger.com/apt/passenger/4 trusty main 

然後運行命令

sudo apt-get install nginx-extras 
0

對於我來說,我已經通過刪除添加的存儲庫鏈接解決了這個問題。我已經從我的Ubuntu服務器數字海洋中刪除它。

sudo rm -rf /etc/apt/sources.list.d/passenger.list

相關問題