ruby-on-rails - 无法在 Ubuntu Server 18.04 上安装 Phusion Passenger

标签 ruby-on-rails ruby ubuntu nginx passenger

在 Virtualbox 上全新安装的 Ubuntu Server 18.04 上运行,Windows 10 作为主机操作系统。运行 Phusion Passenger 网站上的说明 here

这是我遇到的错误:

steve@heartypet-staging:~$ sudo apt-get 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:5.3.4-1~bionic1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

奇怪的是,完全相同的指令在桌面版本上运行良好。

最佳答案

从这里获取默认源列表

https://askubuntu.com/a/1036749

用上面链接中的文件替换/etc/apt/source.list。 然后 sudo apt updatesudo apt upgrade

继续……

关于ruby-on-rails - 无法在 Ubuntu Server 18.04 上安装 Phusion Passenger,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51778272/

相关文章:

javascript - Rails 验证页面的管理员身份——但允许 jquery 调用

PHP系统通知发送

node.js - 使用 npm 安装时出现框架错误

linux - 如何在 rsync 期间跳过文件夹?

ruby - 失败时 pretty-print 数组

ruby - 如何在 Windows 上为 ruby​​ 安装 PCAP

ruby-on-rails - 自定义 i18n 错误消息会引发 InvalidPluralizationData 错误?

ruby-on-rails - 获取 will_paginate 在第一页上定义自定义偏移量

ruby-on-rails - Ransack Gem - 搜索未定义

ruby - 重新定位数组中的元素