Running into the following error when trying to install
ruby-2.7.2 on Ubuntu 20.04 via
... rvm_error "There has been an error while updating your system using \`apt-get\`. It seems that there are some 404 Not Found errors for repositories listed in: /etc/apt/sources.list /etc/apt/sources.list.d/*.list Make sure that all repositories are available from your system and verify your setup by running manually: sudo apt-get update Make sure that it works correctly before proceeding with RVM. If you are working from the GUI instead of the terminal, you might want to verify and fix broken repositories using \"Software & Updates\" application. ...
Note: this error is displayed in a log file after the following generic error message is displayed in the terminal after running the command
rvm install 2.7.2:
Searching for binary rubies, this might take some time. Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.7.2.tar.bz2 Checking requirements for ubuntu. Installing requirements for ubuntu. Updating system... Error running 'requirements_debian_update_system ruby-2.7.2', please read /home/sean/.rvm/log/1657594112_ruby-2.7.2/update_system.log Requirements installation failed with status: 1.
This issue was resolved for me by running the following command:
rvm autolibs disable
followed by my initial command:
rvm install 2.7.2
autolibs feture that is built into RVM is playing a part in causing this error. More on
autolibs in the official RVM docs
Thanks for reading this blog post!
If you have any questions or concerns please feel free to post a comment in this post and I will get back to you when I find the time.