title: Can't install Ruby on Rails with RVM on Ubuntu 13.04
body: <p>I am trying to install RVM on my Ubuntu machine.</p>
  
  <p>I have used curl to get RVM, but some RVM  commands (install, requirements) throw this apt-get error:</p>
  
  <pre><code>There has been error while updating 'apt-get', please give it some time and try again later.
  For 404 errors check your sources configured in:
      /etc/apt/sources.list
      /etc/apt/sources.list.d/*.list
  </code></pre>
  
  <p>type rvm | head -1 returns</p>
  
  <pre><code>rvm is a function
  -bash: type: write error: Broken pipe
  </code></pre>
  
  <p>which gem</p>
  
  <pre><code>/usr/bin/gem
  </code></pre>
  
  <p>I have checked the "Run command as a login shell" option</p>
  
  <p>Steps followed from this <a href="http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/" rel="noreferrer">tutorial</a>:</p>
  
  <pre><code>sudo apt-get install curl
  curl -L get.rvm.io | bash -s stable --auto
  . ~/.bash_profile
  rvm requirements - doesn't work properly
  </code></pre>
  
  <p>I have also looked at the <a href="https://rvm.io/rvm/install/#explained" rel="noreferrer">official RVM documentation</a>, but it seems to be very similar.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE:</strong> I managed to do it. I disabled all the third party ppa URLs and it installed smoothly.</p>