Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed rvm and it tells me I'm missing some packages:

viggy@viggy:~$ rvm requirements
Installing requirements for ubuntu, might require sudo password.
Skipping `apt-get update` make sure your system is up to date.
RVM autolibs is now configured with mode '2' => 'check and stop if missing',
please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
or visit https://rvm.io/rvm/autolibs for more information.
Missing required packages: libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, libxml2-dev, libxslt1-dev, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, libffi-dev.

So I try to install them but get a ton of unable to locate package errors:

viggy@viggy:~$ sudo apt-get --no-install-recommends install libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, libxml2-dev, libxslt1-dev, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, libffi-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libreadline6-dev,
E: Unable to locate package zlib1g-dev,
E: Unable to locate package libssl-dev,
E: Unable to locate package libyaml-dev,
E: Unable to locate package libsqlite3-dev,
E: Unable to locate package sqlite3,
E: Unable to locate package libxml2-dev,
E: Unable to locate package libxslt1-dev,
E: Unable to locate package autoconf,
E: Unable to locate package libgdbm-dev,
E: Unable to locate package libncurses5-dev,
E: Unable to locate package automake,
E: Unable to locate package libtool,
E: Unable to locate package bison,
share|improve this question

2 Answers 2

You need to check your /etc/apt/sources.list file and to decide which software repository you will use to fetch those missing packages, and add those repository/ies.

The easiest and fastest way is with the GUI-programs 'Synaptic package manager' and 'Software & Updates'

More difficult is via the CLI. You can find it on https://help.ubuntu.com/community/Repositories/CommandLine

share|improve this answer
    
And what if I was using ubuntu server, what would be the solution? –  JohnMerlino Apr 27 '13 at 3:20
    
You mean headless? Without GUI? Same solution. Use the CLI. –  user85164 Apr 27 '13 at 4:17
    
I read the documentation you sent me. So your recommendation is to uncomment some of the repositories in /etc/apache/sources.list and run sudo apt-get update? But how do I know which of those repositories are the ones I need? –  JohnMerlino Apr 27 '13 at 4:49
    
what ubuntu are you using? can you post the information from 'sudo uname -a' ? –  user85164 Apr 27 '13 at 5:13
    
Linux viggy 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:15:33 UTC 2013 i686 i686 i386 GNU/Linux –  JohnMerlino Apr 27 '13 at 5:14

You have a comma after all the package names. Remove the commas.

sudo apt-get --no-install-recommends install libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
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.