Metasploit 升级后崩溃

Metasploit crashed after upgrade

我最近升级了 metasploit 框架,升级后,当我尝试启动它时出现下一个错误:

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.

我已经卸载并重新安装,但问题仍然存在。有什么建议吗?

最终对我有用的是更新我的捆绑器,然后 运行 捆绑安装:

/usr/share/metasploit-framework$ sudo gem install bundler:2.2.5
/usr/share/metasploit-framework$ sudo bundle install

我也遇到过。但我的解决方案更容易。我有一段时间没有接触 kali,所以我进行了所有升级,因此我开始输入“sudo su”。所以当我启动 msfconsole 时,我得到了完全相同的错误消息。输入“exit”退出 root 并重试...对我有用。

我在执行 sudo apt upgrade 后遇到了同样的问题。

要解决这个问题,我必须做 sudo apt update && sudo apt full-upgrade -y

我从这里得到了这个解决方案 https://www.reddit.com/r/Kalilinux/comments/l4zi6i/hey_everyone/

我遇到了同样的问题,下面解决了它:

sudo gem install bundler -v 2.2.4

sudo msfdb reinit
sudo msfconsole

请注意,打包程序版本可能已更新,因此可能需要更改。在进行这些更改之前,请检查您当前 运行 的版本。

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