Look at answers for this question:
From your problem description it seems that the rvm script needs to be loaded only once, during login. As far as I know, Ubuntu reads
/etc/profile/
and~/.profile
during login (the graphical login, independent of bash). That means, after logging out and a logging in once, the rvm script should be active. If it still doesn't work, then perhaps the rvm script needs to be loaded for every bash session. If that is the case thenbashrc
is the more appropriate place for the script.