title: "Gem::RemoteFetcher::UnknownHostError" while installing Rails version 3.2.15
body: <p>i've successfully installed rails 3.2.15 on a live ubuntu usb with data persistence before.</p>
  
  <p>now that i've become used to the os (<strong>Ubuntu 12.04 LTS</strong>), i've installed it on the laptop and in the process of installing the stuff i used back in the live usb.</p>
  
  <p>long story short, i'm having problems with installing Rails. i've used the same instructions to install ruby and rails as the one in the live usb: <a href="http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/">http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/</a> </p>
  
  <p>However, i'm getting this error when installing rails: </p>
  
  <blockquote>
    <p>ERROR:  While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
        no such name (<a href="https://api.rubygems.org/api/v1/dependencies?gems=activemodel">https://api.rubygems.org/api/v1/dependencies?gems=activemodel</a>)</p>
  </blockquote>
  
  <p>I've used -V to see what's happening but, being a tech noob in general, i dont know whats going wrong.</p>
  
  <p>Here's what -V gave out:</p>
  
  <blockquote>
    <p>~$ gem install rails -V 3.2.15 HEAD
    <a href="https://api.rubygems.org/latest_specs.4.8.gz">https://api.rubygems.org/latest_specs.4.8.gz</a> 302 Moved Temporarily
    HEAD
    <a href="https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz">https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz</a>
    200 OK GET <a href="https://api.rubygems.org/latest_specs.4.8.gz">https://api.rubygems.org/latest_specs.4.8.gz</a> 302 Moved
    Temporarily GET
    <a href="https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz">https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz</a>
    200 OK HEAD <a href="https://api.rubygems.org/latest_specs.4.8.gz">https://api.rubygems.org/latest_specs.4.8.gz</a> 302 Moved
    Temporarily HEAD
    <a href="https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz">https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz</a>
    304 Not Modified GET
    <a href="https://api.rubygems.org/quick/Marshal.4.8/rails-4.0.2.gemspec.rz">https://api.rubygems.org/quick/Marshal.4.8/rails-4.0.2.gemspec.rz</a> 302
    Moved Temporarily GET
    <a href="https://bb-m.rubygems.org/quick/Marshal.4.8/rails-4.0.2.gemspec.rz">https://bb-m.rubygems.org/quick/Marshal.4.8/rails-4.0.2.gemspec.rz</a> 200
    OK HEAD <a href="https://api.rubygems.org/api/v1/dependencies">https://api.rubygems.org/api/v1/dependencies</a> 302 Moved
    Temporarily HEAD <a href="https://bundler.rubygems.org/api/v1/dependencies">https://bundler.rubygems.org/api/v1/dependencies</a> 200
    OK HEAD <a href="https://api.rubygems.org/api/v1/dependencies">https://api.rubygems.org/api/v1/dependencies</a> 302 Moved
    Temporarily HEAD <a href="https://bundler.rubygems.org/api/v1/dependencies">https://bundler.rubygems.org/api/v1/dependencies</a> 200
    OK GET <a href="https://api.rubygems.org/api/v1/dependencies?gems=rails">https://api.rubygems.org/api/v1/dependencies?gems=rails</a> 302
    Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=rails">https://bundler.rubygems.org/api/v1/dependencies?gems=rails</a> 200 OK GET
    <a href="https://api.rubygems.org/api/v1/dependencies?gems=rails">https://api.rubygems.org/api/v1/dependencies?gems=rails</a> 302 Moved
    Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=rails">https://bundler.rubygems.org/api/v1/dependencies?gems=rails</a> 200 OK GET
    <a href="https://api.rubygems.org/api/v1/dependencies?gems=railties">https://api.rubygems.org/api/v1/dependencies?gems=railties</a> 302 Moved
    Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=railties">https://bundler.rubygems.org/api/v1/dependencies?gems=railties</a> 200 OK
    GET <a href="https://api.rubygems.org/api/v1/dependencies?gems=railties">https://api.rubygems.org/api/v1/dependencies?gems=railties</a> 302
    Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=railties">https://bundler.rubygems.org/api/v1/dependencies?gems=railties</a> 200 OK
    GET <a href="https://api.rubygems.org/api/v1/dependencies?gems=actionmailer">https://api.rubygems.org/api/v1/dependencies?gems=actionmailer</a> 302
    Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=actionmailer">https://bundler.rubygems.org/api/v1/dependencies?gems=actionmailer</a> 200
    OK GET <a href="https://api.rubygems.org/api/v1/dependencies?gems=actionmailer">https://api.rubygems.org/api/v1/dependencies?gems=actionmailer</a>
    302 Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=actionmailer">https://bundler.rubygems.org/api/v1/dependencies?gems=actionmailer</a> 200
    OK GET <a href="https://api.rubygems.org/api/v1/dependencies?gems=activerecord">https://api.rubygems.org/api/v1/dependencies?gems=activerecord</a>
    302 Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=activerecord">https://bundler.rubygems.org/api/v1/dependencies?gems=activerecord</a> 200
    OK GET <a href="https://api.rubygems.org/api/v1/dependencies?gems=activerecord">https://api.rubygems.org/api/v1/dependencies?gems=activerecord</a>
    302 Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=activerecord">https://bundler.rubygems.org/api/v1/dependencies?gems=activerecord</a> 200
    OK GET <a href="https://api.rubygems.org/api/v1/dependencies?gems=actionpack">https://api.rubygems.org/api/v1/dependencies?gems=actionpack</a>
    302 Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=actionpack">https://bundler.rubygems.org/api/v1/dependencies?gems=actionpack</a> 200
    OK GET <a href="https://api.rubygems.org/api/v1/dependencies?gems=actionpack">https://api.rubygems.org/api/v1/dependencies?gems=actionpack</a>
    302 Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=actionpack">https://bundler.rubygems.org/api/v1/dependencies?gems=actionpack</a> 200
    OK GET <a href="https://api.rubygems.org/api/v1/dependencies?gems=activesupport">https://api.rubygems.org/api/v1/dependencies?gems=activesupport</a>
    302 Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=activesupport">https://bundler.rubygems.org/api/v1/dependencies?gems=activesupport</a>
    200 OK GET
    <a href="https://api.rubygems.org/api/v1/dependencies?gems=activesupport">https://api.rubygems.org/api/v1/dependencies?gems=activesupport</a> 302
    Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=activesupport">https://bundler.rubygems.org/api/v1/dependencies?gems=activesupport</a>
    200 OK GET
    <a href="https://api.rubygems.org/api/v1/dependencies?gems=activemodel">https://api.rubygems.org/api/v1/dependencies?gems=activemodel</a> 302
    Moved Temporarily GET
    <a href="https://bundler.rubygems.org/api/v1/dependencies?gems=activemodel">https://bundler.rubygems.org/api/v1/dependencies?gems=activemodel</a> 200
    OK ERROR:  While executing gem ...
    (Gem::RemoteFetcher::UnknownHostError)
        no such name (<a href="https://api.rubygems.org/api/v1/dependencies?gems=activemodel">https://api.rubygems.org/api/v1/dependencies?gems=activemodel</a>)</p>
  </blockquote>
  
  <p>anyone can help?</p>
  
  <p><strong>ADDITIONAL INFO:</strong></p>
  
  <p>using:</p>
  
  <p>ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux]</p>
  
  <p>rvm 1.25.15 (stable) by Wayne E. Seguin , Michal Papis  [https://rvm.io/]</p>