按照教程here提出此错误:
The following packages have unmet dependencies:
nginx-extras : Depends: perlapi-5.22.1 but it is not installable
我理解本教程适用于16.x
。
因为我正在安装Ubuntu 17.04
,所以无法在新系统上安装NGinx。
-
有人知道解决方法吗?
答案 0 :(得分:2)
https://www.phusionpassenger.com/library/install/nginx/install/oss/zesty/
sudo apt-get install -y dirmngr gnupg
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
sudo apt-get install -y apt-transport-https ca-certificates
# Add our APT repository
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger zesty main > /etc/apt/sources.list.d/passenger.list'
sudo apt-get update
# Install Passenger + Nginx module
sudo apt-get install -y libnginx-mod-http-passenger libnginx-mod-http-headers-more-filter nginx
答案 1 :(得分:1)
如果解决方案不起作用,不确定为什么答案已被标记为正确。如果您查看https://www.phusionpassenger.com/library/install/nginx/install/oss/评论,则尚未发布17.04版本。
由于