← Back to issue list

snapcraft 7.0.8+ stopped working on non debian systems

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1981979
Type
issue
State
closed
Author
~valentin.david
Labels
craft-1211
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

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.

Suggested action:

No scores available.

Issue body

Since 7.0.8, specifically since 109df05572f36580367f863e55201a301cdb84ad ("package repositories: force package refresh (#3804)"), Snapcraft has stopped working for non-debian systems to build core22 or snaps for core22 even though it is supposed to build within an LXD container. Here is the traceback of the error: ``` Traceback (most recent call last): File "/snap/snapcraft/x8/bin/snapcraft", line 5, in <module> from snapcraft.cli import run File "/var/lib/snapd/snap/snapcraft/x8/lib/python3.8/site-packages/snapcraft/cli.py", line 34, in <module> from . import commands File "/var/lib/snapd/snap/snapcraft/x8/lib/python3.8/site-packages/snapcraft/commands/__init__.py", line 25, in <module> from .extensions import ( File "/var/lib/snapd/snap/snapcraft/x8/lib/python3.8/site-packages/snapcraft/commands/extensions.py", line 30, in <module> from snapcraft.parts.lifecycle import get_snap_project, process_yaml File "/var/lib/snapd/snap/snapcraft/x8/lib/python3.8/site-packages/snapcraft/parts/__init__.py", line 19, in <module> from .parts import PartsLifecycle File "/var/lib/snapd/snap/snapcraft/x8/lib/python3.8/site-packages/snapcraft/parts/parts.py", line 26, in <module> from craft_parts.packages import Repository, deb File "/var/lib/snapd/snap/snapcraft/x8/lib/python3.8/site-packages/craft_parts/packages/deb.py", line 44, in <module> from .apt_cache import AptCache File "/var/lib/snapd/snap/snapcraft/x8/lib/python3.8/site-packages/craft_parts/packages/apt_cache.py", line 29, in <module> import apt File "/var/lib/snapd/snap/snapcraft/x8/lib/python3.8/site-packages/apt/__init__.py", line 36, in <module> apt_pkg.init_system() apt_pkg.Error: E:Unable to determine a suitable packaging system type ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen/qwen3.6-35b-a3b Closed without resolution. Snapcraft 7.0.8+ fails on non-Debian systems due to forced apt package refresh, triggering an apt_pkg error during core22 builds. The issue was abandoned with no comments or fixes.
qwen3.6-35b-a3b-mtp-q6 Closed without documented resolution. The regression caused Snapcraft to fail on non-Debian systems due to an apt_pkg import error after forcing package refresh.

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.
83%
#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.
79%
#1731478 Snap of snapcraft fails to run on Solus and openSUSE snapcraft (launchpad) closed 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.
79%
#1973197 snapcraft 7.x not running override-build snapcraft (launchpad) closed snapcraft 7.x failing to execute override-build was closed without a fix or resolution. Zero comments were posted, indicating the report was abandoned.
77%
#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.
76%
#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.
75%
#1980089 Compiled snap hooks not executed when packaging with Snapcraft 7 snapcraft (launchpad) closed Closed without resolution. Snapcraft 7.0.3 omitted meta/hooks wrapper scripts for compiled snap hooks, breaking execution. The issue appears abandoned.
74%
#1990551 snapcraft 7 never drops permissions while doing builds invoked with sudo snapcraft (launchpad) closed Closed without resolution due to inactivity. The report identifies a snapcraft 7 regression where sudo builds retain root privileges instead of dropping them, unlike snapcraft 6. No fix or discussion occurred.
74%
#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.
74%
#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.
74%