Rubber: Unsatisfied dependencies for libapache2-mod-passenger

When I try to deploy with rubber, I get the following error:

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.

      

What can I do to fix this problem?

+3


source to share


2 answers


The same thing happened to me.

I've tried using version numbers like @Phil changing them in my rubber-passenger.yml

file arbitrarily and gradually based on https://oss-binaries.phusionpassenger.com/apt/passenger/dists/trusty/main/binary-amd64/Packages and then run cap <alias> rubber:install_packages

. It was terrible, and something like this:

# 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'

      



I got bored and just deleted the version number . It worked. So now my specification roles

to rubber-passenger.yml

look like this:

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}"

      

+3


source


For me it helped to change the first line of rubber-passenger.yml to

passenger_version: '1:5.0.15-1~`lsb_release -sc`1'

      

(Which means changing the version number)



Then again something like

cap rubber:install_packages

      

0


source







All Articles