Forum Thread: 'Metasploit Requires the Bundler Gem to Be Installed' Error

I have been getting this error while running './msfconsole'.

root@keller-desktop:/opt/metasploit-framework# ./msfconsole
* Metasploit requires the Bundler gem to be installed
$ gem install bundler

I have searched the net and performed the following trobleshooting but with no luck.

''root@keller-desktop:/opt/metasploit-framework# gem install bundler
Fetching: bundler-1.5.3.gem (100%)
Successfully installed bundler-1.5.3
1 gem installed
Installing ri documentation for bundler-1.5.3...
Installing RDoc documentation for bundler-1.5.3...'

'root@keller-desktop:/opt/metasploit-framework# bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Installing rake (10.2.2)
Installing i18n (0.6.9)
Installing multijson (1.0.4)
Installing activesupport (3.2.17)
Installing builder (3.0.4)
Installing activemodel (3.2.17)
Installing arel (3.0.3)
Installing tzinfo (0.3.39)
Installing activerecord (3.2.17)
Installing bcrypt (3.1.7)
Installing bcrypt-ruby (3.1.5)
Installing database
cleaner (1.2.0)
Installing diff-lcs (1.2.5)
Installing factorygirl (4.4.0)
Installing fivemat (1.2.1)
Installing json (1.8.1)
Installing pg (0.17.1)
Installing metasploit
datamodels (0.17.0)
Installing mini
portile (0.5.3)
Installing msgpack (0.5.8)
Installing networkinterface (0.0.1)
Installing nokogiri (1.6.1)
Installing packetfu (1.1.9)
Installing pcaprub (0.11.3)
Installing redcarpet (3.1.1)
Installing robots (0.10.1)
Installing rspec-core (2.14.8)
Installing rspec-expectations (2.14.5)
Installing rspec-mocks (2.14.6)
Installing rspec (2.14.1)
Installing shoulda-matchers (2.5.0)
Installing simplecov-html (0.5.3)
Installing simplecov (0.5.4)
Installing timecop (0.7.1)
Installing yard (0.8.7.4)
Using bundler (1.5.3)
Your bundle is complete!
Use `bundle show gemname` to see where a bundled gem is installed.
Post-install message from bcrypt-ruby:

#######################################################

The bcrypt-ruby gem has changed its name to just bcrypt. Instead of
installing `bcrypt-ruby`, you should install `bcrypt`. Please update your
dependencies accordingly.

#######################################################"

I have also tried " gem update --system", "sudo apt-get install rubygems"
well basically eveything i could think of. The result is still the same.

Can someone help me with this issue.

5 Responses

I have found another way to fix it, but it's not the best; if you try to install the "metasploit-framework" ---> $ apt-get install metasploit-framework it will give you an error about some ".lock" folder.

But if you take the source code of this famous ".lock" folder from --> github.com/rapid7/metasploit-framework/blob/master/Gemfile.lock

and you remplace it with the new one token from the link under /usr/share/metasploit-framework/Gemfile.lock
then try $apt-get install metasploit-framework
it will defenetly work.

Okay now i have another issue. While firing up Metasploit it shows an error that the factorygirl is missing.

So as suggested i tried to run 'bundle install'

so i checked my ruby and gem versions.

tried to install factorygirl version '4.2.0' individually

NOW WHAT DID I MISS. Why is METASPLOIT toying with me like this.....???
HELPPPPPP.....

root@kali:/usr/share/metasploit-framework# msfconsole
Could not find actionpack-4.0.13 in any of the sources
Run `bundle install` to install missing gems.
root@kali:/usr/share/metasploit-framework#

I am getting this error, please help. :(

Had the same issue with gem and bundle on Ubuntu 18.04.1 LTS - I solved the issue by issuing this command
sudo gem install -g

It takes a while to install so be patient as it does seem like it is not working.
Metaspoilt install is tricky - now for the installation of Armitage.

Share Your Thoughts

  • Hot
  • Active