Last night I was trying to run metasploit on my Kali vm. It's a fresh vm and I had just installed the kali-linux-all metapackage after doing apt-get update and apt-get upgrade. When I try to run msfconsole I get the following error message
"Could not find rake-10.4.2 in any of the sources
Run bundle install to install missing gems"
I changed directory to /usr/share/metasploit-framework/ and I ran bundle install. It gave me a message saying not to run this as root, it also said the running version of Bundler is older than the version that created the gem lockfile and that I should upgrade to the latest version of bundler by running 'gem install bundler.' Then it says in red,
"Could not load OpenSSL"
"You must recompile ruby with OpenSSL support or change the sources in your gemfile from 'https' to 'http.' Instructions for compiling with OpenSSL using RVM are available at http://rvm.io/packages/openssl."
First I tried doing to run 'gem install bundler' and I received the following error message,
"Error: Loading command: install (LoadError)
/usr/lib/x86_64-linux-gnu/ruby/2.3.0/openssl.so : symbol SSLv2_method, version OPENSSL_1.0.2d not defined in file libsst.so.1.0.2 with link time reference - /usr/lib/x86_64-linux-gnu/ruby/2.3.0/openssl.so
Error: While executing gem ... (NoMethodError)
undefined method 'invoke_with_build_args' for nil:NilClass"
That didn't help so I went to the link that it refers me to at the end of the message about recompiling Ruby with OpenSSL support, but that's not much help. It talks vaguely about using rvm, but there's no rvm on my system. I tried editing Gemfile.lock and changing the reference to http instead of https but I still received the same error message.
I rolled back the snapshots to right after installation and before I installed kali-linux-all and metasploit worked at that stage so it's definitely breaking something by installing the metapackage. I can't be the only person this has happened to so I'm guessing there's a common solution. Can anyone help me out with getting this resolved so I can get metasploit running again?