sjtug / mirror-requests

新镜像请求 & BUG 汇报
https://mirrors.sjtug.sjtu.edu.cn
48 stars 2 forks source link

Debian bullseye-security package size mismatch #352

Closed SteveHawk closed 2 months ago

SteveHawk commented 5 months ago

复现步骤

> docker pull debian:bullseye-slim
> docker run -it --rm debian:bullseye-slim
docker > sed -i "s|http://deb.debian.org/debian|http://mirror.sjtu.edu.cn/debian|g" /etc/apt/sources.list
docker > apt update

报错信息

Get:1 http://mirror.sjtu.edu.cn/debian bullseye InRelease [116 kB]
Get:2 http://mirror.sjtu.edu.cn/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://mirror.sjtu.edu.cn/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://mirror.sjtu.edu.cn/debian bullseye/main amd64 Packages [8068 kB]
Ign:5 http://mirror.sjtu.edu.cn/debian-security bullseye-security/main amd64 Packages
Get:6 http://mirror.sjtu.edu.cn/debian bullseye-updates/main amd64 Packages [18.8 kB]
Get:5 http://mirror.sjtu.edu.cn/debian-security bullseye-security/main amd64 Packages [271 kB]
Err:5 http://mirror.sjtu.edu.cn/debian-security bullseye-security/main amd64 Packages
  File has unexpected size (270920 != 270824). Mirror sync in progress? [IP: 111.186.58.212 80]
  Hashes of expected file:
   - Filesize:270824 [weak]
   - SHA256:d2dcc710399070a19035097beb24cadbefae1a5a697eb3852215ae0901f219e5
  Release file created at: Mon, 22 Apr 2024 08:34:50 +0000
Fetched 8295 kB in 4s (2286 kB/s)                    
Reading package lists... Done
E: Failed to fetch http://mirror.sjtu.edu.cn/debian-security/dists/bullseye-security/main/binary-amd64/Packages.xz  File has unexpected size (270920 != 270824). Mirror sync in progress? [IP: 111.186.58.212 80]
   Hashes of expected file:
    - Filesize:270824 [weak]
    - SHA256:d2dcc710399070a19035097beb24cadbefae1a5a697eb3852215ae0901f219e5
   Release file created at: Mon, 22 Apr 2024 08:34:50 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

根据日志,debian-security bullseye-security/main amd64包存在size mismatch的问题,导致apt update无法正常更新。

SteveHawk commented 5 months ago

在新的一次同步后,该问题解决。

但是先保持该issue open,因为可能会是某个隐藏偶现bug?

billchenchina commented 5 months ago

同步没有完成是会这样的

Mirror sync in progress

SteveHawk commented 5 months ago

我有检查过同步状态,当时网页上debian-security显示为同步成功,而非同步中。

PhotonQuantum commented 2 months ago

思考,这有可能是因为我们某个上级镜像和我们的同步存在时延造成的。但是理论上可能也不应该有这种现象?可能是 rsync 的 bug,这边暂时先关闭 issue 了,如果有新的更新欢迎重新打开!