I have successfully installed rvm
, but when I run the following commands
sudo apt-get update
Or:
rvm install 2.0.0
I have the following errors:
W: Failed to fetch http://ppa.launchpad.net/cheleb/blender-svn/ubuntu/dists/precise/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/cheleb/blender-svn/ubuntu/dists/precise/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/cheleb/blender-svn/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/oneiric/ubuntu/dists/precise/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/oneiric/ubuntu/dists/precise/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/oneiric/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found
How can I fix these errors?
Any easy way to install ruby is with ruby-install. I had compile errors when building ruby from scratch, but
ruby-install
encountered no such problems.edit: I've had problems with
rvm
in the past, and feel I should actively recommend against this. That's just me personally, though. I've had okay luck withrbenv
, but always use it in conjunction withruby-install
.Use
rvm
to install stable ruby:or, if you have rvm already, get stable version:
Install ruby and use the specific version of ruby (remember to use login shell)
As found on the official RVM website.
EDIT: As @prem points out run this at first and follow the above steps if there is a public key error
gpg --keyserver hkp://keys.gnupg.net --recv-keys \ 409B6B1796C275462A1703113804BB82D39DC0E3
Use
rbenv
to install ruby:Install necessary dependancies:
Install
rbenv
:Install ruby:
Although this answer was accepted, I would strongly recommend using rvm rather. I had nothing but trouble trying to install ruby without it. See e.g. this guide:
https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm
You have some ppa sources enabled that aren't available for your version of Ubuntu. Comment those out in your /etc/apt/sources.list , run sudo apt-get update , and you'll be fine.
I put @PravinMishra's source into a Gist and now you can simply use this one liner:
NOTE: Don't trust my Gist blindly, download the file and look into it before you run it!
follow below steps