相关疑难解决方法(0)

WSL Ubuntu(适用于 Linux 的 Windows 子系统)上没有互联网连接

最近我在我的 Windows 机器上安装了WSL Ubuntu 18.04,但似乎没有任何工作正常,因为我无法访问互联网
我尝试了一些命令并sudo apt update说“连接失败”并且ping google.com字面上需要永远,正如您在此屏幕截图中看到的那样:


我还检查nano /etc/resolv.conf并确保名称服务器是正确的,完全禁用了卡巴斯基及其防火墙,禁用了 Hyper-V,重新安装了几次 WSL,甚至禁用了 Windows Defender。没有任何帮助。

那么你有什么想法可能是这里的问题吗?

connection ubuntu windows-subsystem-for-linux failed-to-connect

43
推荐指数
10
解决办法
6万
查看次数

无法解析主机名,ping工作

我已经安装了RasPi Raspbian,现在我无法执行ssh或git clone,只看到本地主机名正在解析.然而ping工作:

pi ~ $ ssh test.com
ssh: Could not resolve hostname test.com: Name or service not known

pi ~ $ git clone gitosis@test.com:test.git
Cloning into 'test'...
ssh: Could not resolve hostname test.com: Name or service not known
fatal: The remote end hung up unexpectedly

pi ~ $ ping test.com
PING test.com (174.36.85.72) 56(84) bytes of data.
Run Code Online (Sandbox Code Playgroud)

我通过使用http://github.com代替来解决github的问题git://github.com,但这不正常,我想指出问题所在.

谷歌搜索类似的问题,但提供的解决方案是拼写错误纠正,或添加域到主机文件.

networking

9
推荐指数
1
解决办法
4万
查看次数

从 GitHub.com 克隆“名称解析暂时失败”错误

我从 GitHub 下载 Floodlight 时遇到问题。我用谷歌搜索并尝试了各种方法来克隆它。下面是错误:

  mininet@mininet-vm:~$ git clone git://github.com/floodlight/floodlight.git
  Cloning into 'floodlight'...
  fatal: unable to connect to github.com:
  github.com:Temporary failure in name resolution
Run Code Online (Sandbox Code Playgroud)

我目前正在虚拟机中运行 mininet,并且尝试使用 https/http 而不是 git。尽管如此,我在尝试从 GitHub 下载 Floodlight 时遇到了错误。

我的虚拟机网络已通过 NAT 连接,并且 GitHub.com 已启动并运行。但是,当我尝试 ping 到 GitHub.com 时,它不起作用。如何解决此 DNS 服务器问题?

github

6
推荐指数
1
解决办法
3万
查看次数

ssh:无法解析主机名 github.com 错误

我正在使用 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)

我一整天都在尝试解决这个错误,但我仍然无法解决这个错误。如果知道这个问题的解决方案,那就太好了。谢谢

repository hostname resolve git-remote

5
推荐指数
1
解决办法
1万
查看次数