当我尝试运行sudo apt-get install nginx-full
时,我收到此错误:
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.
我该怎么办?
也许ubuntu版本错误,试试这个命令〜
sudo sh -c'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger genial main> /etc/apt/sources.list.d/passenger.list'
在设置我的应用程序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
对我来说,我通过删除添加的存储库链接解决了这个问题。我已经从我的ubuntu服务器数字海洋中删除了它。
sudo rm -rf /etc/apt/sources.list.d/passenger.list