Execution environment: Winodows 10 Pro (64bit) Vagrant 2.2.14 Ubuntu 16.04.6 LTS Docker 18.09.7 ruby:ruby 2.7.2p137 To install Ruby's sinatra library in Docker's content When I run bundle install, I get the following error:
Fetching source index from https://rubygems.rog/
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.rog/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.rog/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.rog/
Could not fetch specs from https://rubygems.rog/
Get the information that it was solved by executing the following command
gem update --system
Run the installation again. There is no change.
I ran wget https://api.rubygems.org/specs.4.8.gz and tried to download it, but it was successful. I looked up the IP address of the domain.
root@dfed40fdb477:/var/www# host api.rubygems.org api.rubygems.org is an alias for rubygems.org. rubygems.org has address 151.101.2.132 rubygems.org has address 151.101.130.132 rubygems.org has address 151.101.194.132 rubygems.org has address 151.101.66.132 rubygems.org has IPv6 address 2a04:4e42::644 rubygems.org has IPv6 address 2a04:4e42:200::644 rubygems.org has IPv6 address 2a04:4e42:600::644 rubygems.org has IPv6 address 2a04:4e42:400::644 rubygems.org mail is handled by 10 mxb.mailgun.org. rubygems.org mail is handled by 10 mxa.mailgun.org.
I wrote it in the host file.
151.101.2.132 api.rubygems.org 151.101.130.132 api.rubygems.org 151.101.194.132 api.rubygems.org 151.101.66.132 api.rubygems.org
2a04:4e42::644 api.rubygems.org 2a04:4e42:200::644 api.rubygems.org 2a04:4e42:600::644 api.rubygems.org 2a04:4e42:400::644 api.rubygems.org
The installation was successful.
Recommended Posts