找不到有效的 gem 'ruby'
could not find a valid gem 'ruby'
我正在尝试在 Raspberry Pi 模型 B+
上安装 Metasploit
因为我是 Metasploit 和 Gems 环境的新手,所以我一直在关注此 link Installing Metasploit on Raspberry 中的详细信息,在我进行捆绑之前一切正常
root@ raspberrypi: ~/msf3# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
sh: 1: cannot create /2015110401 / null: Directory nonexistent
fatal: Not a git repository(or any of the parent directories): .git
Fetching gem metadata from https: //rubygems.org/.........
Fetching version metadata from https: //rubygems.org/..
Resolving dependencies............................................................................
Using rake 10.4.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.11.2
Using thread_safe 0.3.5
Using tzinfo 0.3.44
Using activesupport 4.0.13
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using rack - test 0.6.3
Using actionpack 4.0.13
Using mime - types 2.6.1
Using mail 2.6.3
Using actionmailer 4.0.13
Using activemodel 4.0.13
Using activerecord - deprecated_finders 1.0.4
Using arel 4.0.2
Using activerecord 4.0.13
Using arel - helpers 2.1.0
Using ffi 1.9.8
Using childprocess 0.5.5
Using diff - lcs 1.2.5
Using gherkin 2.12.2
Using multi_test 0.1.2
Using cucumber 1.3.19
Using rspec - expectations 2.99.2
Using aruba 0.6.2
Using bcrypt 3.1.10
Using bundler 1.10.6
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using xpath 2.0.0
Using capybara 2.4.4
Using coderay 1.1.0
Using thor 0.19.1
Using railties 4.0.13
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.12.3
Using sprockets - rails 2.2.4
Using rails 4.0.13
Using cucumber - rails 1.4.2
Using docile 1.1.5
Using factory_girl 4.5.0
Using factory_girl_rails 4.5.0
Using fivemat 1.2.1
Using rkelly - remix 0.0.6
Using jsobfu 0.2.1
Using json 1.8.3
Using metasm 1.0.2
Installing metasploit - concern 1.0.0
Gem::InstallError: metasploit - concern requires Ruby version >= 2.1.
An error occurred
while installing metasploit - concern(1.0.0), and Bundler
cannot
continue.
Make sure that `gem install metasploit-concern -v '1.0.0'`
succeeds before
bundling.
所以它说我应该安装 metasploit-concern v 1.0.0
然后我尝试使用以下两个代码 gem install metasploit-concern -v '1.0.0'
和 gem install metasploit-concern
ERROR: Error installing metasploit-concern:
metasploit-concern requires Ruby version >= 2.1.
所以我尝试安装 Ruby 2.1 和 ruby
root@raspberrypi:~/msf3# gem install Ruby -v '2.1'
ERROR: Could not find a valid gem 'Ruby' (= 2.1) in any repository
ERROR: Possible alternatives: ruby
root@raspberrypi:~/msf3# gem install ruby
ERROR: Could not find a valid gem 'ruby' (>= 0) in any repository
ERROR: Possible alternatives: ruby
现在你可以看到这是一个漏洞,我被困住了
p.s * 已经安装 ruby-dev
* 尝试每次在 Ruby 和 ruby 之间切换
* 在捆绑时它说的是 (using) 而不是 (installing) 因为我尝试重新运行捆绑包以查看它是否可以工作)
* 我也试过采购 gem sources -a https://rubygems.org
。和 gem sources -a https://rubygems.org
我尽量提供所有可能的信息,也许有用,也许没用..以防万一
非常感谢您的帮助
提前致谢
干杯
班达尔
Ruby 不是 gem。 Ruby 是编程语言。
错误告诉您的是您计算机上的 Ruby 版本(尝试 运行 ruby --version
)低于您尝试的应用程序版本安装要求。
我不是特别熟悉 Metasploit,但您的选择似乎是:
尝试升级已安装的 (apt-get update && apt-get upgrade
),
如果您使用的是存储库中可用的最新版本 Ruby,请尝试使用 Ruby version manager(我的偏好是 rbenv,但每个都有其优点),或
我正在尝试在 Raspberry Pi 模型 B+
上安装 Metasploit因为我是 Metasploit 和 Gems 环境的新手,所以我一直在关注此 link Installing Metasploit on Raspberry 中的详细信息,在我进行捆绑之前一切正常
root@ raspberrypi: ~/msf3# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
sh: 1: cannot create /2015110401 / null: Directory nonexistent
fatal: Not a git repository(or any of the parent directories): .git
Fetching gem metadata from https: //rubygems.org/.........
Fetching version metadata from https: //rubygems.org/..
Resolving dependencies............................................................................
Using rake 10.4.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.11.2
Using thread_safe 0.3.5
Using tzinfo 0.3.44
Using activesupport 4.0.13
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using rack - test 0.6.3
Using actionpack 4.0.13
Using mime - types 2.6.1
Using mail 2.6.3
Using actionmailer 4.0.13
Using activemodel 4.0.13
Using activerecord - deprecated_finders 1.0.4
Using arel 4.0.2
Using activerecord 4.0.13
Using arel - helpers 2.1.0
Using ffi 1.9.8
Using childprocess 0.5.5
Using diff - lcs 1.2.5
Using gherkin 2.12.2
Using multi_test 0.1.2
Using cucumber 1.3.19
Using rspec - expectations 2.99.2
Using aruba 0.6.2
Using bcrypt 3.1.10
Using bundler 1.10.6
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using xpath 2.0.0
Using capybara 2.4.4
Using coderay 1.1.0
Using thor 0.19.1
Using railties 4.0.13
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.12.3
Using sprockets - rails 2.2.4
Using rails 4.0.13
Using cucumber - rails 1.4.2
Using docile 1.1.5
Using factory_girl 4.5.0
Using factory_girl_rails 4.5.0
Using fivemat 1.2.1
Using rkelly - remix 0.0.6
Using jsobfu 0.2.1
Using json 1.8.3
Using metasm 1.0.2
Installing metasploit - concern 1.0.0
Gem::InstallError: metasploit - concern requires Ruby version >= 2.1.
An error occurred
while installing metasploit - concern(1.0.0), and Bundler
cannot
continue.
Make sure that `gem install metasploit-concern -v '1.0.0'`
succeeds before
bundling.
所以它说我应该安装 metasploit-concern v 1.0.0
然后我尝试使用以下两个代码 gem install metasploit-concern -v '1.0.0'
和 gem install metasploit-concern
ERROR: Error installing metasploit-concern:
metasploit-concern requires Ruby version >= 2.1.
所以我尝试安装 Ruby 2.1 和 ruby
root@raspberrypi:~/msf3# gem install Ruby -v '2.1'
ERROR: Could not find a valid gem 'Ruby' (= 2.1) in any repository
ERROR: Possible alternatives: ruby
root@raspberrypi:~/msf3# gem install ruby
ERROR: Could not find a valid gem 'ruby' (>= 0) in any repository
ERROR: Possible alternatives: ruby
现在你可以看到这是一个漏洞,我被困住了
p.s * 已经安装 ruby-dev
* 尝试每次在 Ruby 和 ruby 之间切换
* 在捆绑时它说的是 (using) 而不是 (installing) 因为我尝试重新运行捆绑包以查看它是否可以工作)
* 我也试过采购 gem sources -a https://rubygems.org
。和 gem sources -a https://rubygems.org
我尽量提供所有可能的信息,也许有用,也许没用..以防万一
非常感谢您的帮助 提前致谢
干杯 班达尔
Ruby 不是 gem。 Ruby 是编程语言。
错误告诉您的是您计算机上的 Ruby 版本(尝试 运行 ruby --version
)低于您尝试的应用程序版本安装要求。
我不是特别熟悉 Metasploit,但您的选择似乎是:
尝试升级已安装的 (
apt-get update && apt-get upgrade
),如果您使用的是存储库中可用的最新版本 Ruby,请尝试使用 Ruby version manager(我的偏好是 rbenv,但每个都有其优点),或