如何在 20.04 上安装 libnginx-mod-http-passenger

如何在 20.04 上安装 libnginx-mod-http-passenger

如何在 20.04 上安装 libnginx-mod-http-passenger?

答案1

要在 amd64 arch 机器上安装它:

$ sudo apt install -y dirmngr gnupg
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
$ sudo apt install -y apt-transport-https ca-certificates
$ su
# echo deb [arch=amd64] https://oss-binaries.phusionpassenger.com/apt/passenger focal main > /etc/apt/sources.list.d/passenger.list
# exit

然后

$ sudo apt update
$ sudo apt-get install -y libnginx-mod-http-passenger

这样就可以成功安装了

答案2

按照建议进行修复这里,就是运行:

echo "deb https://oss-binaries.phusionpassenger.com/apt/passenger focal main" | sudo tee /etc/apt/sources.list.d/passenger.list

然后尝试再次安装。这将修复以下错误:

The following packages have unmet dependencies:
 libnginx-mod-http-passenger : Depends: nginx-common (< 1.14.1) but 1.18.0-0ubuntu1 is to be installed

相关内容