Metasploit crashed after upgrade

unai abrisketa sanchez picture unai abrisketa sanchez · Jan 28, 2021 · Viewed 14.9k times · Source

I have recently upgraded metasploit framework and after doing it, when I try to launch it I get the next error:

msfconsole
Unable to find a spec satisfying metasploit-framework (>= 0) in the set. Perhaps the lockfile is corrupted?
Run bundle install to install missing gems.

I have unistalled it and reinstall but the problem continues. Any suggestion?

Answer

Gerrit picture Gerrit · Feb 1, 2021

I had the same problem, the following fixed it:

sudo gem install bundler -v 2.2.4

sudo msfdb reinit
sudo msfconsole

Just be aware that the bundler version may have updated since this was posted and therefore may need to be changed. Check what version you're currently running before making these changes.

https://github.com/rapid7/metasploit-framework/issues/11597