gpt4 book ai didi

ruby-on-rails - 橡胶 : Unmet Dependencies for libapache2-mod-passenger

转载 作者:行者123 更新时间:2023-12-04 06:06:47 24 4
gpt4 key购买 nike

当我尝试使用 rubber 进行部署时,我收到以下错误:

The following packages have unmet dependencies:
** [out :: staging.xxx.com]
** [out :: staging.xxx.com] libapache2-mod-passenger : Depends: passenger (= 1:5.0.8-1~trusty1) but it is not going to be installed
** [out :: staging.xxx.com]
** [out :: staging.xxx.com] E
** [out :: staging.xxx.com] :
** [out :: staging.xxx.com] Unable to correct problems, you have held broken packages.

我该怎么做才能解决这个问题?

最佳答案

同样的事情发生在我身上。

我试过像@Phil 说的那样修改版本号,在我的 rubber-passenger.yml 中更改它们根据 https://oss-binaries.phusionpassenger.com/apt/passenger/dists/trusty/main/binary-amd64/Packages 任意递增文件然后运行 ​​cap <alias> rubber:install_packages .这太可怕了,大约在这里:

# passenger_version: '1:5.0.10-1~`lsb_release -sc`1' # fail
# passenger_version: '1:5.0.11-1~`lsb_release -sc`1' # fail
# passenger_version: '1:5.0.13-1~`lsb_release -sc`1' # fail
# passenger_version: '1:5.0.14-1~`lsb_release -sc`1' # fail
# passenger_version: '1:5.0.15-1~`lsb_release -sc`1' # fail
# passenger_version: '1:5.0.16-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.18-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.19-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.20-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.21-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.22-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.23-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.24-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.25-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.26-1~`lsb_release -sc`1'
# passenger_version: '1:5.0.27-1~`lsb_release -sc`1'

我受够了,只是删除了版本号。那奏效了。所以现在我的 roles规范 rubber-passenger.yml看起来像这样:

roles:
passenger:
# packages: [apache2-mpm-prefork, apache2-prefork-dev, libcurl4-openssl-dev, libapache2-mod-xsendfile, [libapache2-mod-passenger, "#{passenger_version}"]]
packages: [apache2-mpm-prefork, apache2-prefork-dev, libcurl4-openssl-dev, libapache2-mod-xsendfile, libapache2-mod-passenger]
rolling_restart_port: "#{passenger_listen_port}"

web_tools:
rolling_restart_port: "#{web_tools_port}"

关于ruby-on-rails - 橡胶 : Unmet Dependencies for libapache2-mod-passenger,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30795040/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com