msf启动失败(提示:/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem

2022-02-19 09:38:17 浏览数 (1)

msf启动时报错

在新版kali里会出现这种问题

启动提示

/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated Could not find io-console-0.5.6 in any of the sources Run bundle install to install missing gems

解决方案

先把gem更新一下

sudo gem update --system 再安装bundler sudo gem install bundler -v 2.1.4 安装需要的依赖 sudo apt-get install ruby-dev sudo apt-get install postgresql sudo apt-get install libpcap-dev sudo apt-get install oracle* sudo apt-get install libsqlite3-dev 进入到metasploit目录,安装bundle cd /usr/share/metasploit-framework/ bundle install 执行完成后,再次启动可成功

0 人点赞