Skip to content

vagrant up. `RubyGems' were not loaded. #13512

@levaconline

Description

@levaconline

I'm not sure is it related to Vagrant or to Ruby. Crush happened after full system update (Arch linux)

Debug output

vagrant up
RubyGems' were not loaded. /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/bin/vagrant:89:in

': uninitialized constant Gem::Specification (NameError)

vagrant_spec = Gem::Specification.find_all_by_name("vagrant").detect do |spec|
^^^^^^^^^^^^^^^

Expected behavior

Actual behavior

Reproduction information

Vagrant version

vagrant -v
`RubyGems' were not loaded.
Vagrant 2.4.1

Host operating system

hostnamectl
Static hostname: asus-laptop
Icon name: computer-laptop
Chassis: laptop 💻
Operating System: Arch Linux
Kernel: Linux 6.11.5-arch1-1
Architecture: x86-64
Hardware Vendor: ASUSTeK COMPUTER INC.
Hardware Model: N750JK
Firmware Version: N750JK.203
Firmware Date: Wed 2014-05-21
Firmware Age: 10y 5month 3d

Guest operating system

Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-91-generic x86_64)

Steps to reproduce

Vagrantfile

# Copy-paste your Vagrantfile here. Remove any sensitive information such as passwords, authentication tokens, or email addresses.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions