Nginx and passenger dependencies issue (Digital Ocean Deployment)

Sebas Mardini picture Sebas Mardini · Mar 2, 2015 · Viewed 11.7k times · Source

Im trying to follow this guide

https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-passenger-and-nginx-on-ubuntu-14-04

When I want to continue with the tutorial after running this command:

sudo apt-get install nginx-extras passenger

I get this error:

Reading package lists... Done
Building dependency tree

Reading state information... Done
passenger is already the newest version.
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:
nginx-extras : Depends: perlapi-5.18.2 but it is not installable
Depends: libperl5.18 (>= 5.18.2) but it is not installable
Recommends: passenger (< 4.0.60) but 1:4.0.59-1~trusty1 is to be installed
E: Unable to correct problems, you have held broken packages.

I think that I can't install nginx-extras, Somebody can help me please?

Answer

Maciej Adamczewski picture Maciej Adamczewski · Mar 7, 2015

I had the same problem on Ubuntu 14.10

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

comment out
deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main

ctrl+x
Y
enter

sudo apt-get update

sudo apt-get install nginx nginx-extras

then if ok

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

insert
deb https://oss-binaries.phusionpassenger.com/apt/passenger wheezy main

ctrl+x
Y
enter

sudo apt-get update

sudo apt-get install passenger

Voila !