红联Linux门户
Linux帮助

git push orgin master不能解析域名的解决方法

发布时间:2016-01-11 15:33:08来源:linux网站作者:scue

错误信息:

$ git push origin master

ssh: Could not resolve hostname bitbucket.org: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


解决方法:

$  vi /etc/resolv.conf # 修改为

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 114.114.114.114 8.8.8.8

PS:114.114.114.114 是腾讯DNS Server,8.8.8.8 是Google DNS Server。


关于real210开发板linux系统可能无法解析域名的问题解决方法:http://www.linuxdiyf.com/linux/16437.html

Linux无法解析域名的解决办法:http://www.linuxdiyf.com/linux/504.html

GNU Linux解析域名的三种命令及用法:http://www.linuxdiyf.com/linux/16321.html

ubuntu下暂时不能解析域名“us.archive.ubuntu.com”:http://www.linuxdiyf.com/linux/15936.html

ubuntu不能解析域名No address associated with hostname:http://www.linuxdiyf.com/linux/14009.html