无法解析主机:bitbucket.org

问题描述 投票:0回答:1

我的 ubuntu 服务器上存在一些空间问题。我释放了空间,后来尝试做

git pull
。我收到类似的错误

$ git pull
fatal: unable to access 'https://<user>@bitbucket.org/<repo>.git/': Could not resolve host: bitbucket.org

我运行了以下命令:

git remote -v

输出:(如预期)

origin  https://<user>@bitbucket.org/<repo>.git (fetch)
origin  https://<user>@bitbucket.org/<repo>.git (push)

还尝试过删除原点并通过以下方式重新设置:

git remote rm origin
git remote add origin https://[email protected]/user/ex.git

而且

npm install
不起作用,它被卡住了。也检查了我的互联网连接,但无论如何都没有运气。任何帮助将不胜感激。

git npm server bitbucket
1个回答
0
投票

Could not resolve host
是DNS问题。您应该在网络设置中检查 DNS 配置,这取决于您的操作系统。如果您的本地 DNS 缓存或 ISP 的 DNS 出现故障,您可能需要配置备用公共 DNS 服务器(例如:Google:8.8.8.8、Cloudfare:1.1.1.1)。

© www.soinside.com 2019 - 2024. All rights reserved.