【问题标题】:Unable to install Phusion Passenger on Ubuntu Server 18.04无法在 Ubuntu Server 18.04 上安装 Phusion Passenger
【发布时间】:2019-01-17 13:59:55
【问题描述】:

在 Virtualbox 上全新安装的 Ubuntu Server 18.04 上运行,Windows 10 作为主机操作系统。在 Phusion 乘客网站 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.

奇怪的是,完全相同的说明在桌面版本上也能正常工作。

【问题讨论】:

标签: ruby-on-rails ruby ubuntu nginx passenger


【解决方案1】:

从这里获取默认源列表

https://askubuntu.com/a/1036749

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

然后继续……

【讨论】:

  • 存储库中有一个未解决的问题,最好在此处跟进:github.com/phusion/passenger/issues/2122
  • 您好,我按照上述说明进行操作,但是当我运行“sudo apt install -y nginx-extras libnginx-mod-http-passenger”时,我仍然收到错误“libnginx-mod-http-passenger” :取决于:nginx-common (= 1.14.0-0ubuntu1) 但要安装 1.14.0-0ubuntu1.1'还有什么我可能会丢失的吗?
  • @chrisallick 您必须先卸载新版本
  • 好吧,对于任何偶然发现这一点的人,您应该关注@hamiltonc(关于提到的 git 问题)。然后你还需要安装 libnginx-mod-http-passenger,对我来说发生的事情是它仍然无法正常工作,但我一定是执行了错误的操作顺序。它正在工作。
【解决方案2】:

如果您在使用之前的解决方案时遇到问题,可以选择运行以下命令:

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

并注释此文件中的所有行,然后运行命令

sudo apt-get install passenger

【讨论】:

    猜你喜欢
    • 2020-01-02
    • 1970-01-01
    • 1970-01-01
    • 2020-06-07
    • 2021-08-10
    • 2020-09-09
    • 2019-01-09
    • 2019-01-17
    • 1970-01-01
    相关资源
    最近更新 更多