Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to install nginx with passenger support on 12.04

I've used the brightbox repo before but that doesn't work now.

I've also tried ppa:nginx/stable but when I try to run sudo apt-get install nginx-passenger I get:

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:
 nginx-passenger : Depends: nginx-common (= 1.0.14-1ppa1~precise) but 1.2.0-1ppa1~precise is to be installed
                   Depends: ruby-passenger (> 3.0.11debian) but it is not installable
E: Unable to correct problems, you have held broken packages.

The last part about the holds seems invalid, dpkg --get-selections | grep hold:

netatalk                    hold

And searching for nginx shows them listed as deinstall.

How on earth do I fix this?

share|improve this question
1  
I'd say get rid of the installed PPAs, run apt-get update, then try; PPAs aren't necessarily stable, and something's broken about the requirements of the PPA package that it's trying to install. –  Shane Madden Apr 26 '12 at 21:29
    
Sure, that works but the ubuntu version of nginx doesn't have passenger support. –  Nicklas A. Apr 27 '12 at 5:39

2 Answers 2

up vote 1 down vote accepted

Screw it, I went with the default nginx and used thin with a reverse proxy.

share|improve this answer

I had this problem as well. In the end it turned out that my apt sources were not correct, and a

sudo apt-add-repository ppa:brightbox/passenger-nginx; sudo apt-get update; sudo apt-get upgrade

did the trick.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.