sudo apt update的结果:
Err:8 http://archiver.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archiver.ubuntu.com'
Fetched 433 kB in 20s (21.6 kB/s)
Reading package lists... Done
W: Failed to fetch http://archiver.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archiver.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead
--------------------------------------------------------------------------
AND AFTER POSTING TOP DID ANOTHER CHECK AND RUN "sudo apt-get update
------------------------------------------------------------------------
Err:7 http://archiver.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archiver.ubuntu.com'
Hit:8 http://repo.mysql.com/apt/ubuntu focal InRelease
Fetched 433 kB in 20s (21.2 kB/s)
Reading package lists... Done
W: Failed to fetch http://archiver.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archiver.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.发布于 2021-02-21 21:30:56
你的网址是错的。这是archive.ubuntu.com而不是archiver.ubuntu.com。
编辑您的/etc/apt/sources.list文件,并将“归档”实例替换为“归档”。您可以通过终端完成此操作:
sudo sed -i.backup 's/archiver\.ubuntu\.com/archive\.ubuntu\.com/g' /etc/apt/sources.list它将提示您输入用户密码,您将不会看到输入的字符,但它正在接受您的密码输入。执行命令后,它将修复拼写错误,并在/etc/apt/sources.list.backup上备份原始文件。
一旦完成,运行sudo apt update,它应该可以像预期的那样工作。
https://askubuntu.com/questions/1318218
复制相似问题