Because of this bug the libnet1 dpkg installation fails.
$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/libnet1_1.1.6+dfsg-3.1build2_amd64.deb
dpkg-deb: error: archive '/var/cache/apt/archives/libnet1_1.1.6+dfsg-3.1build2_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /var/cache/apt/archives/libnet1_1.1.6+dfsg-3.1build2_amd64.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnet1_1.1.6+dfsg-3.1build2_amd64.deb
The genericized error is: error: archive [somepackage.deb] uses unknown compression for member [control.tar.zst], giving up
It appears that whatever created the libnet1 package compressed the control and data tarballs with zstd.
The system dpkg binary is expected xz compression so we can fix it.
~$ cd $(mktemp -d)
/tmp/tmp.AYtfrTV9Lh$ cp /var/cache/apt/archives/libnet1_1.1.6+dfsg-3.1build2_amd64.deb .
/tmp/tmp.AYtfrTV9Lh$ ar x libnet1_1.1.6+dfsg-3.1build2_amd64.deb
/tmp/tmp.AYtfrTV9Lh$ zstd -d < control.tar.zst| xz > control.tar.xz
/tmp/tmp.AYtfrTV9Lh$ zstd -d < data.tar.zst| xz > data.tar.xz
/tmp/tmp.AYtfrTV9Lh$ ar -m -c -a sdsd libnet1_repacked.deb debian-binary control.tar.xz data.tar.xz
/tmp/tmp.AYtfrTV9Lh$ rm debian-binary control.tar.xz data.tar.xz control.tar.zst data.tar.zst
/tmp/tmp.AYtfrTV9Lh$ ls
libnet1_1.1.6+dfsg-3.1build2_amd64.deb libnet1_repacked.deb
$ sudo dpkg -i --force-overwrite libnet1_repacked.deb
(Reading database ... 435333 files and directories currently installed.)
Preparing to unpack libnet1_repacked.deb ...
Unpacking libnet1:amd64 (1.1.6+dfsg-3.1build2) over (1.1.6+dfsg-3.1build2) ...
Setting up libnet1:amd64 (1.1.6+dfsg-3.1build2) ...
Processing triggers for libc-bin (2.34-0ubuntu3.2) ...
Hat tip to this random user running into a siliar issue and the developer showing how to repackage it.