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/init.py", line 507, in _do_pull self.source_handler.pull() File “/snap/snapcraft/current/lib/python3.6/site-packages/snapcraft/internal/sources/_base.py”, 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/_deb.py”, line 77, in provision with tarfile.open(fileobj=data_member) as tar: File “/snap/snapcraft/current/usr/lib/python3.6/tarfile.py”, 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:
gstreamer-alsa:
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?