Ubuntu 18.04 Installfest RVM & GPG blues


#1

Hi, everyone!

Running Ubuntu 18.04.

Lost in the woods on this, I’m afraid. Spent all of yesterday setting up my environment, but I caught a snag with the GPG part of the RVM install, and I did a workaround I found online. Whatever I did caused some instability, like my system working way too hard and heating up. After failing to isolate the problem, I figured the best was to restart the installation process.

I have attempted to use solutions here in the forum, from Stackexchange, from man pages and the CLI output notes. None of them have worked. I posted in the forum, but I think it was deleted. So, here is where I am at now. Here are the 4 commands that i have entered and their corresponding returns:

1

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

gpg: keyserver receive failed: Server indicated a failure

2 (suggested in the CLI after entering curl -L get.rvm.io | bash -s stable)

gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

gpg: keyserver receive failed: Server indicated a failure

3 (as above, suggested if 2 failed)

gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

gpg: keyserver receive failed: Server indicated a failure

4 (as above, suggested if 3 failed)

command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
gpg: key 3804BB82D39DC0E3: 47 signatures not checked due to missing keys
gpg: key 3804BB82D39DC0E3: public key “Michal Papis (RVM signing) mpapis@gmail.com” imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no ultimately trusted keys found

Will keep plugging away, but I feel like I’m shooting in the dark.

Any suggestions are appreciated. Thank you! :slight_smile:


#2

Update. Got it to work! :smile:

Just remember to replace your actual user name where you see /user/.

Read the output one more time, and I caught something that I previously missed:

> Installation of RVM in /home/user/.rvm/ is almost complete:
**> **
> * To start using RVM you need to run source /home/user/.rvm/scripts/rvm
> in all your open shell windows, in rare cases you need to reopen all shell windows.

Pasting in here, in case someone else stumbles in a similar way:

~$ curl -L get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 194 100 194 0 0 754 0 --:–:-- --:–:-- --:–:-- 754
100 24361 100 24361 0 0 3990 0 0:00:06 0:00:06 --:–:-- 7302
Downloading https://github.com/rvm/rvm/archive/1.29.3.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.3/1.29.3.tar.gz.asc
gpg: Signature made Sun 10 Sep 2017 02:59:21 PM MDT
gpg: using RSA key E206C29FBF04FF17
gpg: Good signature from “Michal Papis (RVM signing) mpapis@gmail.com” [unknown]
gpg: aka “Michal Papis michal.papis@toptal.com” [unknown]
gpg: aka “[jpeg image of size 5015]” [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
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/user/.rvm/archives/rvm-1.29.3.tgz’

Installing RVM to /home/user/.rvm/
Adding rvm PATH line to /home/user/.profile /home/user/.mkshrc /home/user/.bashrc /home/user/.zshrc.
Adding rvm loading line to /home/user/.profile /home/user/.bash_profile /home/user/.zlogin.
Installation of RVM in /home/user/.rvm/ is almost complete:

  • To start using RVM you need to run source /home/user/.rvm/scripts/rvm
    in all your open shell windows, in rare cases you need to reopen all shell windows.
    ~$ source /home/user/.rvm/scripts/rvm
    ~$ curl -L get.rvm.io | bash -s stable
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 194 100 194 0 0 873 0 --:–:-- --:–:-- --:–:-- 873
    100 24361 100 24361 0 0 4105 0 0:00:05 0:00:05 --:–:-- 5800
    Downloading https://github.com/rvm/rvm/archive/1.29.3.tar.gz
    Downloading https://github.com/rvm/rvm/releases/download/1.29.3/1.29.3.tar.gz.asc
    gpg: Signature made Sun 10 Sep 2017 02:59:21 PM MDT
    gpg: using RSA key E206C29FBF04FF17
    gpg: Good signature from “Michal Papis (RVM signing) mpapis@gmail.com” [unknown]
    gpg: aka “Michal Papis michal.papis@toptal.com” [unknown]
    gpg: aka “[jpeg image of size 5015]” [unknown]
    gpg: WARNING: This key is not certified with a trusted signature!
    gpg: There is no indication that the signature belongs to the owner.
    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/user/.rvm/archives/rvm-1.29.3.tgz’

Upgrading the RVM installation in /home/user/.rvm/
RVM PATH line found in /home/user/.mkshrc /home/user/.profile /home/user/.bashrc /home/user/.zshrc.
RVM sourcing line found in /home/user/.profile /home/user/.bash_profile /home/user/.zlogin.
Upgrade of RVM in /home/user/.rvm/ is complete.

Upgrade Notes:

  • No new notes to display.

~$ type rvm | head -1
rvm is a function

WOOT!


#3

Just continuing this thread, as errors and issues pop up. Maybe it will be useful to someone down the line.

Issue when sending command

rvm install 2.3

Error running ‘__rvm_make -j8’,
please read /home/user/.rvm/log/1525919302_ruby-2.3.4/make.log
There has been an error while running make. Halting the installation.

Went to RVM site, then here:

Followed all steps, and voila!

Moving on! :smile:


#4

Rails server doesn’t run. Keep getting traceback errors, which do not make any sense to me yet. Reinstalled Ruby and Rails through RVM.

Ran gem install bundler, and any conflicts were overwritten.

Still getting traceback errors.

After exhausting several options with the Railsbridge tutorial and getting nowhere, I am now working through the https://gorails.com/setup/ubuntu/18.04 tutorial. I don’t know enough to know what I am missing, or what I am doing wrong.

Deleting directory. Trying once more, with the rbenv recommended on gorails.


#5

Imploded rvm. Went through the https://gorails.com/setup/ubuntu/18.04 tutorial.

I am ignoring, for now, the instructions to install mySQL or PostgreSQL. SQLite3 should be fine for now.

Went to bed before posting this. Got Rails to work, but after a reboot, I got the railties message. I ran sudo apt install ruby-railties , and I am now getting the error message after trying to run the rails server:

rails server

Traceback (most recent call last):
4: from bin/rails:3:in <main>' 3: from bin/rails:3:inload’
2: from /home/user/devenv/test_app/bin/spring:8:in <top (required)>' 1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:inrequire’
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require’: cannot load such file – bundler (LoadError)

Rails -v gives the same message. Hmmm. It worked before bed, but after reboot, it doesn’t work now.

Tried sudo apt-get update. Same output as before when inputting rails server.

After some online digging, found a suggestion to run gem install bundler, then bundler install.

Still nothing.

Deleting the directory and starting over. This is my last attempt. If I don’t get it working this time, I’m throwing in the towel and just running railsinstaller or using an online IDE. I feel like an absolute moron.


#6

Sorry this is giving you such a headache. Check into our Gitter chat. You may be able to get more real-time assistance so you don’t feel like you’re struggling with this on your own!


#7

Will do. Thank you, Ipsv.


#8