Using 21.10 packages

I am trying to add a 21.10 package to my snap (using core20 as base) and get an error:

Pulling gstreamer-alsa

  • snapcraftctl pull

Sorry, an error occurred in Snapcraft:

file could not be opened successfully

Traceback (most recent call last):

packages/snapcraft/internal/pluginhandler/", line 507, in _do_pull self.source_handler.pull() File “/snap/snapcraft/current/lib/python3.6/site-packages/snapcraft/internal/sources/”, line 129, in pull self.provision(self.source_dir, src=source_file, clean_target=False) File “/snap/snapcraft/current/lib/python3.6/site-packages/snapcraft/internal/sources/”, line 77, in provision with as tar: File “/snap/snapcraft/current/usr/lib/python3.6/”, line 1578, in open raise ReadError(“file could not be opened successfully”) tarfile.ReadError: file could not be opened successfully

From my snapcraft.yaml file:


source: debs/gstreamer1.0-alsa_1.18.5-1_amd64.deb
source-type: deb
plugin: dump

I don’t get the same error if I use older package versions (21.04 and earlier)

It looks like Ubuntu changed dpkg compression from xz to zstd is this possibly the issue?

Note that 21.10 uses newer glibc 2.34 making the binaries incompatible with older releases.