snapcraft 7 fails on fedora 36, referencing apt
Metadata
Current evaluation
Snapcraft 7.0.11 failed on Fedora 36 when apt_pkg could not identify a packaging system; the maintainer confirmed it was fixed in Snapcraft 7.1.1.
Resolution: closed resolved
Reason: Maintainer Sergiusens closed the report after noting the problem should be fixed in 7.1.1. Launchpad #1981130 documents the same packaging-system detection failure as fixed in Snapcraft 7.1.1.
Evaluated by: mr-cal-bot
No scores available.
Issue body
somewhen, my snapcraft stopped working - i guess that happened when latest/stable switched to snapcraft 7.0
My system:
Fedora Linux 36 (Workstation Edition)
$ snap info snapcraft
name: snapcraft
...
tracking: latest/stable
...
installed: 7.0.11 (7923) 65MB classic
$ snapcraft --version
Traceback (most recent call last):
File "/snap/snapcraft/7923/bin/snapcraft", line 5, in <module>
from snapcraft.cli import run
File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/snapcraft/cli.py", line 33, in <module>
from . import commands
File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/snapcraft/commands/__init__.py", line 25, in <module>
from .extensions import (
File "/var/lib/snapd/snap/snapcraft/7923/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/7923/lib/python3.8/site-packages/snapcraft/parts/__init__.py", line 19, in <module>
from .parts import PartsLifecycle
File "/var/lib/snapd/snap/snapcraft/7923/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/7923/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/7923/lib/python3.8/site-packages/craft_parts/packages/apt_cache.py", line 29, in <module>
import apt
File "/var/lib/snapd/snap/snapcraft/7923/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
# after refresh to channel=6.x/stable
$ snapcraft --version
snapcraft, version 6.1
i also tried with latest/edge channel, which did the same as latest/stable
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft 7.0.11 failed on Fedora 36 when apt_pkg could not identify a packaging system; the maintainer confirmed it was fixed in Snapcraft 7.1.1. | |
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft 7.0.11 failed on Fedora because craft-parts eagerly imported python-apt. The import was made optional in craft-parts #455 (047a8e55), with the fix shipped in Snapcraft 7.1.1. | |
| stealth/space-bunny-alpha | — | closed stale | Closed stale without a fix after prolonged inactivity. Snapcraft 7.0.11 crashed on Fedora 36; downgrading to 6.x worked. Launchpad bug #1981551 was also abandoned without resolution. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned and closed without resolution. Reports snapcraft 7 failing on Fedora 36 due to an apt dependency error. Downgrading to v6 works. No comments or fixes provided. | |
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Snapcraft 7 crashed on Fedora 36 due to an unmet apt dependency. With zero comments and no follow-up, the report was closed without resolution, likely due to upstream cross-distro compatibility limitations. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. Reported snapcraft 7 crashing on Fedora 36 due to an apt dependency error. Zero comments and no activity indicate the issue was abandoned. Downgrading to version 6 resolved the problem for the author. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
snapcraft (launchpad)#1981130
(confidence 95%)
Reports the same apt_pkg packaging-system detection error and records its resolution in Snapcraft 7.1.1.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1980536 snapcraft unusable on systems not using apt | snapcraft (launchpad) | closed | Snapcraft 7.1.1 fixed startup failures on non-APT systems; the 7.0.8 regression was linked to snapcore/snapcraft#3804. | |
| #1981979 snapcraft 7.0.8+ stopped working on non debian systems | snapcraft (launchpad) | closed | Fixed in snapcore/snapcraft#3843 (commit ed49405fb, merged as 57ecab3bc) by deferring the Debian package import so Snapcraft starts on non-Debian hosts. |