首页 > 解决方案 > 在 debian-10 上使用 nginx 设置乘客

问题描述

我用 debian-10 开始了我的新服务器安装。

nginx 工作正常,由安装apt install nginx-full 但随后想要安装乘客,以这种方式https://www.phusionpassenger.com/library/install/nginx/install/oss/stretch/(未列出破坏者),我无法获得它运行。


1) sudo apt-get install -y dirmngr gnupg
2) sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-3) keys 561F9B9CAC40B2F7
3) sudo apt-get install -y apt-transport-https ca-certificates

# Add our APT repository
4) sudo sh -c 'echo deb https://oss-5) binaries.phusionpassenger.com/apt/passenger stretch main > /etc/apt/sources.list.d/passenger.list'
5) sudo apt-get update

# Install Passenger + Nginx module
6) sudo apt-get install -y libnginx-mod-http-passenger

=> 在第 5 步,结果是:

root@33041:/# apt update
Hit:1 http://debian.ethz.ch/debian buster InRelease
Hit:2 http://debian.ethz.ch/debian buster-updates InRelease                                    
Hit:3 http://security.debian.org/debian-security buster/updates InRelease                                          
Ign:4 https://oss-binaries.phusionpassenger.com/apt/passenger stretch InRelease                                    
Hit:5 https://oss-binaries.phusionpassenger.com/apt/passenger stretch Release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
root@33041:/# 

在第 6 步,结果:

root@33041:/etc/apt# apt install -y libnginx-mod-http-passenger
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libnginx-mod-http-passenger : Depends: passenger (= 1:6.0.2-1~stretch1) but it is not going to be installed
                               Depends: nginx-common (< 1.10.4) but 1.14.2-2+deb10u1 is to be installed
E: Unable to correct problems, you have held broken packages.
root@33041:/etc/apt# 

=> 然后,我尝试了

apt install passenger

=> 并获得:

root@33041:/etc/apt# apt install passenger
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 passenger : Depends: libcurl3 (>= 7.16.2) but it is not installable
             Recommends: passenger-doc (= 1:6.0.2-1~stretch1) but it is not going to be installed
             Recommends: passenger-dev (= 1:6.0.2-1~stretch1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@33041:/etc/apt# 

问题:

a) 有人带 nginx 和乘客在 debian-10 上运行吗?(我不想从源代码重新编译 nginx,像这样

b)如果没有,还有哪些其他推荐的方法(nginx 作为 puma 的代理 ..)?

谢谢,克里斯

标签: ruby-on-railsnginxpassengerdebian-buster

解决方案


我也有完全一样的问题。Phusion Stretch repo 与原生 buster 包冲突,并且 Phusion Buster repo 似乎是空的。

我在这里发布了一个错误,暂时没有回复: https ://github.com/phusion/passenger/issues/2221


推荐阅读