← Back to issue list

Snap of snapcraft fails to run on Solus and openSUSE

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1731478
Type
issue
State
closed
Author
~flexiondotorg
Labels
Created
Updated
Closed

Current evaluation

Closed without resolution. Hard dependency on Debian apt_pkg caused runtime failures on non-Debian distros. The report was abandoned after seven days with zero comments or patches.

Suggested action:

No scores available.

Issue body

I installed the snapcraft snap from edge (2.34+git97.af78689) on Solus and openSUSE Tumbleweed. Attempting to run snapcraft on Solus fails with the following traceback: Traceback (most recent call last):   File "/snap/snapcraft/727/bin/snapcraft", line 11, in <module>     load_entry_point('snapcraft==2.34', 'console_scripts', 'snapcraft')()   File "/snap/snapcraft/727/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point     return get_distribution(dist).load_entry_point(group, name)   File "/snap/snapcraft/727/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point     return ep.load()   File "/snap/snapcraft/727/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2291, in load     return self.resolve()   File "/snap/snapcraft/727/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2297, in resolve     module = __import__(self.module_name, fromlist=['__name__'], level=0)   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/__init__.py", line 407, in <module>     from snapcraft._store import ( # noqa   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/_store.py", line 32, in <module>     from snapcraft.cli import echo   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/cli/__init__.py", line 28, in <module>     from . import env   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/cli/env.py", line 18, in <module>     from snapcraft.internal import errors, lxd   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/internal/lxd/__init__.py", line 19, in <module>     from ._project import Project # noqa   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/internal/lxd/_project.py", line 29, in <module>     from snapcraft.internal import lifecycle   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/internal/lifecycle/__init__.py", line 20, in <module>     from ._packer import pack # noqa   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/internal/lifecycle/_packer.py", line 26, in <module>     from ._runner import execute   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/internal/lifecycle/_runner.py", line 26, in <module>     from snapcraft.internal import (   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/internal/meta.py", line 38, in <module>     from snapcraft.internal.sources import get_source_handler_from_type   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/internal/sources/__init__.py", line 94, in <module>     from ._deb import Deb # noqa   File "/snap/snapcraft/727/lib/python3.6/site-packages/snapcraft/internal/sources/_deb.py", line 17, in <module>     import debian.debfile   File "/snap/snapcraft/727/lib/python3.6/site-packages/debian/debfile.py", line 26, in <module>     from debian.changelog import Changelog   File "/snap/snapcraft/727/lib/python3.6/site-packages/debian/changelog.py", line 37, in <module>     from debian import debian_support   File "/snap/snapcraft/727/lib/python3.6/site-packages/debian/debian_support.py", line 31, in <module>     apt_pkg.init() SystemError: W:Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory), E:Unable to determine a suitable packaging system type

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. Hard dependency on Debian apt_pkg caused runtime failures on non-Debian distros. The report was abandoned after seven days with zero comments or patches.
qwen/qwen3.6-35b-a3b Closed without resolution, likely abandoned. The snapcraft snap fails on Solus and openSUSE due to apt_pkg.init() crashing when /etc/apt/apt.conf.d is absent. Zero comments indicate no fix was provided.
qwen/qwen3.6-35b-a3b Abandoned due to inactivity. The apt dependency causing crashes on non-Debian systems was later removed in subsequent snapcraft releases, resolving the issue.
qwen3.6-35b-a3b-mtp-q6 Closed without comments or resolution. Likely abandoned or superseded by newer snapcraft versions that removed the Debian-specific apt dependency causing the crash on non-Debian distributions.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1980536 snapcraft unusable on systems not using apt snapcraft (launchpad) closed Closed without resolution. Snapcraft retained hard apt dependencies, causing crashes on non-Debian systems like Arch Linux. The issue appears abandoned with no fix provided.
79%
#1981979 snapcraft 7.0.8+ stopped working on non debian systems snapcraft (launchpad) closed Closed without resolution or comments. The reported apt_pkg error blocking snapcraft 7.0.8+ builds on non-Debian systems remains unfixed and the issue appears abandoned.
79%
#1663625 No script named 'snapcraft' snapcraft (launchpad) closed A report of snapcraft failing after apt installation was closed without resolution or comments, indicating the matter was abandoned.
76%
#1673501 SUSE E:Unable to determine a suitable packaging system type snapcraft (launchpad) closed Closed without resolution due to inactivity. Snapcraft fails on SUSE by attempting to initialize apt, which is unsupported on RPM-based distributions. The issue was abandoned.
76%
#1752964 Snapcraft snap broken on trusty snapcraft (launchpad) closed Closed without resolution. Snapcraft v2.39.2 failed on Ubuntu Trusty due to a missing liblz4.so.1 dependency for mksquashfs. No comments were posted, and the report was likely abandoned following Trusty's end-of-life.
74%
#1790052 Building snaps directly from GitHub fails snapcraft (launchpad) closed A snapcraft build failure triggered by a deb-systemd-invoke error was abandoned and closed without resolution. No comments or follow-up actions were recorded.
74%
#1981551 snapcraft 7 fails on fedora 36, referencing apt snapcraft (launchpad) closed Closed without resolution. Snapcraft 7.0 crashed on Fedora 36 due to an apt dependency error. Downgrading to v6 worked locally. No fix provided; issue appears abandoned.
73%
#1947968 snapcraft missing 22.04 branch snapcraft (launchpad) closed Closed without resolution. The missing ubuntu-22.04 branch for the snapcraft snap caused dpkg installation failures. Likely abandoned or resolved upstream.
72%
#1800119 snapcraft cleanbuild snapcraft (launchpad) closed Closed without resolution. The report details a PermissionError during snapcraft cleanbuild caused by restricted access to the .aptitude directory. With zero comments and no fix applied, the issue was abandoned or marked stale.
71%
#1723965 snapcraft doesn't work snapcraft (launchpad) closed Closed without resolution or comments, indicating abandonment. The reported snap command failure and GL driver errors remain unresolved.
71%