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
Related videos on Youtube
Author by
Linuxuser001
Updated on September 18, 2022Comments
-
Linuxuser001 over 1 year
I get the above error after i use
msfupdate
for the first time and typemsfconsole
. After installing guest additions on kali linux. I googled it and came across a similiar question on reddit but had no answer. I triedapt-get install bundle install
but it did not work. I also searched unix and linux but I did not find this question.-
user161889 almost 8 yearsNot 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 almost 8 yearsDid you try running
bundle install
? Notapt-get install bundle install
, justbundle install
at the root of the project. -
Linuxuser001 almost 8 yearsYes I tried
bundle install
. It says running as root will break the system and could not locate gemfile or .bundle/directory. -
Franklin Yu almost 8 yearsHmm... How about running that as a non-root user? In addition, where did you run that?
-
Linuxuser001 almost 8 yearsI 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 almost 8 yearsI meant, in what directory did you run the command? In addition, what's the output of
rake --version
andtype rake
? -
Linuxuser001 almost 8 yearsI ran it in /root directory. The output of
rake --version
is rake, version 10.4.2. And output oftype rake
is rake is hashed (/usr/bin/rake) -
Franklin Yu almost 8 yearsLet us continue this discussion in chat.
-
-
AReddy almost 8 yearsexplain your answer why & how ?
-
Linuxuser001 almost 8 yearsI tried it, it didn't work...pastebin.com/exX1YsbV
-
datu-puti over 7 yearsThis 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 over 7 yearsThis is basically a duplicate of hello moto's solution above, which actually worked for me.