Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx and passenger dependencies issue (Digital Ocean Deployment)

Tags:

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?

like image 642
Sebas Mardini Avatar asked Mar 02 '15 20:03

Sebas Mardini


1 Answers

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 !

like image 80
Maciej Adamczewski Avatar answered Sep 30 '22 08:09

Maciej Adamczewski