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 have tried a lot of methods but cant get this done. I am trying to install rvm on 12.04 ubuntu. There has been many problems in past like this and I have referred as much as I can and still nothing is working for me. Even wirting sudo in front of these doesnt work. What I tried are the following:

  1. \curl -L | bash -s stable --ruby

  2. curl -L | bash -s stable

  3. curl -L | bash -s stable

I am able to ping each of them though.

Everytime I get the this error: couldn't connect to host OR network is unreachable

it looks like this:

ubuntu@ubuntu:~$ \curl -L | bash -s stable --ruby
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) couldn't connect to host

I already tried the solution proposed in Unable to install RVM using curl

I am using NAT adapter for internet and wired connection. I do not have any proxies enabled and all my firewalls are disabled in my hosting OS which is windows.

My proxy settings for ubuntu are set to none

But still I am not able to get this done.

Can somebody tell me what could be the problem and how to fix it. Is it something to do with guest additions because i don't have that yet.

share|improve this question

I think you are not able to reach You could try running curl in verbose mode and expect some similar output.

Look for Connected to string. If this is not visible and the command is stuck at About to connect() string, you can be assured you have a connectivity problem from your VM.

$ curl -Iv * Rebuilt URL to: * Adding handle: conn: 0x16fef90 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x16fef90) send_pipe: 1, recv_pipe: 0 * About to connect() to port 80 (#0) * Trying Connected to ( port 80 (#0)

HEAD / HTTP/1.1 User-Agent: curl/7.32.0 Host: Accept: /

< HTTP/1.1 301 Moved Permanently HTTP/1.1 301 Moved Permanently * Server nginx/1.6.0 is not blacklisted < Server: nginx/1.6.0 Server: nginx/1.6.0 < Date: Sun, 25 May 2014 07:48:40 GMT Date: Sun, 25 May 2014 07:48:40 GMT < Content-Type: text/html Content-Type: text/html < Content-Length: 184 Content-Length: 184 < Connection: keep-alive Connection: keep-alive < Location: Location:

  • Connection #0 to host left intact
share|improve this answer
i got the same error with this too. – RoR May 25 '14 at 8:01
Could you be more specific about the error ? – Garfield Carneiro May 25 '14 at 8:02
now i am not able to ping the address as well – RoR May 25 '14 at 8:02
connection timeout – RoR May 25 '14 at 8:02
network is unreachable then it shows "success" and "couldnot connect to host" – RoR May 25 '14 at 8:04

RVM can be installed in ubuntu with the repository ppa:rvm/ppa. You dont need to implement difficult compilation methods.

sudo add-apt-repository ppa:rvm/ppa

sudo apt-get update

sudo apt-get install smplayer
share|improve this answer
is this for installing ruby? – RoR May 25 '14 at 8:32

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.