New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RVM package fails to configure on fresh Ubuntu 18.04 server install #37
Comments
Hi @sakego and thanks for reporting this issue. I'll download a copy of 18.04 and install in a VM in order to test this. |
@sakego Had you tried to install rvm previously? |
@raelgc this is a fresh install with no previous install of RVM. The failure happened upon installing the first time. The message above indicating upgrading because whenever I try to install a new pkg it attempts to finish installing RVM and fails. |
Same issue in Ubuntu for WSL (18.04.2). |
I have the same issue in Ubuntu 14.04. I am trying to install the latest RVM, version 1.29.9-1. Should I try to install the previous release? |
I'm investigating this right now. |
Root cause is in line https://github.com/rvm/ubuntu_rvm/blob/master/debian/postinst#L47 For some reason, |
If your sudo -s
source /etc/profile.d/rvm.sh
apt-get install -f
apt-get autoremove --purge rvm |
I published the PR sent by @jikamens and appears it worked. Can someone on 18.04 test it too? |
Installs without errors on 19.04. |
Thanks for the feedback, @SuperSandro2000. I'm publishing the updated package for other releases. |
I found the same issue on 18.04. Basically, the issue was an obsolete (?) script in Compared to the same script installed by the "any other system" install (the one with curl / bash), this one has the block with Not sure if this makes any sense, I'll also try with a screenshot. Simply move the highlighed block up, on line 13, before the # Load RVM if it is installed line. [Edited for clarity, formatting] |
It is being loaded, but the script itself seems incorrect, as explained in my comment above. |
@amonea Do you mind to open a pull request with this change? |
I can test changes to this for y'all in WSL Ubuntu 18.04 this evening, I worked around it a couple days ago by commenting those lines out of the postinst script. |
@raelgc Sure, I will do a PR with this within the next few hours. Thanks! |
@raelgc As far as I can tell, that script is actually generated by a function in the I am not sure if I can fix anything in this project, until that function in the installer script gets fixed. (unless there is a way to say "use this previous version of the installer file in the package", but I don't know how to do that) Hope this helps. |
@amonea This explains why this suddenly started to happen only on this release. |
Apologies, it was my fault. I will revert that change for now. Any suggestion how to fix rvm/rvm#3410? |
I just tried agian today
I removed everything I could find on my system that related to rvm, did a reboot to ensure my PATH and stuff was clean, and I tried another install:
I'm not sure what's going on. After another full reboot, the rvm command isn't found, I have to manually After running:
It seems I can now do "rvm install ruby-2.5.5" and it works. |
Ok I see I have the same problem as @amonea, I read his comment too quickly before, but came to the same conclusion.
Simply move that block up to line 12, right after the "then" and before |
None of these 'fixes' worked for me on Ubuntu 18.04. I still get:
on install. Before tryin gto install I have completely uninstalled rvm, checked I removed it from all profiles and paths etc. searched my path for any references to it and removed them all. |
If you do not want to edit files manually (and normally you should not have to), install the rpm and then
(that is a dot, space, and then the file name in the above commands) and then attempt to use |
I just published a new package with the fix provided by RVM. So, if you're still facing this issue, first uninstall the broken package with: sudo -s
source /etc/profile.d/rvm.sh
apt-get install -f
apt-get autoremove --purge rvm If you edited Then, update and upgrade: sudo apt update && sudo apt dist-upgrade
sudo apt install rvm Check if package version is now |
After following these instructions from @raelgc I get the fo9llowing error:
|
Can someone report if it worked after the latest package update? |
@raelgc -- I have just tested it and everything seems fine. Removed the previous version, double-checked all files and references to rvm were no longer existing, installed the new version and everything worked for me without any issues. (the rvm command was present in the path after logging out and back in, and a test install with Tested on Ubuntu 18.04.2 LTS with all packages up to date. |
@raelgc it seems like it's still |
@rakvium Sorry, but unfortunately the Launchpad interface don't allow me to start a build for no more supported releases (18.10 ended at July, 18). |
@raelgc thank you for the information! Will advise to migrate to a supported release. |
Getting the same issue @chrishowejones. How i can purge rvm and reinstall ? |
@kuzyo Please, which Ubuntu version are you using? Which is the package version and output when you try to install? |
@raelgc I did get this message on Ubuntu 18.04
But after trying several time, i will remove every trace of rvm using this advice https://stackoverflow.com/a/15286533, after that Installation went well for me. |
@kuzyo Thanks for the feedback with link to the solution. I'm glad you solved! |
I am still having the same problem with behavior exactly as reported by @jmarrec . I am unable to create local gemsets. I can use rvm after logout, but after a complete reboot rvm is no longer found. Steps to reproducesudo apt-add-repository -y ppa:rael-gc/rvm BehaviourSetting up rvm (1.29.9-3) ...
👉 Donate: https://opencollective.com/rvm/donate Creating local gemsets for [removed-username] Thanks for installing RVM 🙏 👉 Donate: https://opencollective.com/rvm/donate Processing triggers for install-info (6.5.0.dfsg.1-2) ... EnvironmentDistributor ID: Ubuntu |
Update: Just as I posted this I did a last ditch attempt at the purge rvm/ reinstall rvm process and somehow it worked. I can install ruby. There is something fubar either in the installation process or the provided instructions - not sure which. I purged an reinstalled after complete reboots probably 7-8 times. On the 9th it worked. |
@slyn4ice I tested the fresh install few days ago on an AWS server, worked fine. Of course I believe you've found issues, so we need to investigate the reasons. Did you try install rvm before the package? (I mean, using |
this installer is really broken and completely useless, maybe you should reconsider having it as the recommended way to install on ubuntu in the documentation? |
@ryudice Please, can you provide more details? |
@ryudice Just to share: in order to investigate, I've downloaded an 18.04.4 and installed in a Virtualbox instance. Rebooted. Worked fine. I mean: I need more steps and details to try to reproduce your issue. Feel free to create a new issue reporting your problem. It'll be a pleasure to help. If you don't want to use this package, you can install |
I'm building systems with multiple ruby apps using AWS CloudFormation user-data startup scripts on a current Ubuntu 18.04 LTS. I've tried variations on the install but it just doesn't work unless I manually do it from a command line and only after a couple attempts. To fix a broken install I can do a " Here is an extract of my UserData startup script from CF.
This is what the startup script looks like:
The repo is the recommended method for install but useless to me since I cannot be done thru automation. I'm guessing this is not important because you can manually fix it and that helps most users. |
I don't know what went wrong with my install, but the following led to a working rvm installation for me:
|
RVM package fails to configure during install.
Steps to reproduce
• apt-add-repository -y ppa:rael-gc/rvm
• apt-get update
• apt-get install rvm
Expected behavior
For the package to install and rvm command be able to run.
Actual behavior
apt-get install rvm
Do you want to continue? [Y/n]
Setting up rvm (1.29.9-1) ...
Upgrading the RVM installation in /usr/share/rvm/
Upgrade of RVM in /usr/share/rvm/ is complete.
The installer no longer auto-adds root or users to the rvm group. Admins must do this.
Also, please note that group memberships are ONLY evaluated at login time.
This means that users must log out then back in before group membership takes effect!
Thanks for installing RVM 🙏
Please consider donating to our open collective to help us maintain RVM.
👉 Donate: https://opencollective.com/rvm/donate
Creating local gemsets for USER
-su: rvm: command not found
dpkg: error processing package rvm (--configure):
installed rvm package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
rvm
E: Sub-process /usr/bin/dpkg returned an error code (1)
rvm
-bash: rvm: command not found
Environment info
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"
The text was updated successfully, but these errors were encountered: