简体   繁体   中英

Getting error (Gem::RemoteFetcher::UnknownHostError) while installing Rails or gem update

I want to install Ruby on Rails in my laptop using Ubuntu 18.04 LTS. I've installed Ruby, but when I trying to install Rails with sudo gem install rails , i'm getting error message

ERROR:  While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/quick/Marshal.4.8/websocket- extensions-0.1.3.gemspec.rz)

Can anyone help me?

Disable IPv6 and retry. It should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM