Skip to content

Instantly share code, notes, and snippets.

@resmall
Created January 6, 2016 18:41
Show Gist options
  • Save resmall/7b139ce4713bfcfef472 to your computer and use it in GitHub Desktop.
Save resmall/7b139ce4713bfcfef472 to your computer and use it in GitHub Desktop.
instalação ruby
# Se durante o processo do sudo apt-get update ocorrer algum erro de pacote
# ou de destino nao encontrado, tem que deletar o repositorio
# pois nesse momento nao pode ocorrer nenhum erro senao o rvm chora
vagrant@homestead:~/Projects/acadrolli$ sudo apt-get update
Err http://dl.hhvm.com utopic/main amd64 Packages
404 Not Found [IP: 140.211.166.134 80]
Err http://dl.hhvm.com utopic/main i386 Packages
404 Not Found [IP: 140.211.166.134 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/main/source/Sources Hash Sum mismatch
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http://dl.hhvm.com/ubuntu/dists/utopic/main/binary-amd64/Packages 404 Not Found [IP: 140.211.166.134 80]
W: Failed to fetch http://dl.hhvm.com/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found [IP: 140.211.166.134 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
# Nesse caso tivemos vários erros, então vamos ter que detonar eles
# da nossa lista de repositórios confiáveis mais adiante.
###########################################
# Processo de instalação do RVM para instalar o RUBY
# O RVM é um pacote que gerencia versões do Ruby.
###########################################
vagrant@homestead:~$ curl -L https://get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 160 0 0:00:01 0:00:01 --:--:-- 160
100 22721 100 22721 0 0 9314 0 0:00:02 0:00:02 --:--:-- 27407
Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc
gpg: directory `/home/vagrant/.gnupg' created
gpg: new configuration file `/home/vagrant/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/vagrant/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/vagrant/.gnupg/pubring.gpg' created
gpg: Signature made Mon 30 Mar 2015 09:52:13 PM UTC using RSA key ID BF04FF17
gpg: Can't check signature: public key not found
Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found.
Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).
GPG signature verification failed for '/home/vagrant/.rvm/archives/rvm-1.26.11.tgz' - 'https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc'!
try downloading the signatures:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
or if it fails:
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
the key can be compared with:
https://rvm.io/mpapis.asc
https://keybase.io/mpapis
###########################################
# Seguimos o que a mensagem sugere
###########################################
vagrant@homestead:~$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
gpg: keyring `/home/vagrant/.gnupg/secring.gpg' created
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
^C
gpg: Interrupt caught ... exiting
####################################################
# Tivemos erro no primeiro método, vamos pro segundo
###########################################
vagrant@homestead:~$ command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
gpg: /home/vagrant/.gnupg/trustdb.gpg: trustdb created
gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
###########################################
# Aleluia, agora é só instalar, tentar, novamente
###########################################
vagrant@homestead:~$ curl -L https://get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 252 0 --:--:-- --:--:-- --:--:-- 252
100 22721 100 22721 0 0 12751 0 0:00:01 0:00:01 --:--:-- 145k
Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc
gpg: Signature made Mon 30 Mar 2015 09:52:13 PM UTC using RSA key ID BF04FF17
gpg: Good signature from "Michal Papis (RVM signing) <[email protected]>"
gpg: Note: This key has expired!
Primary key fingerprint: 409B 6B17 96C2 7546 2A17 0311 3804 BB82 D39D C0E3
Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36 166B E206 C29F BF04 FF17
GPG verified '/home/vagrant/.rvm/archives/rvm-1.26.11.tgz'
Installing RVM to /home/vagrant/.rvm/
Adding rvm PATH line to /home/vagrant/.profile /home/vagrant/.mkshrc /home/vagrant/.bashrc /home/vagrant/.zshrc.
Adding rvm loading line to /home/vagrant/.profile /home/vagrant/.bash_profile /home/vagrant/.zlogin.
Installation of RVM in /home/vagrant/.rvm/ is almost complete:
* To start using RVM you need to run `source /home/vagrant/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
# Tiago R. Lammers,
#
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.
In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
###########################################
# It Works!
# Seguimos o resto do processo
###########################################
vagrant@homestead:~$ source ~/.rvm/scripts/rvm
vagrant@homestead:~$ rvm requirements
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..................
Error running 'requirements_debian_update_system ',
showing last 15 lines of /home/vagrant/.rvm/log/1452103726/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:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
\n'
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:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
+ return 100
Requirements installation failed with status: 100.
#########################################################
# Isso indica que tem uns repositórios expirados.
# Tem que achar qual deles usando sudo apt-get update.
# Os erros vão indicar quais tão com problema e devem ser
# removidos.
###########################################
vagrant@homestead:~$ rvm install ruby
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/14.04/x86_64/ruby-2.2.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..................
Error running 'requirements_debian_update_system ruby-2.2.1',
showing last 15 lines of /home/vagrant/.rvm/log/1452103804_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:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
\n'
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:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
++ return 100
Requirements installation failed with status: 100.
###########################################
# Enquanto nao remover não funfa nao adianta
###########################################
vagrant@homestead:~$ sudo rvm install ruby
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/14.04/x86_64/ruby-2.2.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system................
Error running 'requirements_debian_update_system ruby-2.2.1',
showing last 15 lines of /home/vagrant/.rvm/log/1452103829_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:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
\n'
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:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
++ return 100
Requirements installation failed with status: 100.
# Vamos ver qual repo tá incomodando
vagrant@homestead:~$ sudo apt-get update
Ign http://us.archive.ubuntu.com trusty InRelease
Hit http://security.ubuntu.com trusty-security InRelease
Hit http://us.archive.ubuntu.com trusty-updates InRelease
Ign http://ppa.launchpad.net trusty InRelease
Ign http://dl.hhvm.com utopic InRelease
Hit http://us.archive.ubuntu.com trusty-backports InRelease
Hit http://apt.postgresql.org trusty-pgdg InRelease
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://us.archive.ubuntu.com trusty Release.gpg
Ign http://dl.hhvm.com utopic Release.gpg
Ign http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://us.archive.ubuntu.com trusty-updates/main Sources
Ign http://dl.hhvm.com utopic Release
Hit http://ppa.launchpad.net trusty InRelease
Hit http://us.archive.ubuntu.com trusty-updates/restricted Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://us.archive.ubuntu.com trusty-updates/universe Sources
Ign http://dl.hhvm.com utopic/main amd64 Packages/DiffIndex
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Hit http://ppa.launchpad.net trusty InRelease
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Ign http://dl.hhvm.com utopic/main i386 Packages/DiffIndex
Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://packages.blackfire.io any InRelease
Hit http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://apt.postgresql.org trusty-pgdg/main amd64 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://apt.postgresql.org trusty-pgdg/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit https://deb.nodesource.com trusty InRelease
Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit https://deb.nodesource.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit https://deb.nodesource.com trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit http://packages.blackfire.io any/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit https://deb.nodesource.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en
Get:1 https://deb.nodesource.com trusty/main Translation-en_US
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://ppa.launchpad.net trusty Release
Hit http://us.archive.ubuntu.com trusty-backports/main Sources
Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://ppa.launchpad.net trusty Release
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/universe Sources
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://packages.blackfire.io any/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages
Ign http://apt.postgresql.org trusty-pgdg/main Translation-en_US
Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Ign https://deb.nodesource.com trusty/main Translation-en_US
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Ign https://deb.nodesource.com trusty/main Translation-en
Ign http://dl.hhvm.com utopic/main Translation-en_US
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en
Ign http://apt.postgresql.org trusty-pgdg/main Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en
Ign http://dl.hhvm.com utopic/main Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en
########################################### Achei!!!!!!
Err http://dl.hhvm.com utopic/main amd64 Packages
404 Not Found [IP: 140.211.166.134 80]
Hit http://us.archive.ubuntu.com trusty Release
Err http://dl.hhvm.com utopic/main i386 Packages
404 Not Found [IP: 140.211.166.134 80]
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Hit http://us.archive.ubuntu.com trusty/universe Sources
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/universe Translation-en
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://packages.blackfire.io any/main Translation-en_US
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Ign http://packages.blackfire.io any/main Translation-en
W: Failed to fetch http://dl.hhvm.com/ubuntu/dists/utopic/main/binary-amd64/Packages 404 Not Found [IP: 140.211.166.134 80]
W: Failed to fetch http://dl.hhvm.com/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found [IP: 140.211.166.134 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
# Repositórios padrão, não está..
vagrant@homestead:~$ sudo nano /etc/apt/sources.list
# Aha, temos ali hhvm
vagrant@homestead:/etc/apt/sources.list.d$ ls
blackfire.list nginx-stable-trusty.list postgresql.list
blackfire.list.save nginx-stable-trusty.list.save postgresql.list.save
chris-lea-node_js-trusty.list nodesource.list rwky-redis-trusty.list
chris-lea-node_js-trusty.list.save nodesource.list.save rwky-redis-trusty.list.save
hhvm.list ondrej-php5-5_6-trusty.list
hhvm.list.save ondrej-php5-5_6-trusty.list.save
# Backup, só por garantia...
vagrant@homestead:/etc/apt/sources.list.d$ cp hhvm.list ~/
vagrant@homestead:/etc/apt/sources.list.d$ cp hhvm.list.save ~/
# Verificando que está de boa e salvo
vagrant@homestead:/etc/apt/sources.list.d$ cd ~/
vagrant@homestead:~$ ls
dbbackups dropbox-uploader hhvm.list hhvm.list.save node_modules Projects startssh.sh teste.sql tmp
# Voltamos pra onde estávamos
vagrant@homestead:~$ cd -
/etc/apt/sources.list.d
# Estamos lá mesmo? Yep...
vagrant@homestead:/etc/apt/sources.list.d$ ls
blackfire.list nginx-stable-trusty.list postgresql.list
blackfire.list.save nginx-stable-trusty.list.save postgresql.list.save
chris-lea-node_js-trusty.list nodesource.list rwky-redis-trusty.list
chris-lea-node_js-trusty.list.save nodesource.list.save rwky-redis-trusty.list.save
hhvm.list ondrej-php5-5_6-trusty.list
hhvm.list.save ondrej-php5-5_6-trusty.list.save
# Removaaaaaaa
vagrant@homestead:/etc/apt/sources.list.d$ rm hhvm.list
rm: remove write-protected regular file ‘hhvm.list’? y
rm: cannot remove ‘hhvm.list’: Permission denied
# Errrrrroooooouuuuu. Sudo eu invoco vocÊEEEEEEEE!!!!
vagrant@homestead:/etc/apt/sources.list.d$ sudo rm hhvm.list
vagrant@homestead:/etc/apt/sources.list.d$ sudo rm hhvm.list.save
# Aha! Update sem erros
vagrant@homestead:/etc/apt/sources.list.d$ sudo apt-get update
Hit http://security.ubuntu.com trusty-security InRelease
Ign http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security/main Sources
Ign http://ppa.launchpad.net trusty InRelease
Hit http://apt.postgresql.org trusty-pgdg InRelease
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://apt.postgresql.org trusty-pgdg/main amd64 Packages
Hit http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://apt.postgresql.org trusty-pgdg/main i386 Packages
Hit http://packages.blackfire.io any InRelease
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit https://deb.nodesource.com trusty InRelease
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit https://deb.nodesource.com trusty/main Sources
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit https://deb.nodesource.com trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit https://deb.nodesource.com trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Get:1 https://deb.nodesource.com trusty/main Translation-en_US
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://packages.blackfire.io any/main amd64 Packages
Hit http://ppa.launchpad.net trusty Release
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://ppa.launchpad.net trusty Release
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Ign http://apt.postgresql.org trusty-pgdg/main Translation-en_US
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Ign http://apt.postgresql.org trusty-pgdg/main Translation-en
Hit http://packages.blackfire.io any/main i386 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Ign https://deb.nodesource.com trusty/main Translation-en_US
Ign https://deb.nodesource.com trusty/main Translation-en
Ign http://packages.blackfire.io any/main Translation-en_US
Ign http://packages.blackfire.io any/main Translation-en
Ign http://us.archive.ubuntu.com trusty InRelease
Hit http://us.archive.ubuntu.com trusty-updates InRelease
Hit http://us.archive.ubuntu.com trusty-backports InRelease
Hit http://us.archive.ubuntu.com trusty Release.gpg
Hit http://us.archive.ubuntu.com trusty-updates/main Sources
Hit http://us.archive.ubuntu.com trusty-updates/restricted Sources
Hit http://us.archive.ubuntu.com trusty-updates/universe Sources
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/main Sources
Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://us.archive.ubuntu.com trusty-backports/universe Sources
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://us.archive.ubuntu.com trusty Release
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Hit http://us.archive.ubuntu.com trusty/universe Sources
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/universe Translation-en
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Reading package lists... Done
# Finalmente, vamos instalar!!!!!
# Podemos usar tambem:
# sudo rvm install ruby
vagrant@homestead:/etc/apt/sources.list.d$ sudo rvm install 2.2.1
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/14.04/x86_64/ruby-2.2.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system............
Installing required packages: gawk, libyaml-dev, libgdbm-dev, libncurses5-dev, bison, pkg-config, libffi-dev........
Requirements installation successful.
ruby-2.2.1 - #configure
ruby-2.2.1 - #download
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23.2M 100 23.2M 0 0 168k 0 0:02:21 0:02:21 --:--:-- 300k
ruby-2.2.1 - #validate archive
ruby-2.2.1 - #extract
ruby-2.2.1 - #validate binary
ruby-2.2.1 - #setup
ruby-2.2.1 - #gemset created /home/vagrant/.rvm/gems/ruby-2.2.1@global
ruby-2.2.1 - #importing gemset /home/vagrant/.rvm/gemsets/global.gems..............................
ruby-2.2.1 - #generating global wrappers........
ruby-2.2.1 - #gemset created /home/vagrant/.rvm/gems/ruby-2.2.1
ruby-2.2.1 - #importing gemsetfile /home/vagrant/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.2.1 - #generating default wrappers........
# Setamos qual versão usar por padrão
vagrant@homestead:/etc/apt/sources.list.d$ rvm use 2.2.1 --default
Using /home/vagrant/.rvm/gems/ruby-2.2.1
# Testamos se está ok
vagrant@homestead:/etc/apt/sources.list.d$ ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
#YESSSSSSSSS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment