当我检查更新时,出现“无法下载存储库信息”错误。
这是详细信息下的内容:
W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources Hash Sum mismatch,
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud) 我的/etc/apt/sources.list包含:
nazar_art@nazar-desctop:/etc/apt$ cat source.list
deb http://security.ubuntu.com/ubuntu precise-security main universe
nazar_art@nazar-desctop:/etc/apt$ cat sources.list.old
deb http://archive.ubuntu.com/ubuntu precise universe
nazar_art@nazar-desctop:/etc/apt$ cat source.list
deb http://security.ubuntu.com/ubuntu precise-security main universe
nazar_art@nazar-desctop:/etc/apt$
Run Code Online (Sandbox Code Playgroud)
我根据这篇文章更新了如何恢复默认存储库?
但是当我运行时它调用了另一个问题sudo apt-get update我有一些这样的输出:
Err http://ua.archive.ubuntu.com main/restricted Sources
404 Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/universe Sources
404 Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/multiverse Sources
404 Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/restricted amd64 Packages
404 Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/universe amd64 Packages …Run Code Online (Sandbox Code Playgroud) 我试过使用网络管理员。它有一个 DNS 服务器列表,包括 127.0.0.1 和我放入的两个。它总是首先使用 127 地址,无论我更改多少次。文件列表、挂钩脚本等令人困惑:我可以修改以实现永久更改的单个网络配置文件在哪里?
我厌倦了要求我的 ISP 质量差的 DNS 服务器来处理我的互联网请求。我不知道为什么 Ubuntu 会反复重置我的配置,或者图形界面存储这些信息的位置——直到它再次更改。这是不必要的混乱。
一小时前我检查了network-admin gui,它按顺序显示为 127.0.1.1 8.8.4.4 8.8.8.8 我将两个 8. 移到顶部,高于 127;刚刚检查了一下,现在第一个,以前不在列表中,是 192.168.1.254——这是我的网络路由器局域网侧地址。对此的请求被路由到互联网;这里的 DNS 请求会自动路由到 att 的 DNS,而不是 Google 的。这在 FireFox 浏览器中出现查找错误时得到了证明,它显示了来自 dnserrorassist.att.net 的错误页面
我真的很想拥有一个静态的 DNS 服务器列表,以便能够随意修改它,并设置使用它们的查找顺序。我可以用 Ubuntu (16.04) 做到这一点吗?
由于安全限制,我有一个在 Azure 上运行的 Ubuntu 18.04.2 LTS VM,没有公共 IP。我可以使用curl 通过HTTP 下载文件,尽管FTP 不起作用。
这些是我收到的错误:
sudo apt-get update
Err:1 http://mirror.cs.unm.edu/archive bionic InRelease
Connection failed [IP: 64.106.20.76 80]
Err:2 http://mirror.cs.unm.edu/archive bionic-updates InRelease
Connection failed [IP: 64.106.20.76 80]
Err:3 http://mirror.cs.unm.edu/archive bionic-backports InRelease
Connection failed [IP: 64.106.20.76 80]
Err:4 http://mirror.cs.unm.edu/archive bionic-security InRelease
Connection failed [IP: 64.106.20.76 80]
Reading package lists... Done
W: Failed to fetch http://mirror.cs.unm.edu/archive/dists/bionic/InRelease Connection failed [IP: 64.106.20.76 80]
W: Failed to fetch http://mirror.cs.unm.edu/archive/dists/bionic-updates/InRelease Connection failed [IP: 64.106.20.76 80]
W: Failed to fetch http://mirror.cs.unm.edu/archive/dists/bionic-backports/InRelease …Run Code Online (Sandbox Code Playgroud)