Environment: CentOS 7.5(1804)
on VirtualBox on mac
$
when running gem update --system
ERROR: While executing gem...(Gem::RemoteFetcher::UnknownHostError)
time out (https://api.rubygems.org/specs4.8.gz)
The message appears.
The ruby version is 2.5.1 (I also tried 2.3.0)
By the way, you can ping api.rubygems.org.
Thank you for your cooperation.
ruby-on-rails rubygems
I was able to successfully install it by disabling IPv6 as you told me.
[Method]
①Open sysctl.conf
$ sudo vi/etc/sysctl.conf
以下 Add the following
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6 = 1
sSave and close sysctl.conf
設定 Reflect settings
$ sudo-p
IPvVerify that IPv6 does not exist
$ ip a
ggem update --system
That's all I was able to update.
© 2024 OneMinuteCode. All rights reserved.