Search code examples
rubygemsvagrantubuntu-18.04gemspecs

how to fix Invalid gemspec


I found a bug when checking the vagrant version in ubuntu terminal It returns these following error:

Invalid gemspec in [/usr/share/rubygems-integration/all/specifications/rbnacl-libsodium.gemspec]: stack level too deep

Solution

  • Just update your vagrant that works. Download direct from the vagrant website and don't use the version of ubuntu repository apt-get install vagrant.

    The ubuntu version is outdated. Solved from: github issues