I have the same issue. So far I’ve only had this when using my Nexus apt proxies on Desktop Ubuntu installations. This error never happens on the server edition.
I have added the exact same entries in /etc/apt/sources.list in the server and desktop editions of Ubuntu Bionic, Focal and Jammy. Every single time the server edition works, the desktop won’t.
I think it is related to downloading/generating images (icons) for the software manager in the desktop version, but I’m not sure. That is where my debugging skills end.
I have the same issue. https://FQDN/repository/ubuntu-focal/dists/focal-security/main/binary-i386/Packages.xz File has unexpected size (479908 != 480080). Mirror sync in progress?
I test my local ubuntu mirror and compare with "https://archive.ubuntu.com/ubuntu/dists/focal-security/"
Files Packages.xz and InRelease in local mirror are the same as in http://archive.ubuntu.com/ubuntu/dists/focal-security/ with size 479908 Packages.xz in nexus cache is the same like in http://archive.ubuntu.com/ubuntu/dists/focal-security/ and local mirror too.
But InRelease in nexus cache is older then in local and remote mirrors. And the size of Packages.xz in that file is equal 480080.
Only manual (or via general rest api) “clear cache” and “invalidate index” helps to fix that problem .
Are there any ideas how to fix that problem?
Repo apt proxy
This seems to be fixed. I don’t know as of which version, but I’m currently on 3.75.1-01 and can run apt update and apt upgrade on my desktop just fine.