nov*_*a26 5 repository hostname resolve git-remote
我正在使用 raspberrypi 终端,在窗口中使用 vnc 查看器,并且我正在尝试克隆 Git 存储库。但我不断收到此错误消息。
ssh: Could not resolve hostname github.com: Temporary failure in name resolution fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Run Code Online (Sandbox Code Playgroud)
我一整天都在尝试解决这个错误,但我仍然无法解决这个错误。如果知道这个问题的解决方案,那就太好了。谢谢
小智 3
可能是你的网络问题,你可以尝试一下:
ping google.com
Run Code Online (Sandbox Code Playgroud)
如果您再次收到此错误,则表明您的网络配置或互联网访问存在问题。
我在ubuntu虚拟机中遇到了这个问题,通过更改路由器设置的互联网网络解决了这个问题。