I’m running vagrant v2.2.6 on Ubuntu 20.04.6 and am trying to get the gusztavvargadr/windows-10 box to run:
$ vagrant box list
gusztavvargadr/windows-10 (virtualbox, 2202.0.2409)
but vagrant up just produces a stack trace which ends with:
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require’: cannot load such file – winrm (LoadError)
Reading about this issue, I am advised to do this:
$ vagrant plugin install winrm
Installing the ‘winrm’ plugin. This can take a few minutes…
Vagrant failed to properly resolve required dependencies. These
errors can commonly be caused by misconfigured plugin installations
or transient network issues. The reported error is:
nori requires Ruby version >= 3.0. The current ruby version is 2.7.0.0.
So at this point I installed ruby v3.1.6 using rbenv but this changed nothing. However I read that vagrant bundles its own version of ruby so installing a new ruby version using rbenv (or, equally, installing a newer system ruby) is not going to fix it! But I find it hard to believe that vagrant comes with its own ruby because a ruby install is pretty huge and vagrant is not! Moreover, in the list of installed files for vagrant, got by doing:
dpkg -L vagrant vagrant-libvirt
I see no sign of a ruby interpreter as such. So I’m very confused…
Am I wasting my time with this? And if so, why?
Thanks in advance for any help.
PS. Tried a different box, Box ‘designerror/windows-7’, which didn’t get through the download Well, it did, but the checksum of the download then failed, stack trace ends:
1: from /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/util/file_checksum.rb:30:in `initialize'
/usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/util/file_checksum.rb:65:in `load_digest’: uninitialized constant FileChecksum::Errors (NameError)
Did you mean? Errno
Is it worth attempting another download? Very unusual nowadays for downloads to be corrupt. Is the problem here that my OS is just too old for running this stuff?