Primero production setup issue

No, the How can I quickly set up Primero link has everything you need.
You have installed Ubuntu 16.04 LTS on the deploy server, right?

You could try ssh’ing into the target machine and removing rvm completely like

sudo -Hu primero bash
source ~/.rvm/scripts/rvm
cd ~/application
rvm implode