- Kali Linux 2020.1a系統(tǒng)安裝后,啟動msfconsole將出現(xiàn)如下錯誤:
root@kali:~# msfconsole
[*] Bundler failed to load and returned this error:
'cannot load such file -- bundler / setup'
[*] You may need to uninstall or upgrade bundler
- 由于默認安裝的bundler為最新版本2.1.4龄捡。msfconsole依賴的版本為1.17.3汁果,所以需要安裝舊版本。執(zhí)行如下命令:
gem install bundler:1.17.3
- 如果超時報錯
執(zhí)行g(shù)em install bundler后報錯:
ERROR: Could not find a valid gem ‘bundler’ (>= 0), here is why:
Unable to download data from https://ruby.taobao.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://ruby.taobao.org/specs.4.8.gz)
- 檢查現(xiàn)在用的源
gem sources -l
- 添加新的源,刪除原來的舊源
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
- 確保只有一個源
gem sources -l