Error in sudo apt update

Published by admin on

Terminal showed:

Hit:1 http://dl.google.com/linux/earth/deb stable InRelease

Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease

Get:3 http://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease [189 kB]

Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease

Get:5 http://apt.postgresql.org/pub/repos/apt jammy-pgdg/main Sources [125 kB]

Err:5 http://apt.postgresql.org/pub/repos/apt jammy-pgdg/main Sources File has unexpected size (125758 != 125487). Mirror sync in progress? [IP: 2a04:4e42:3b::820 80] Hashes of expected file: – Filesize:125487 [weak] – SHA512:22abfe990b3138ec87f9088e9f77b7420f56ce85dac7ee49e2f99c6de6033c537b19878ee5ece682f37658ef3453d7d552674f1bf963fcb64ee9e54a89a04626 – SHA256:f717d231c34e73432670bad5f36246825290c7602597dd3ed9bb6369a4d430fa – SHA1:2fada02b1a3c59324acd43e26866c02afa0e1d7e [weak] – MD5Sum:defc9b5e4637dac4de26f1a5e3462ab8 [weak] Release file created at: Wed, 30 Sep 2026 20:18:11 +0000

Get:6 http://apt.postgresql.org/pub/repos/apt jammy-pgdg/main amd64 Packages [897 kB] Err:6 http://apt.postgresql.org/pub/repos/apt jammy-pgdg/main amd64 Packages

Hit:7 http://br.archive.ubuntu.com/ubuntu jammy InRelease

Hit:8 http://br.archive.ubuntu.com/ubuntu jammy-updates InRelease

Hit:9 http://br.archive.ubuntu.com/ubuntu jammy-backports InRelease

Hit:10 https://packages.groonga.org/ubuntu jammy InRelease Reading package lists…

Done E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/jammy-pgdg/main/source/Sources.bz2 File has unexpected size (125758 != 125487). Mirror sync in progress? [IP: 2a04:4e42:3b::820 80] Hashes of expected file: – Filesize:125487 [weak] – SHA512:22abfe990b3138ec87f9088e9f77b7420f56ce85dac7ee49e2f99c6de6033c537b19878ee5ece682f37658ef3453d7d552674f1bf963fcb64ee9e54a89a04626 – SHA256:f717d231c34e73432670bad5f36246825290c7602597dd3ed9bb6369a4d430fa – SHA1:2fada02b1a3c59324acd43e26866c02afa0e1d7e [weak] – MD5Sum:defc9b5e4637dac4de26f1a5e3462ab8 [weak] Release file created at: Wed, 30 Sep 2026 20:18:11 +0000 E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/jammy-pgdg/main/binary-amd64/Packages.bz2 E: Some index files failed to download. They have been ignored, or old ones used instead.

This fixed it:

sudo rm -rf /var/lib/apt/lists/*
sudo apt clean
sudo apt update
 

 

Categories:

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted