ruby-on-rails - Passenger 没有安装官方的 Ubuntu Nginx 包

标签 ruby-on-rails ruby ubuntu nginx passenger

看来我在使用官方 nginx 包安装最近的 passenger 时遇到了一些问题。根据此处的 Passenger 官方文件:

http://www.modrails.com/documentation/Users%20guide%20Nginx.html#install_add_apt_repo

我已经完成了 2.3.1 中的所有内容。我的系统是 Ubuntu 13.10,目前通过 gem 安装了 passenger Nginx。现在我希望将服务更改为使用官方包,因为我相信它确实具有更好的集成支持,以及对 logrotate 的更好支持。所以当我执行安装的主要命令时:

sudo apt-get install nginx-extras 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.
 nginx-extras : Depends: perl (>= 5.14.2-21+deb7u1) but 5.14.2-21build1 is to be installed
                Depends: libgd2-noxpm (>= 2.0.36~rc1~dfsg) but it is not installable or
                         libgd2-xpm (>= 2.0.36~rc1~dfsg) but it is not installable
                Recommends: passenger (< 4.0.34) but 1:4.0.33-1~wheezy1 is to be installed
E: Unable to correct problems, you have held broken packages.

我想知道依赖性检查为什么以及如何严格到这种程度。正如它所说,我需要 Debian 的软件包,但我在 Ubuntu 上,所以软件包名称略有不同是很自然的。任何人都可以为此提出任何解决方案吗?非常感谢。

此外,还有一个附带问题:如果成功,Nginx 会自动支持 IPv6 吗?

最佳答案

在 2.3.1 第 3 步中,您是否添加了 Ubuntu 13.10 APT 存储库,而不是 Debian 6/7 APT 存储库?你的/etc/apt/sources.list.d/passenger.list 是什么样子的?

关于ruby-on-rails - Passenger 没有安装官方的 Ubuntu Nginx 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20947655/

相关文章:

ruby-on-rails - Nginx 错误 : client intended to send too large body

ruby-on-rails - 所有具有 declarative_authorization 的权限

Ruby:FileUtils.cp_r 和无效的多字节字符异常

bash - 从安装在 Windows 10 上的 ubuntu bash 启动 jupyter notebook

java - ubuntu java环境路径,bash :/etc/environment: permission denied?

ruby-on-rails - 如何使用 RSpec 测试 Rails 3.2 ActionMailer 是否呈现正确的 View 模板?

ruby-on-rails - Rails Devise - 多种模型

ruby - 如何打包 shell 脚本以通过 GitHub 分发?

ruby - 如何从 Ruby 中的字符串中去除制表符?

c++ - train_object_detector.cpp dlib 出错