Luc*_*ima 6 updates apt github 13.04
我在运行 apt-get update 时遇到了一些问题:
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/raring/Release.gpg
Something wicked happened resolving 'br.archive.ubuntu.com:http' (-11 - System error)
E: Some index files failed to download.
They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
此外,当我尝试将某些内容推送到 GitHub 时,我收到此错误:
error: Couldn't resolve host 'github.com'
while accessing https://github.com/lapl/HardL1.git/info/refs?service=git-receive-pack
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
当我在大学时,它工作正常。有什么帮助解决这个问题吗?
将您的网络配置为使用另一名称服务器(DNS 服务器),因为当前名称服务器无法解析主机名。通常,您的家庭路由器配置了一个 DNS 服务器,用于将 DNS 查询中继到该服务器。我可以建议使用 Google 公共 DNS 服务 (8.8.8.8和8.8.4.4) 进行检查。
最好尝试更改路由器中的此设置。如果失败,请尝试在主机上进行设置。我之前在另一个答案中对此进行了描述(摘录如下)。
我建议使用网络管理器正确配置您的电脑。我假设您在网络上使用 DHCP(最常见)。然后执行此操作以执行与您正在使用的命令相同的操作:
打开编辑连接:
编辑您正在使用的连接配置文件。
在IPv4 设置选项卡上:
方法:仅限自动 (DHCP) 地址
此设置使其对主机的 IP 地址配置执行常规 DHCP 请求,但它将忽略其他非强制性选项,例如建议的 DNS 服务器。
- DNS 服务器:
8.8.8.8- 点击保存
完毕。
| 归档时间: |
|
| 查看次数: |
6026 次 |
| 最近记录: |