当我尝试安装nginx时,软件包未满足
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了当我尝试安装nginx时,软件包未满足相关的知识,希望对你有一定的参考价值。
当我尝试运行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
以上是关于当我尝试安装nginx时,软件包未满足的主要内容,如果未能解决你的问题,请参考以下文章
Angular package.json 和未满足的对等依赖项