在 PdaNet+ 上使用 USB 网络共享和 Wifi 热点时,cmd 和 msys2 中没有互联网连接

在 PdaNet+ 上使用 USB 网络共享和 Wifi 热点时,cmd 和 msys2 中没有互联网连接

我使用手机将笔记本电脑连接到互联网掌上网络+

PdaNet+ 中有两个选项:USB Tether 和 WiFi Direct Hotspot。

我在这两个选项上都遇到了这个问题。

我可以使用 Chrome 连接到 google.com。但是,当我尝试 pinggoogle.com在 cmd 中,它显示request time out

我还可以下载 Windows 更新、在 cmd 中使用 pip 安装 Python 包、浏览 Microsoft Store 等

C:\WINDOWS\system32>ping google.com

Pinging google.com [216.58.196.14] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 216.58.196.14:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

下面是我的 Wifi 连接的截图,它显示No Internet

但在网络状态中显示You're connected to the Internet

在此处输入图片描述

以下是我尝试过的方法:

  1. 运行Windows网络诊断,显示:

    Your broadband modem is experiencing connectivity issues

    然后我关闭并重新启动手机,再次运行疑难解答程序,它显示:

    Your computer appears to be correctly configured, but the device or resource (DNS server) is not responding

    我尝试了所有方法这里但还是没有运气。

  2. 运行命令:

    netsh int ip reset c:\resetlog.txt从答案中这里

    netsh winsock reset从答案中这里

我想解决这个问题的原因是我认为这就是我无法安装 Git 包的原因系统管理软件基于此问题

我可以使用 Chrome 访问http://repo.msys2.org/,但我不知道为什么它Could not resolve host: repo.msys2.org在 msys2 中。

奇怪的是我仍然可以使用 cmd 中的 pip 安装 Python 包。

这是 PdaNet+ 的局限性吗?任何帮助都非常感谢。

$ pacman -S msys/git
resolving dependencies...
looking for conflicting packages...

Packages (35) db-5.3.28-2  expat-2.2.5-1  gdbm-1.11-3  heimdal-1.5.3-9
              libgdbm-1.11-3  openssh-7.6p1-2  perl-5.24.4-1
              perl-Authen-SASL-2.16-2  perl-Convert-BinHex-1.125-1
              perl-Encode-Locale-1.05-1  perl-Error-0.17025-1
              perl-File-Listing-6.04-2  perl-HTML-Parser-3.72-2
              perl-HTML-Tagset-3.20-2  perl-HTTP-Cookies-6.04-1
              perl-HTTP-Daemon-6.01-2  perl-HTTP-Date-6.02-2
              perl-HTTP-Message-6.14-1  perl-HTTP-Negotiate-6.01-2
              perl-IO-Socket-SSL-2.054-1  perl-IO-stringy-2.111-1
              perl-LWP-MediaTypes-6.02-2  perl-MIME-tools-5.509-1
              perl-MailTools-2.20-1  perl-Net-HTTP-6.17-1
              perl-Net-SMTP-SSL-1.04-1  perl-Net-SSLeay-1.84-1
              perl-TermReadKey-2.37-2  perl-TimeDate-2.30-2
              perl-Try-Tiny-0.30-1  perl-URI-1.73-1  perl-WWW-RobotRules-6.02-2
              perl-libwww-6.31-2  vim-8.1.0022-1  git-2.17.1-1

Total Download Size:    27.03 MiB
Total Installed Size:  126.44 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
error: failed retrieving file 'expat-2.2.5-1-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'expat-2.2.5-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'expat-2.2.5-1-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'vim-8.1.0022-1-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'vim-8.1.0022-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'vim-8.1.0022-1-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'heimdal-1.5.3-9-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'heimdal-1.5.3-9-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'heimdal-1.5.3-9-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'openssh-7.6p1-2-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'openssh-7.6p1-2-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'openssh-7.6p1-2-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'db-5.3.28-2-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'db-5.3.28-2-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'db-5.3.28-2-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'libgdbm-1.11-3-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'libgdbm-1.11-3-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'libgdbm-1.11-3-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'gdbm-1.11-3-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'gdbm-1.11-3-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'gdbm-1.11-3-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-5.24.4-1-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-5.24.4-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-5.24.4-1-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-Error-0.17025-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-Error-0.17025-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-Error-0.17025-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-Authen-SASL-2.16-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-Authen-SASL-2.16-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-Authen-SASL-2.16-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-Encode-Locale-1.05-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-Encode-Locale-1.05-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-Encode-Locale-1.05-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-HTTP-Date-6.02-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-HTTP-Date-6.02-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-HTTP-Date-6.02-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-File-Listing-6.04-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-File-Listing-6.04-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-File-Listing-6.04-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-HTML-Tagset-3.20-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-HTML-Tagset-3.20-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-HTML-Tagset-3.20-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-HTML-Parser-3.72-2-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-HTML-Parser-3.72-2-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-HTML-Parser-3.72-2-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-LWP-MediaTypes-6.02-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-LWP-MediaTypes-6.02-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-LWP-MediaTypes-6.02-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-URI-1.73-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-URI-1.73-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-URI-1.73-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-HTTP-Message-6.14-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-HTTP-Message-6.14-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-HTTP-Message-6.14-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-HTTP-Cookies-6.04-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-HTTP-Cookies-6.04-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-HTTP-Cookies-6.04-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-HTTP-Daemon-6.01-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-HTTP-Daemon-6.01-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-HTTP-Daemon-6.01-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-HTTP-Negotiate-6.01-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-HTTP-Negotiate-6.01-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-HTTP-Negotiate-6.01-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-Net-HTTP-6.17-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-Net-HTTP-6.17-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-Net-HTTP-6.17-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-WWW-RobotRules-6.02-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-WWW-RobotRules-6.02-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-WWW-RobotRules-6.02-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-Try-Tiny-0.30-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-Try-Tiny-0.30-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-Try-Tiny-0.30-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-libwww-6.31-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-libwww-6.31-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-libwww-6.31-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-TimeDate-2.30-2-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-TimeDate-2.30-2-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-TimeDate-2.30-2-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-MailTools-2.20-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-MailTools-2.20-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-MailTools-2.20-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-IO-stringy-2.111-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-IO-stringy-2.111-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-IO-stringy-2.111-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-Convert-BinHex-1.125-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-Convert-BinHex-1.125-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-Convert-BinHex-1.125-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-MIME-tools-5.509-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-MIME-tools-5.509-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-MIME-tools-5.509-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-Net-SSLeay-1.84-1-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-Net-SSLeay-1.84-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-Net-SSLeay-1.84-1-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-IO-Socket-SSL-2.054-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-IO-Socket-SSL-2.054-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-IO-Socket-SSL-2.054-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-Net-SMTP-SSL-1.04-1-any.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-Net-SMTP-SSL-1.04-1-any.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-Net-SMTP-SSL-1.04-1-any.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'perl-TermReadKey-2.37-2-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'perl-TermReadKey-2.37-2-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'perl-TermReadKey-2.37-2-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed retrieving file 'git-2.17.1-1-x86_64.pkg.tar.xz' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'git-2.17.1-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'git-2.17.1-1-x86_64.pkg.tar.xz' from www2.futureware.at : Could not resolve host: www2.futureware.at
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

相关内容