啟動msfconsole報錯Unable to find a spec satisfying metasploit-framework (>= 0) in the set. Perhaps the lockfile is corrupted?


在Kali上啟動msfconsole,報錯:

WARN: Unresolved or ambiguous specs during Gem::Specification.reset:
      io-console (~> 0.5)
      Available/installed versions of this gem:
      - 0.5.9
      - 0.5.6
WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>'
Please report a bug if this causes problems.
Unable to find a spec satisfying metasploit-framework (>= 0) in the set. Perhaps the lockfile is corrupted?
Run `bundle install` to install missing gems.

上網一搜

gem update --system

無效,然后我留意前面報錯的提示語Perhaps the lockfile is corrupted?,再結合我之前的文章

cd /usr/share/metasploit-framework/
cat Gemfile.lock |grep -A 1 "BUNDLED"

得到

BUNDLED WITH
   2.2.5

gem list |grep bundle

得到

bundler (2.1.4)

所以嘗試更新下bundler的版本

gem install bundler -v 2.2.5

再次運行msfconsole發現可行。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM