2017-04-21 143 views
0

繼教程here帶來了這個錯誤:的Ubuntu 17.04的nginx /乘客

The following packages have unmet dependencies: 
nginx-extras : Depends: perlapi-5.22.1 but it is not installable 

我理解的教程是16.x

由於我正在安裝Ubuntu 17.04,因此NGinx無法安裝在新系統上。

-

有沒有人知道解決方法?

回答

1

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