簡體   English   中英

無法在 Ubuntu Server 18.04 上安裝 Phusion Passenger

[英]Unable to install Phusion Passenger on Ubuntu Server 18.04

在 Virtualbox 上全新安裝的 Ubuntu Server 18.04 上運行,Windows 10 作為主機操作系統。 此處運行Phusion 乘客網站上的說明

這是我得到的錯誤:

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

繼續......

如果您對以前的解決方案有問題,一個選項是運行此命令: sudo nano /etc/apt/sources.list.d/passenger.list並注釋此文件中的所有行,然后運行命令sudo apt-get install passenger

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM