Results 1 to 3 of 3

Thread: Installing Kali-All Metapackage breaks msfconsole

  1. #1
    Join Date
    2014-Apr
    Posts
    4

    Installing Kali-All Metapackage breaks msfconsole

    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?

  2. #2
    Join Date
    2014-Feb
    Posts
    309
    Instead of just apt get update and apt get upgrade, run apt update apt dist-upgrade.

  3. #3
    Join Date
    2014-Apr
    Posts
    4
    Did that and ran apt-get upgrade again after installing the metapackage and now it's working, thanks!

Similar Threads

  1. Installing Kali Linux .iso on VirtualBox; metapackage problem
    By csmith491 in forum Installing Archive
    Replies: 1
    Last Post: 2022-08-14, 13:57
  2. Installing Kali metapackage that requires a GUI for interaction
    By altjx in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-12-18, 20:00
  3. Installing Kali metapackage (SDR Tools) Breaks apt-get (libqt4 related)
    By TacticalChaos in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-08-17, 19:49
  4. Installing kali-linux-full metapackage..
    By BazzaBoiii in forum Installing Archive
    Replies: 0
    Last Post: 2014-09-11, 21:56
  5. Kali Update Breaks the POSTGRESQL Metapackage
    By amorandi in forum Installing Archive
    Replies: 1
    Last Post: 2013-05-10, 19:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •