repository - ssh : Could not resolve hostname github. com 错误

标签 repository hostname git-remote resolve

我在窗口中使用 vnc 查看器使用 raspberrypi 终端,我正在尝试克隆 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.

我一整天都在尝试解决这个错误,但我仍然无法解决这个错误.. 知道这个问题的解决方案会很棒。谢谢

最佳答案

也许是因为您的互联网访问,您可以尝试:

ping google.com
如果再次出现此错误,则说明您的网络配置或 Internet 访问存在问题。
我在 ubuntu 虚拟机中遇到了这个问题,由于路由器设置,通过改变互联网网络解决了这个问题。

关于repository - ssh : Could not resolve hostname github. com 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60490170/

相关文章:

maven-2 - Maven - 如何/在哪里发布工件

java - 在 Java 中获取主机名的推荐方法

Git:探索远程中的对象

testing - 在线库报告的错误

asp.net-mvc - ASP.NET MVC : BLL and DAL to Repository design

gradle - 从存储库下载并作为Gradle构建的第一步执行jar

git - 致命的 : unable to access cannot resolve host gitlab error when using HTTPS git repository

Bash 无法回显嵌入变量中的 $(hostname)

Git:使用来自不同远程的两个具有相同名称的分支

git - 将远程存储库映射到包含文件的现有目录