Problem with APT proxy for Ubuntu 21.10 (impish)

Hi,
I have been happily using Nexus Repository Manager OSS as the APT proxy for my Ubuntu systems for a few years. I have 2 apt (proxy) repositories created - one for “http://archive.ubuntu.com/ubuntu/” and the other for “http://security.ubuntu.com/ubuntu/”. It has all been working fine for the 5 recent Ubuntu releases, but trying to use Nexus OSS with the latest Ubuntu (21.10, impish indri) fails, i.e. after the usual modification of the /etc/apt/sources.list file to point to my Nexus OSS proxy, the apt update works fine, but apt upgrade fails with error “502 Bad Gateway”. The very same apt proxies work perfectly fine for the previous Ubuntu releases, it is only the Ubuntu 21.10 which is failing…

The nexus.log shows a bunch of warnings, when running the apt upgrade command:

2021-11-05 18:34:32,973+0000 WARN [qtp791584833-719] *UNKNOWN org.sonatype.nexus.repository.apt.orient.internal.proxy.OrientAptProxyFacet - Exception java.io.IOException: Invalid debian package: no control file checking remote for update, proxy repo apt-test-proxy failed to fetch pool/main/u/util-linux/bsdutils_2.36.1-8ubuntu2_amd64.deb, content not in cache.

Running apt update / apt upgrade on the Ubuntu 21.10 without the Nexus proxy works fine.

Any idea why the apt upgrade fails ? I am using the latest Nexus OSS (nexus-3.36.0-01).

Hi,

It looks like the compression inside the debs has changed. It seems like something Ubuntu is doing, but Debian hasn’t quite started yet. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664

mbucher1@unicron:~$ ar t bsdutils_2.36.1-7ubuntu2_amd64.deb
debian-binary
control.tar.xz
data.tar.xz
mbucher1@unicron:~$ ar t bsdutils_2.36.1-8ubuntu1_amd64.deb
debian-binary
control.tar.zst
data.tar.zst

We have the following ticket to track our support for zstd [NEXUS-28889] Some Debian Packages fail to upload (control.tar.zst) - Sonatype JIRA

Hi, yeah, this makes sense now - in Ubuntu 21.10, they have switched to the ZSTD compressed packages… Hello zstd compressed .debs in Ubuntu! | Obsessed with reality

Hi Sonatype - is there any update on the issue ? I am pretty sure, due to Ubuntu 21.10 popularity, many Nexus users experience the problem…

Thanks :slightly_smiling_face:

For what it is worth… Nexus Repository OSS 3.37.0 still has the same problem… 5 weeks after Ubuntu 21.10 release date and counting… Bravo Sonatype…