← Back to issue list

cleanbuild doesn't work in distros without /etc/apt/apt.conf.d/

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1685820
Type
issue
State
closed
Author
~elopio
Labels
cleanbuild distros
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. The cleanbuild command failed on non-Debian distros due to missing apt configuration. The feature was subsequently abandoned as Snapcraft deprecated LXD-based cleanbuild and shifted to cloud builders.

Suggested action:

No scores available.

Issue body

I was trying to run snapcraft cleanbuild in opensuse tumbleweed using the snapcraft and lxd snaps. It failed with the following traceback: Currently only `cleanbuild` will work on this system ('') Traceback (most recent call last): File "/snap/snapcraft/86/bin/snapcraft", line 28, in <module> import snapcraft.main File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/__init__.py", line 380, in <module> from snapcraft._baseplugin import BasePlugin # noqa File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/_baseplugin.py", line 21, in <module> from snapcraft.internal import common File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/__init__.py", line 20, in <module> from snapcraft.internal.project_loader import load_config # noqa File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/project_loader.py", line 28, in <module> from snapcraft.internal import ( File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/parts.py", line 29, in <module> from snapcraft.internal import ( File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 40, in <module> from snapcraft.internal import ( File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/sources/__init__.py", line 95, in <module> from ._deb import Deb # noqa File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/sources/_deb.py", line 17, in <module> import debian.debfile File "/snap/snapcraft/86/lib/python3.6/site-packages/debian/debfile.py", line 2Currently only `cleanbuild` will work on this system ('') 6, in <module> from debian.changelog import Changelog File "/snap/snapcraft/86/lib/python3.6/site-packages/debian/changelog.py", line 37, in <module> from debian import debian_support File "/snap/snapcraft/86/lib/python3.6/site-packages/debianTraceback (most recent call last): /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 File "/snap/snapcraft/86/bin/snapcraft", line 28, in <module> import snapcraft.main File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/__init__.py", line 380, in <module> from snapcraft._baseplugin import BasePlugin # noqa File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/_baseplugin.py", line 21, in <module> from snapcraft.internal import common File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/__init__.py", line 20, in <module> from snapcraft.internal.project_loader import load_config # noqa File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/project_loader.py", line 28, in <module> from snapcraft.internal import ( File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/parts.py", line 29, in <module> from snapcraft.internal import ( File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 40, in <module> from snapcraft.internal import ( File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/sources/__init__.py", line 95, in <module> from ._deb import Deb # noqa File "/snap/snapcraft/86/lib/python3.6/site-packages/snapcraft/internal/sources/_deb.py", line 17, in <module> import debian.debfile File "/snap/snapcraft/86/lib/python3.6/site-packages/debian/debfile.py", line 26, in <module> from debian.changelog import Changelog File "/snap/snapcraft/86/lib/python3.6/site-packages/debian/changelog.py", line 37, in <module> from debian import debian_support File "/snap/snapcraft/86/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. The cleanbuild command failed on non-Debian distros due to missing apt configuration. The feature was subsequently abandoned as Snapcraft deprecated LXD-based cleanbuild and shifted to cloud builders.
qwen/qwen3.6-35b-a3b snapcraft cleanbuild fails on non-Debian distributions lacking /etc/apt/apt.conf.d/. The issue was closed without a fix, likely abandoned due to inactivity.
qwen3.6-35b-a3b-mtp-q6 Closed as abandoned. No resolution or follow-up comments were provided. The apt dependency limitation for non-Debian distros remains unaddressed.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1746612 Snapcraft cleanbuild doesn't work if you're not using the LXD snap snapcraft (launchpad) closed Closed without resolution. Snapcraft hardcodes the LXD snap path during cleanbuild, causing failures with deb-installed LXD. The report appears abandoned or superseded by updated Snapcraft versions that dynamically detect LXD installations.
77%
#1610910 cleanbuild needs to support apt proxy config snapcraft (launchpad) closed Closed without resolution or discussion. The apt proxy configuration request for snapcraft cleanbuild was abandoned due to lack of engagement and evolving build tooling.
75%
#1666735 snapcraft cleanbuild does not work with lxd installed via snap snapcraft (launchpad) closed Closed without resolution or merge. The report notes snapcraft cleanbuild fails to detect LXD installed via snap, suggesting checks via snap list or lxc list instead of apt cache. No fix was implemented or documented.
74%
#1480144 cleanbuild (through lxd) snapcraft (launchpad) closed Closed as a wishlist item. The request to integrate snapcraft with clean build environments like cowbuilder or LXD was abandoned due to lack of priority and activity.
72%
#1570706 Snapcraft cleanbuild command doesn't work snapcraft (launchpad) closed Closed without resolution, likely abandoned or superseded. The cleanbuild command failed due to LXC hash format incompatibility and container stop errors.
71%
#1697979 snapcraft fails on initial cleanbuild probe snapcraft (launchpad) closed Closed without resolution. Snapcraft cleanbuild failed due to LXD connection errors when LXD was provided via a third-party snap alias. The report received no comments or fixes and was abandoned.
71%
#1624075 cleanbuild - Don't try to stop a non-existent container snapcraft (launchpad) closed Closed without resolution, likely abandoned. The report detailed snapcraft cleanbuild failing when attempting to stop a non-existent LXC container.
70%
#1675516 can't cleanbuild snapcraft itself snapcraft (launchpad) closed Closed without resolution or comments, the report of a failed snapcraft cleanbuild due to missing build-packages was abandoned.
70%