I tried to install ruby on my ubuntu 10.04 server edition
sudo apt-get install ruby
I get the following error
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:
ruby: Depends: ruby1.8 but it is not going to be installed
E: Broken packages
I believe your problem is due to obsolete information your package manager has. I.e. it knows that
ruby
package depends onruby1.8
package, but when it tries to install the latter, it can't find it in the repositories.This is because Ruby in Lucid Lyx has been updated to version 1.9.1 since Lucid Lynx was released: http://packages.ubuntu.com/lucid/ruby/
So you need to update the information used by the package manager:
Then you can install ruby:
You'll get version 1.9.1
(also, consider applying security updates and bug fixes using
sudo apt-get upgrade
- at the moment your system is likely lacking 2 years worth of security updates)