Installer Gem Ubuntu

sudo apt install rubygems
gem install PackageName
Note: depending on your setup you might have to do sudo gem install PackageName. 
Example: gem install ssh 
or 
sudo -H gem install ssh
Inquisitive Impala