Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metasploit requires the Bundler gem to be installed #11597

Closed
7h3pr0xy opened this issue Mar 20, 2019 · 37 comments
Closed

Metasploit requires the Bundler gem to be installed #11597

7h3pr0xy opened this issue Mar 20, 2019 · 37 comments

Comments

@7h3pr0xy
Copy link

root@root:/usr/share/metasploit-framework# msfconsole
[*] Metasploit requires the Bundler gem to be installed
$ gem install bundler

i have already tried $ gem install bundler and bundle install

but still getting the issue (note : this is not from termux ..... it is an error from kali linux)

@mnemonic-re
Copy link

Yep same here. No termux, just plain old VMWare update.

After doing (today) apt-get update && upgrade I get the same (msf_5.0.11).

I also did a bundle install and got Bundle complete! 14 Gemfile dependencies, 133 gems now installed but msfconsole still wont start:

root@kali22:/usr/share/metasploit-framework# ./msfconsole
[*] Metasploit requires the Bundler gem to be installed
$ gem install bundler

@awam07
Copy link

awam07 commented Mar 20, 2019

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

@mnemonic-re
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

Works. Thank you very much.

@busterb
Copy link
Member

busterb commented Mar 20, 2019

If you still have an issue, please file in the Kali bugtracker. Thanks!

@busterb busterb closed this as completed Mar 20, 2019
@furkangundogdu
Copy link

Ben hala aynı hatayı alıyorum

@kdrypr
Copy link

kdrypr commented Oct 29, 2019

We got still same error with @furkangundogdu

@berisingh
Copy link

In Gemfile:
metasploit-framework was resolved to 5.0.75, which depends on
metasploit-credential was resolved to 3.0.4, which depends on
metasploit_data_models was resolved to 3.0.10, which depends on
pg

@mukhdoom
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

Also Works For Me Thanks...

@eliudos
Copy link

eliudos commented Feb 18, 2020

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

mine worked too thanks

@davey500
Copy link

sorry if its noob question gone to usr/share/metasploit framework where do you write the lines thanks

@graypwn
Copy link

graypwn commented Feb 19, 2020

sorry if its noob question gone to usr/share/metasploit framework where do you write the lines thanks

directly into the terminal in the /usr/share/metasploit-framework directory

@eliudos
Copy link

eliudos commented Feb 20, 2020 via email

@eliudos
Copy link

eliudos commented Feb 20, 2020 via email

@rashedulsizan
Copy link

rashedulsizan commented Feb 22, 2020

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

I tried this, but it is showing
''ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.5.0 directory."

Please Help.....

@bcoles
Copy link
Contributor

bcoles commented Feb 22, 2020

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

I tried this, but it is showing
''ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.5.0 directory."

Please Help.....

@rashedulsizan you do not have permission to write to the gems directory.

sudo gem update --system

@rashedulsizan
Copy link

rashedulsizan commented Feb 22, 2020

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

I tried this, but it is showing
''ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.5.0 directory."
Please Help.....

@rashedulsizan you do not have permission to write to the gems directory.

sudo gem update --system

i updated by "sudo gem update --system"
but it is still showing "You don't have write permissions for the /var/lib/gems/2.5.0 directory."
what should i do?

@eliudos
Copy link

eliudos commented Feb 23, 2020 via email

@Nangomafia
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

Thanks it works

@jhonsontroy
Copy link

when i enter gem install bundler command
showing
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz).................plz help

@jhonsontroy
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

wheni try it
showing
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)...........................plz help

@gwillcox-r7
Copy link
Contributor

@jhonsontroy Your connection to api.rubygems.org is timing out. Check your internet connection or wait a few minutes and then try again.

@huyenphung
Copy link

huyenphung commented May 11, 2020

[*] You may need to uninstall or upgrade bundler
fix:
sudo gem install bundler:1.17.3
msfdb reinit

@ghost
Copy link

ghost commented Jul 19, 2020

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

Thanks!!

@alzaki-clgx
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

Great idea, 'execute' would reduce confusion (instead of 'write')

@rohantakke
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

Thanks. It worked !!

@Gokhan406
Copy link

acemice sorusu usr / share / metasploit çerçevesine gittiyse özür dilerim, satırları nereye yazıyorsunuz teşekkürler

dosya sistem bölümüne gelip usr klasörüne girin ardından share klasörüne ve metasploit-frame yazın arama yerine ardından gem install bundler ve bundle install ve en son gem update --system yazın

you can translate it into your tongue ;)

@BlurryAngel
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

thx

@frankie-ship-it
Copy link

If you are still getting permission errors gem install bundler:2.2.5

@Sohailtr18
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

u r great bhai

@ghost
Copy link

ghost commented Jun 30, 2021

root@root:/usr/share/metasploit-framework# msfconsole
[*] Metasploit requires the Bundler gem to be installed
$ bundle install
$ bundle update nokogiri

@Elwono468
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

It didn't work when i write 'bundle install' it shows me "pcaprub-0.13.0 requires ruby version ~> 2.0,
which is incompatible with the current version,
ruby 3.0.2p107" help me

@gwillcox-r7
Copy link
Contributor

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

It didn't work when i write 'bundle install' it shows me "pcaprub-0.13.0 requires ruby version ~> 2.0,
which is incompatible with the current version,
ruby 3.0.2p107" help me

Metasploit is not compatible with Ruby 3 yet so please don't try it as it will not work with the current code. We are working on support for Ruby 3 but it is not ready yet. If you want to use the latest supported version of Ruby, please use the latest release of the 2.7.x branch of Ruby.

@emmabukah
Copy link

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

I tried this, but it is showing
''ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.5.0 directory."
Please Help.....

@rashedulsizan you do not have permission to write to the gems directory.

sudo gem update --system

i updated by "sudo gem update --system"
but it is still showing "You don't have write permissions for the /var/lib/gems/2.5.0 directory."
what should i do?

gem update --system

@mdnafeedff
Copy link

WHN I USE THIS ERROR COMES
Traceback (most recent call last):
16: from /data/data/com.termux/files/usr/bin/msfconsole:17:in <main>' 15: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require'
14: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require' 13: from /data/data/com.termux/files/home/metasploit-framework/config/boot.rb:26:in <top (required)>'
12: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require' 11: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require'
10: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/setup.rb:10:in <top (required)>' 9: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/ui/shell.rb:88:in silence'
8: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/ui/shell.rb:136:in with_level' 7: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/setup.rb:10:in block in <top (required)>'
6: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler.rb:149:in setup' 5: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/runtime.rb:22:in setup'
4: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/shared_helpers.rb:76:in set_bundle_environment' 3: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/shared_helpers.rb:297:in set_bundle_variables'
2: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/rubygems_integration.rb:223:in bin_path' 1: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems.rb:254:in bin_path'
/data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems.rb:277:in find_spec_for_exe': Could not find 'bundler' (2.3.7) required by your /data/data/com.termux/files/home/metasploit-framework/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run bundle update --bundler. To install the missing version, run gem install bundler:2.3.7`

AFTER I INSTALL THIS BUNDLER:2.3.7 AND I AGAIN KF I RUN THE SAME PROBLEM COMING BUNDLER:2.3.7 NOT INSTALLED

@gwillcox-r7
Copy link
Contributor

WHN I USE THIS ERROR COMES Traceback (most recent call last): 16: from /data/data/com.termux/files/usr/bin/msfconsole:17:in <main>' 15: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require' 14: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require' 13: from /data/data/com.termux/files/home/metasploit-framework/config/boot.rb:26:in <top (required)>' 12: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require' 11: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require' 10: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/setup.rb:10:in <top (required)>' 9: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/ui/shell.rb:88:in silence' 8: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/ui/shell.rb:136:in with_level' 7: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/setup.rb:10:in block in <top (required)>' 6: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler.rb:149:in setup' 5: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/runtime.rb:22:in setup' 4: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/shared_helpers.rb:76:in set_bundle_environment' 3: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/shared_helpers.rb:297:in set_bundle_variables' 2: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/rubygems_integration.rb:223:in bin_path' 1: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems.rb:254:in bin_path' /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems.rb:277:in find_spec_for_exe': Could not find 'bundler' (2.3.7) required by your /data/data/com.termux/files/home/metasploit-framework/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run bundle update --bundler. To install the missing version, run gem install bundler:2.3.7`

AFTER I INSTALL THIS BUNDLER:2.3.7 AND I AGAIN KF I RUN THE SAME PROBLEM COMING BUNDLER:2.3.7 NOT INSTALLED

Termux is not a supported platform. See #11023 and https://wiki.termux.com/wiki/FAQ#Where_are_Metasploit_and_Hydra_packages

@mdnafeedff
Copy link

After making payload and installing
I gave exploit
It comes handler failed to bind ip adress 0.0.0.0.8080 like this
Help me in this

@bcoles
Copy link
Contributor

bcoles commented Feb 15, 2022

This thread has gone off the rails. Locking.

The Metasploit issue tracker is for tracking issues with Metasploit.

If you have an issue, create a new issue and be sure to provide all necessary information in the issue template.

If you have a question, try Slack: https://www.metasploit.com/help

@rapid7 rapid7 locked as off-topic and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests