All threads / Setup Ubuntu 15.04 Vivid Vervet Discussion
Ask A Question


You’re not receiving notifications from this thread.

Setup Ubuntu 15.04 Vivid Vervet Discussion

Chris Oliver asked in General
Jim Teegarden ·

Worked like a charm testing out on 15.04 with the exception I had to change the repository back to utopic for nodejs and had to add the gpg key for rvm.. great article.. thanks

Awesome! I'll be sure to tweak those soon since the final release comes out soon!

Newton Robert ·

Cloning into '.rbenv'...
fatal: unable to connect to Temporary failure in name resolution

Newton Robert ·

the proxy might be the problem,

Minor inconsistency at the top of the post you recommend 14.10 Trusty Tahr. The 14.10 release is actually Utopic Unicorn, and 14.04 LTS is Trusty Tahr.

Ah! Thanks. You find my copy-paste job from last version. ;)

I tried to install using rvm but I get this error.

Error running 'requirements_debian_update_system ruby-2.2.1',

showing last 15 lines of /home/bagus/.rvm/log/1428510134_ruby-2.2.1/update_system.log

++ case "${TERM:-dumb}" in

++ case "$1" in

++ [[ -t 2 ]]

++ return 1

++ printf %b 'There has been error while updating '\''apt-get'\'', please give it some time and try again later.

404 errors should be fixed for rvm to proceed. Check your sources configured in:




There has been error while updating 'apt-get', please give it some time and try again later.

404 errors should be fixed for rvm to proceed. Check your sources configured in:



++ return 100

Requirements installation failed with status: 100.

Sounds like you've got issues with apt-get running. Other people have had the same issue it looks like so you'll want to make sure that you can run "sudo apt-get update" successfully it seems.

Thiago Moreira ·

Thanks, perfect work!!!

It looks like the PPA hasnt' been updated for 15.04 yet. For now, replace that step with "sudo apt-get install nodejs" and you should be fine.

Some problems before and after install of Ruby 2.2.2 with rbenv on (l)ubuntu 15.04:

1. The Ruby openssl extension was not compiled. Missing the OpenSSL lib?

Solution for me was

sudo apt-get install libssl-dev

2. On an error:

Sorry, you can't use byebug without Readline. To solve this, you need to rebuild Ruby with Readline support. If using Ubuntu, try sudo apt-get install libreadline-dev and then reinstall your Ruby.

Solution for me was

sudo apt-get install libreadline-dev
CONFIGURE_OPTS="--with-readline-dir=/usr/include/readline" rbenv install 2.2.2
zidane3x3 ·

Thanks simple and easy :-)

sluiper de waal ·

Thanks a lot. Awesome guide, worked flawlessly :)

gang deng ·

very good guide and clear steps, it works on my virtual box

Talal Alobaid ·

I don't know but I almost every time have to " sudo /etc/init.d/postgresql restart

Daniel Benesch ·

I have the same issue ..

Talal Alobaid ·

The nodejs ppa:chris-lea/node.js sometimes you get the 404 error

it is better just to go with the

curl -sL | sudo bash -



sudo apt-get install -y nodejs


this works fine every time

Talal Alobaid ·

also for postgresql when creating user some times you get the


createuser: could not connect to database postgres: could not connect to server: No such file or directory

Is the server running locally and accepting

connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
restart with
sudo /etc/init.d/postgresql restart

and your good to go

RachelDalton ·

Many thanks for this great post!

What is the advantage of the nodejs you get from the PPA? Ubuntu seems to have nodejs in their repo by default also.

The difference is just that the PPA gets updated more often (if the maintainer keeps up to date) vs the Ubuntu repo which only gets updated once every major version change. You'll get a stable version of Nodejs, but it will only receive small updates and security fixes, not major version changes.

many thanks, but i have a problem installing rails with this command: gem install rails -v 4.2.1
this is the result:

ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (

please help me to find the solution, thanks again

You may need 'rbenv rehash' after setting ruby global version.

Under your "Using rvm" instructions, they require that you be using a 'bash' shell (the commands would not work with a 'tcsh' shell). Also, the curl command errored the first time, requiring the downloading of a gpg key from and then doing it again. Finally, (if you're installing as root, anyway) the path was /usr/local/rvm/scripts/rvm ..not ~/.rvm/scripts/rvm (I typically run as root while doing the initial setups of various services and software on a new machine.)

Actually, I couldn't get much of anything to work with the rvm setup. So, I went the easy route and just "apt-get install ruby ruby-dev". It's an older version, but I think it has everything I need.

Peter Boling ·

rvm has first tier support for bash, and nominal support for zsh, and WILL NOT WORK in other shells. rbenv is the tool you need to use for other shells, or just do things manually.

Stepan Pakholok ·

Just the best guidance ever, thanks guys!

Sergey Lukashov ·

I got error on Ubuntu 15.04 with mysql2:
Gem::LoadError: can't activate mysql2 (~> 0.3.13), already activated mysql2-0.4.1. Make sure all dependencies are added to Gemfile.

But this will help:

Worked as written for version 15.04. Ready for my rails intro tomorrow, thanks!

Works great, I only had a problem with the mysql2 gem. I fixed that by doing a downgrade to version 0.3.18.

gem 'mysql2', '~> 0.3.18'

had the same issue, thanks for the solution! :D

Md. Mynoddin ·

"Access denied for user 'root'@'localhost' (using password: NO)Please provide the root password for your MySQL installation" - getting this message when run "rake db:create" I have set the password in databases.yml password to my root password file but show this problem. Thanks in advance. (Note: I am newbie in CLI environment)

Eduardo Beltran ·

I just googled and found this:

Since it is part of the repositories it is no longer required to add the ppa. I am using Ubuntu 15.04

I'm getting this error on

$ rake db:create

Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

Gem::LoadError: can't activate mysql2 (~> 0.3.13), already activated mysql2-0.4.2. Make sure all dependencies are added to Gemfile.

Tasks: TOP => db:create

(See full trace by running task with --trace)


Fixed it by adding

gem 'mysql2', '~> 0.3.18'

instead of

gem 'mysql2'

in Gemfile of the app.

## Great post Thanks.

Hi thevaliantx, you have to modify the Gemfile with that version for mysql2 gem.Then run "bundle install".

That's nice! I'm trying to be a full stack web developer, so HTML and CSS is mandatory, besides much more things to learn. But I'm not following the Ruby path, I was just trying to know how it works, but instead I'm really focused in Node.js. I'm not a professional programmer too, but maybe someday.

A JavaScript book that I always recommend is: "Eloquent JavaScript - second edition". It's divided in three parts, the last one is about Node.js. I thinks i'ts a good book for new comers to the language. You can read it online for free:

No problem mate, always glad to help.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 69,840+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.