sudo apt-get update 失败,文件大小意外(14696 != 14700)

sudo apt-get update 失败,文件大小意外(14696 != 14700)

正在做

sudo  apt-get update

给出

sudo: unable to resolve host ML: No address associated with hostname
Hit:1 http://il.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://il.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:3 http://il.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease
Get:6 http://il.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [597 kB]
Get:7 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,546 kB]
Get:8 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [281 kB]
Get:9 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.7 kB]
Get:9 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.7 kB]
Get:9 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.7 kB]
Get:9 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.7 kB]
Ign:9 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata
Ign:14 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata
Get:9 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.7 kB]
Err:9 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata
  File has unexpected size (14696 != 14700). Mirror sync in progress? [IP: 192.115.211.70 80]
  Hashes of expected file:
   - Filesize:14700 [weak]
   - SHA256:9fc3c84c15919a454ddabcb7880bc47add42e5da77ed1533335e15e9d2998182
   - SHA1:a54761dbd2b1fe027fe2e655c0d02dc763406afa [weak]
   - MD5Sum:da894ea9b60f39aba01c96a220bcd5e2 [weak]
  Release file created at: Tue, 01 Feb 2022 15:14:58 +0000
Get:14 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [20.1 kB]
Err:14 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata

Get:15 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64  InRelease [1,484 B]
Hit:16 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64  InRelease
Hit:17 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:18 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  InRelease
Fetched 1,484 B in 1s (2,161 B/s)
Reading package lists... Done
E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/dists/focal-updates/main/cnf/Commands-amd64.xz  File has unexpected size (14696 != 14700). Mirror sync in progress? [IP: 192.115.211.70 80]
   Hashes of expected file:
    - Filesize:14700 [weak]
    - SHA256:9fc3c84c15919a454ddabcb7880bc47add42e5da77ed1533335e15e9d2998182
    - SHA1:a54761dbd2b1fe027fe2e655c0d02dc763406afa [weak]
    - MD5Sum:da894ea9b60f39aba01c96a220bcd5e2 [weak]
   Release file created at: Tue, 01 Feb 2022 15:14:58 +0000
E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/dists/focal-updates/universe/cnf/Commands-amd64.xz
E: Some index files failed to download. They have been ignored, or old ones used instead.

我不知道哪里出了问题,也不知道该做什么。

我真的不想再次重新安装一切。

答案1

我同意 @mikewhatever 或 @nobody 的评论

而不是使用你现在的mirror.isoc.org.il

使用另一个https://launchpad.net/ubuntu/+archivemirrors(或使用主存档/服务器

如果你不想更改你的源/镜像;你需要向你当前的镜像/存档这样他们就可以查看并修复它。但问题很有可能会自行解决(下一次同步几乎肯定会修复它) 才真正开始着手研究这个问题。

相关内容