Ubuntu vs Rails

Published 2008-08-21 by Robert Burén
Tags: mod_rails, passenger, rails, ruby, ubuntu
4

I don’t know what happened! I had a perfect little setup on my VPS, with a super simple script to install all the little packages I wanted, including ruby, rubygems, git and Passenger. It goes something like this:

# Some non-ruby installs first...

# Ruby
apt-get -qq -y install ruby-full libmysql-ruby rubygems
gem update --system

# Version control
apt-get -qq -y install git-core subversion cvs

# Passenger (aka mod_rails). This will also include apache2
# Need to add the brightbox gpg key before installing
echo "deb http://apt.brightbox.net hardy main" >> /etc/apt/sources.list
wget http://apt.brightbox.net/release.asc -O - | apt-key add -
apt-get -qq update
apt-get -qq -y install libapache2-mod-passenger

The wget and apt-key parts is to get the gpg key from brightbox. If you don’t, you’ll end up with annoying warnings everytime you do an “apt-get whatever”.

Anyway — that setup worked perfectly! Until about a week ago, that is…

Now, when I check what there is to update, with the usual commands…

apt-get update
apt-get -s dist-upgrade

…I get into problems. For some reason, apt-get wants to remove passenger. Now, why is that?

The printout reads as follows:

The following packages will be REMOVED:
  libapache2-mod-passenger libgems-ruby1.8
The following NEW packages will be installed:
  rubygems1.8
The following packages will be upgraded:
  initramfs-tools iproute irb libdbm-ruby libgdbm-ruby libopenssl-ruby libreadline-ruby pciutils rdoc ri ruby ruby-full rubygems tzdata

Someone please tell me how to get back on track again! Or back on the Rails, as it were…

 

Comments (2):
Add comment »

1. Comment by Jorge Cangas — 2008-08-22 01:11

Hi: I get similar problems with Ubuntu+rails+passenger. Maybe this can help you: http://codeconversations.blogspot.com/2008/08/passenger-nightmare.html

2. Comment by Jimmy — 2008-11-12 07:35

Elaking! Jag hade ju lagt till pygments som syntax highlighter när jag såg din js-variant som verkar bättre. Nu måste jag ju fundera om jag ska byta…