ruby-on-rails - Nginx 和乘客依赖问题( digital ocean 部署)

标签 ruby-on-rails nginx passenger

我正在尝试遵循本指南

https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-passenger-and-nginx-on-ubuntu-14-04

当我想在运行此命令后继续本教程时:

sudo apt-get install nginx-extras passenger

我收到此错误:
Reading package lists... Done
Building dependency tree

Reading state information... Done
passenger is already the newest version.
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:
nginx-extras : Depends: perlapi-5.18.2 but it is not installable
Depends: libperl5.18 (>= 5.18.2) but it is not installable
Recommends: passenger (< 4.0.60) but 1:4.0.59-1~trusty1 is to be installed
E: Unable to correct problems, you have held broken packages.

我想我无法安装 nginx-extras,有人可以帮助我吗?

最佳答案

我在 Ubuntu 14.10 上遇到了同样的问题

sudo nano /etc/apt/sources.list.d/passenger.list

注释掉deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main
ctrl+x

进入
sudo apt-get update

sudo apt-get install nginx nginx-extras

那么如果可以
sudo nano /etc/apt/sources.list.d/passenger.list

插入deb https://oss-binaries.phusionpassenger.com/apt/passenger wheezy main
ctrl+x

进入
sudo apt-get update

sudo apt-get install passenger

瞧!

关于ruby-on-rails - Nginx 和乘客依赖问题( digital ocean 部署),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28818597/

相关文章:

ruby-on-rails - ruby 更新到 2.5.0 后,需要 'bundler/setup' 引发异常

ruby-on-rails - 在没有模型的情况下访问 ActiveRecord 关联

ruby-on-rails - 使用 Rails 中的回形针上传到谷歌驱动器

ruby-on-rails - 如何使用 Active Admin(格式)按父项对复选框进行分组

linux - 从 nginx 日志文件的 IP 地址获取热门网址

java - 关于 java web 应用程序和 X-REAL-IP header 的问题

node.js - AWS Elastic Beanstalk - NodeJS : Get certificate SSL from Letsencrypt without Beanstalk Load Balancer

javascript - rails : How to confirm email address entered in text box matches current user's email address?

centos - 如何使用 ansible 安装 yum 存储库 key ?

ruby-on-rails - 无法将 HTTP 响应转发回 HTTP 客户端 : It seems the user clicked on the 'Stop' button in his browser