无法在Ubuntu Server 18.04上安装Phusion Passenger

时间:2018-08-10 02:55:51

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

在作为主机OS的Windows 10 Virtualbox上全新安装Ubuntu Server 18.04上运行。在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.

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

1 个答案:

答案 0 :(得分:3)

从此处获取默认来源列表

https://askubuntu.com/a/1036749

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

继续...