error:: could not find rake-11.1.2 in any of the sources run `bundle install` to install missing gems

8,338

Solution 1

First try apt-get install ruby. Then if you still can't connect do apt-get install openssl, then go to cd /usr/share/metasploit-framework and type bundle install, thats it, now msfconsole should work properly. This will install the missing gems.

Solution 2

This should indicate your problem:

could not locate gemfile or .bundle/directory. – Linuxuser001 Jun 22 at 8:07

It's looking for a program that's just not there, you need to install Ruby:

apt-get -f install Ruby

Share:
8,338

Related videos on Youtube

Linuxuser001
Author by

Linuxuser001

Updated on September 18, 2022

Comments

  • Linuxuser001
    Linuxuser001 over 1 year

    I get the above error after i use msfupdate for the first time and type msfconsole. After installing guest additions on kali linux. I googled it and came across a similiar question on reddit but had no answer. I tried apt-get install bundle install but it did not work. I also searched unix and linux but I did not find this question.

    • user161889
      user161889 almost 8 years
      Not sure if any of this is helpful, but the person doing the helping here seems very knowledgeable & maybe some of this will point you in the right direction even if it's slightly different?
    • Franklin Yu
      Franklin Yu almost 8 years
      Did you try running bundle install? Not apt-get install bundle install, just bundle install at the root of the project.
    • Linuxuser001
      Linuxuser001 almost 8 years
      Yes I tried bundle install. It says running as root will break the system and could not locate gemfile or .bundle/directory.
    • Franklin Yu
      Franklin Yu almost 8 years
      Hmm... How about running that as a non-root user? In addition, where did you run that?
    • Linuxuser001
      Linuxuser001 almost 8 years
      I ran it in kali linux terminal, I don't know how to log out of root in kali because it is root by default, in say ubuntu you can use control d or exit but that doesnt work.
    • Franklin Yu
      Franklin Yu almost 8 years
      I meant, in what directory did you run the command? In addition, what's the output of rake --version and type rake?
    • Linuxuser001
      Linuxuser001 almost 8 years
      I ran it in /root directory. The output of rake --version is rake, version 10.4.2. And output of type rake is rake is hashed (/usr/bin/rake)
    • Franklin Yu
      Franklin Yu almost 8 years
  • AReddy
    AReddy almost 8 years
    explain your answer why & how ?
  • Linuxuser001
    Linuxuser001 almost 8 years
    I tried it, it didn't work...pastebin.com/exX1YsbV
  • datu-puti
    datu-puti over 7 years
    This worked for me after a msfupdate that caused the OP's problem. I had to also install zlib-dev (sudo apt-get install libz-dev) for a dependency (nokogiri) to compile and install though.
  • datu-puti
    datu-puti over 7 years
    This is basically a duplicate of hello moto's solution above, which actually worked for me.