Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install rails in my ubuntu 12.10, but I am unsuccessful in doing it. I am getting the error about packages. Here is the sample exmple

 E: Unable to locate package libsql

What I did was, I installed ubuntu recently along side of windows7. I going through these E: W: N: package errors. I dont know what sort of errors are these. Please help!

share|improve this question
What command are you running and you get the E: error? – kalpetros Apr 4 '13 at 4:27
I am following the steps to install rails, while doing so I came across these errors... sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsql – user2164254 Apr 4 '13 at 4:30
Can you try and run the following command instead: sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \ curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 \ libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison \ subversion pkg-config – kalpetros Apr 4 '13 at 4:32
I tried and came across these errors E: Unable to locate package curl E: Unable to locate package libxml2-dev E: Unable to locate package subversion – user2164254 Apr 4 '13 at 4:33
Read the answer here:… – kalpetros Apr 4 '13 at 4:35

I have just done two Rails 3 installs on Ubuntu 12.04. If you want to try the procedure in 12.10 the link to the page is

The blog writer seemed to know what he was talking about as both installs were without a hitch.

Good luck and let us know, Bernie

share|improve this answer

Your Answer


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.