在Ubuntu 22.04上安装Passenger + Nginx时出错

rkue9o1l  于 2023-05-16  发布在  Nginx
关注(0)|答案(1)|浏览(182)

这是我运行sudo apt-get install -y libnginx-mod-http-passenger的代码,这是我得到的输出

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libnginx-mod-http-passenger
lnlaulya

lnlaulya1#

你必须先手动将phusionpassenger仓库添加到ubuntu,如Installing Passenger on Ubuntu 22.04 LTS中所述:

curl https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/phusion.gpg >/dev/null

# Add our APT repository
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger jammy 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

相关问题