Linux - File has unexpected size (944824 != 944876). Mirror sync in progress

I wrote these tutorials for myself in future when I forget for the next steps.
Search for a command to run...

I wrote these tutorials for myself in future when I forget for the next steps.
No comments yet. Be the first to comment.
When you provision an Ubuntu instance on Oracle Cloud, you'll notice something different from standard Ubuntu installations: the system uses iptables instead of ufw for firewall management. This disti

When developing web applications locally, HTTPS is often overlooked. Yet, modern browsers and APIs increasingly require secure connections—even in development. That’s where mkcert comes in: a simple t

Testing the checkout success page in Magento 2 can be frustrating. By default, once an order is placed, Magento clears the quote session, meaning you can’t simply refresh or revisit the success page without going through the entire checkout process a...

Magento Commerce (EE) offers powerful features, but for many teams, Open Source (CE) is leaner, lighter, and more sustainable. If you're migrating from EE to CE, the Opengento downgrade tool provides a clean, scriptable way to remove proprietary modu...

If you’ve ever checked your Apache error logs and seen something like this: Code [core:error] (13)Permission denied: access to /robots.txt denied (filesystem path '/home/username/sites') because search permissions are missing on a component of the pa...

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: