Linux - File has unexpected size (944824 != 944876). Mirror sync in progress
Photo by Gabriel Heinzer on Unsplash
When I'm running sudo apt update
on my orangepi5 device, I got these errors:
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 https://repo.ivpn.net/stable/ubuntu ./generic InRelease
Hit:3 https://pkg.cloudflare.com/cloudflared jammy InRelease
Ign:4 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 InRelease
Hit:6 http://repo.huaweicloud.com/ubuntu-ports jammy InRelease
Hit:8 http://repo.huaweicloud.com/ubuntu-ports jammy-security InRelease
Get:9 http://repo.huaweicloud.com/ubuntu-ports jammy-updates InRelease [128 kB]
Hit:10 http://repo.huaweicloud.com/ubuntu-ports jammy-backports InRelease
Hit:11 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 Release
Hit:12 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Hit:13 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Hit:14 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu jammy InRelease
Hit:5 https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu jammy InRelease
Hit:15 https://ppa.launchpadcontent.net/redislabs/redis/ubuntu jammy InRelease
Ign:16 http://repo.huaweicloud.com/ubuntu-ports jammy-updates/main armhf Packages
Get:17 http://repo.huaweicloud.com/ubuntu-ports jammy-updates/main arm64 Packages [1,737 kB]
Get:18 http://repo.huaweicloud.com/ubuntu-ports jammy-updates/universe armhf Packages [845 kB]
Ign:18 http://repo.huaweicloud.com/ubuntu-ports jammy-updates/universe armhf Packages
Get:16 http://repo.huaweicloud.com/ubuntu-ports jammy-updates/main armhf Packages [945 kB]
Err:16 http://repo.huaweicloud.com/ubuntu-ports jammy-updates/main armhf Packages
File has unexpected size (944824 != 944876). Mirror sync in progress? [IP: 103.172.25.237 80]
Hashes of expected file:
- Filesize:944876 [weak]
- SHA256:05dbf070158dd9953ee5c260a2e2f9950e420eb6fd4eefe30723e1a248a799cd
- SHA1:d2716f274b0fa5766f88a42f8dede17b08eb8d54 [weak]
- MD5Sum:6f5bae8e83a1007cc2bd91620c9f4dca [weak]
Release file created at: Mon, 26 Aug 2024 00:14:45 +0000
Hit:7 https://packagecloud.io/varnishcache/varnish60lts/ubuntu jammy InRelease
Get:18 http://repo.huaweicloud.com/ubuntu-ports jammy-updates/universe armhf Packages [845 kB]
Err:18 http://repo.huaweicloud.com/ubuntu-ports jammy-updates/universe armhf Packages
Reading package lists... Done
E: Failed to fetch http://repo.huaweicloud.com/ubuntu-ports/dists/jammy-updates/main/binary-armhf/Packages.xz File has unexpected size (944824 != 944876). Mirror sync in progress? [IP: 103.172.25.237 80]
Hashes of expected file:
- Filesize:944876 [weak]
- SHA256:05dbf070158dd9953ee5c260a2e2f9950e420eb6fd4eefe30723e1a248a799cd
- SHA1:d2716f274b0fa5766f88a42f8dede17b08eb8d54 [weak]
- MD5Sum:6f5bae8e83a1007cc2bd91620c9f4dca [weak]
Release file created at: Mon, 26 Aug 2024 00:14:45 +0000
E: Failed to fetch http://repo.huaweicloud.com/ubuntu-ports/dists/jammy-updates/universe/binary-armhf/Packages.xz
E: Some index files failed to download. They have been ignored, or old ones used instead.
Then how I tackle it? simply I need to run:
sudo apt-get clean
Once executed, it's like nothing happened, yet go run sudo apt update
again, and it's working and that error message is gone as well.
References: