DEV Community

Sean Atukorala
Sean Atukorala

Posted on

3 1

[Solved] rvm_error "There has been an error while updating your system using \`apt-get\`

Problem:

Running into the following error when trying to install ruby-2.7.2 on Ubuntu 20.04 via rvm:

...
    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.
...
Enter fullscreen mode Exit fullscreen mode

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.

Enter fullscreen mode Exit fullscreen mode

Solution:

This issue was resolved for me by running the following command:

rvm autolibs disable
Enter fullscreen mode Exit fullscreen mode

followed by my initial command:

rvm install 2.7.2
Enter fullscreen mode Exit fullscreen mode

Apparently the autolibs feture that is built into RVM is playing a part in causing this error. More on autolibs in the official RVM docs

Conclusion

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.

If you found this article helpful please share it and make sure to follow me on Twitter and GitHub, connect with me on LinkedIn and subscribe to my YouTube channel.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay