Github error – fatal: Unable to look up github.com (port 9418) (Name or service not known)
来源:互联网 发布:淘宝收藏在线制作 编辑:程序博客网 时间:2024/05/17 23:17
was trying to add a gem to a Rails3 app gemfile directing it to a git repo by:
1
gem 'example', :git => "git://github.com/gituser/example.git"
While bundle install, I got the error message:
1
fatal: Unable to look up github.com (port 9418) (Name or service not known)
I tried git clone -q git://github.com/gituser/example.git or rails plugin install git://github.com/gituser/example.git, still I got the same error message. It seems that Github has recently updated DNS and the changes haven’t propagated yet. You can use a workaround:
Run ping github.com and read the current IP
Go to /etc/hosts on your Rails server (assuming its Linux) and add the following line:
1
207.97.227.239 github.com wiki.github.com gist.github.com assets0.github.com assets1.github.com assets2.github.com assets3.github.com
where instead of 207.97.227.239 type it the current Github IP
It is suggested to remove this line once the DNS is up and working again.
转自:http://blog.brzezinka.eu/webmaster-tips/rails3/github-error-fatal-unable-to-look-up-github-com-port-9418-name-or-service-not-known
0 0
- Github error – fatal: Unable to look up github.com (port 9418) (Name or service not known)
- Github error – fatal: Unable to look up github.com (port 9418) (Name or service not known)
- ssh: Could not resolve hostname github.com: Name or service not known; fatal: The remote end hung up
- 获取Android源码时如何解决【fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not kn
- Unable to resolve address ' ' service ' ': Name or service not known
- Unable to resolve address ' ' service ' ': Name or service not known
- git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
- git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
- fatal:unable to access '...github.com/.../.git':Failed to connect to github.com port 443: Timed out
- fatal: unable to access 'https://github.com/***': Failed to connect to github.com port 443:Timed out
- fatal: unable to access '' :Failed to connect to github.com port 443: Timed out
- [Git]fatal: unable to access ...: Failed to connect to github.com port 443: Timed out
- [Git]fatal: unable to access ...: Failed to connect to github.com port 443: Timed out
- fatal: unable to access 'https://github.com/...': Could not resolve host: github.com
- )Name or service not known: mod_unique_id: unable to find IPv4 addr ess of "wb_three_cgi20"
- apache启动失败:Name or service not known: mod_unique_id: unable to find IPv4 address of "narkii"
- fatal: unable to access 'https://github.com/gmarik/Vundle.vim.git/': Could not resolve host: github.
- Name or service not known
- [wordpress搬家]未来几天连续奋战android了
- svn简介与使用
- springmvc+ext只能上传一张图片
- 解决Xcode删除文件后missing file警告
- iOS 网络封装
- Github error – fatal: Unable to look up github.com (port 9418) (Name or service not known)
- VC 所有的窗口样式
- TortoiseGit提交每次都需要输入用户名密码解决方法
- java string类
- iOS AVAudioPlayer播放不了android录制的音频
- 大数据时代CIO和CTO们必备五大硬功
- [wordpress搬家]Android Hack — BLE
- JAVA设计模式(四)——单例模式
- Android开发:Android的ListView下拉刷新,基于慕课教程的改进版