Issue
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?
Solution
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
Answered By - Collega