fatal: unable to access '': Could not resolve host: github.com - git clone失败
2020-01-14 19:11
1071 查看
今天在服务器使用
git clone命令时报错:
Cloning into 'GLACNet'... fatal: unable to access 'https://github.com/tkim-snu/GLACNet.git/': Could not resolve host: github.com
然后执行命令
ping github.com,也失败了:
ping: unknown host github.com
解决方案
修改
/etc/hosts文件:
sudo vim /etc/hosts
进入vim编辑该文件,在最后一行加入:
192.30.253.112 github.com
wq保存退出,再使用 git 命令就可以了。
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- linux:fatal: unable to access ' ':Could not resolve host: github.com解决方案
- fatal: unable to access 'https://github.com/gmarik/Vundle.vim.git/': Could not resolve host: github.
- 问题 unable to access 'https://github.com/torch/env.git/': Could not resolve host: github.com
- unable to access 'https://github.com/apache/incubator-rocketmq.git/': Could not resolve host: github
- fatal: unable to access 'https://github.com/...': Could not resolve host: github.com
- git之fatal: unable to access 'https://git.oschina.net/pcmpcs/library.git/': Could not resolve host
- Git错误fatal: unable to access 'https://github.com/****.git/': Couldn't resolve host 'github.com'
- git clone时出现ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from
- 解决github fatal: unable to access 'xxxx': Could not resolve host:xxx的问题
- mac 配置 ssh 到git (Could not resolve hostname github.com, Failed to connect to github.com port 443 Operation timed out)
- hexo提交报错 unable to access 'https://github.com/*/*.github.io.git/': Couldn't resolve host 'github.com
- git clone https://github.com/azkaban/azkaban.git Cloning into 'azkaban'... fatal: unable to access '
- 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
- git clone出现fatal: unable to access 'https://': SSL...
- git 出现错误 Could not resolve host: github.com
- git clone出现fatal: unable to access 'https://': SSL certificate problem: self signed certificate in
- git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
- could not resolve host: github.com 问题解决办法
- 遇到从github git clone不下来,报Permission denied (publickey). fatal: Could not read from remote repository.