目指せホワイトハッカー

目指せホワイトハッカー

ホワイトハッカーを目指し勉強中であり、自分の頭の整理のために纏めるのが主目的。ホワイトハッカー以外にも気が向いたら徒然なるままに。

Could not find a valid gem bundler エラー対応 on Kali linux 2020

Could not find a valid gem bundler エラー対応 on Kali linux 2020 備忘録


環境

PC:Kali linux 2020.3 on Virtual Box in Windows10

そもそもgem/bundlerとは

pikawaka.com

gem install bundler実行時のエラー内容

gem install bundler
ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository
ERROR: Possible alternatives: wunder, bundler, bunker, bender, bundler

gem update --system実行時のエラー内容

gem update --systemr
ERROR: While executing gem...(Gem::RemoteFetcher::UnknownHostError)
time out (https://api.rubygems.org/specs4.8.gz)

gem update --systemエラー対応方法

IPv6を無効

①sysctl.conf を開く

$ sudo vi /etc/sysctl.conf

②以下を追記

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

③sysctl.conf を保存して閉じる
④設定を反映

$ sudo sysctl -p

ggem install bundlerエラー対応方法

gemのアップデート

gem update --system