← Back to issue list

3.4.6.post107+gda5a7a9a 2025-05-24 (6763) with uv plugin: unable to build against 20.04

View original Github issue

Metadata

Project
charmcraft
Number
#2302
Type
issue
State
closed
Author
dimaqq
Labels
—
Created
Updated
Closed

Current evaluation

Ubuntu 20.04 build failure with 'no installation candidate' for python3/fuse was transient: maintainer could not reproduce on edge 3.4.6.post113+gb3a1147e (6831); reporter confirmed charmcraft 3.5.3 works. Closed with no code change.

Resolution: closed not a bug

Reason: Maintainer @lengau reported being unable to reproduce the failure on latest edge (3.4.6.post113+gb3a1147e, rev 6831), noting charmcraft does run apt-get update before installing base packages and that the error looked transient. The reporter @dimaqq later confirmed the issue no longer occurs on charmcraft 3.5.3 (2025-09-22), and the issue was closed with no linked PR or commit; repo log search found no corresponding fix for these base packages.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description I'm unable to build 20.04-based charms with the latest edge charmcraft Failed to install packages. * Command that failed: 'lxc --project charmcraft exec local:base-instance-charmcraft-buildd-base-v7--20d64a5acd5c317c9c8d -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical apt-get install -y apt-utils build-essential curl fuse udev python3 python3-dev python3-pip python3-wheel python3-setuptools gpg dirmngr' * Command exit code: 100 * Command output: b'Reading package lists...\nBuilding dependency tree...\nReading state information...\nPackage python3 is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\nPackage fuse is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\nPackage python3-dev is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\n' * Command standard error output: b"E: Package 'fuse' has no installation candidate\nE: Package 'python3' has no installation candidate\nE: Package 'python3-dev' has no installation candidate\n" Full execution log: '/home/dima/.local/state/charmcraft/log/charmcraft-20250529-095616.221728.log' ### To Reproduce try to build ### Environment regular mode, lxd, Ubuntu 24.04 host ### charmcraft.yaml ```yaml --- name: hexanator-legacy type: charm title: Charmed Gubernator summary: High-performance, distributed rate-limiting service description: This is a charm for Gubernator, a high-performance, distributed rate-limiting service. base: ubuntu@20.04 build-base: ubuntu@20.04 platforms: amd64: parts: hexanator: plugin: uv source: . build-snaps: - astral-uv build-packages: - cargo ``` ### Relevant log output ```shell 2025-05-29 09:57:57.812 Executing in container: lxc --project charmcraft exec local:base-instance-charmcraft-buildd-base-v7--20d64a5acd5c317c9c8d -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical apt-get install -y apt-utils build-essential curl fuse udev python3 python3-dev python3-pip python3-wheel python3-setuptools gpg dirmngr 2025-05-29 09:57:58.049 Executing in container: lxc --project charmcraft exec local:base-instance-charmcraft-buildd-base-v7--20d64a5acd5c317c9c8d -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical bash -c 'exec 3<> /dev/tcp/snapcraft.io/443' 2025-05-29 09:57:58.593 Failed to install packages. 2025-05-29 09:57:58.593 * Command that failed: 'lxc --project charmcraft exec local:base-instance-charmcraft-buildd-base-v7--20d64a5acd5c317c9c8d -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical apt-get install -y apt-utils build-essential curl fuse udev python3 python3-dev python3-pip python3-wheel python3-setuptools gpg dirmngr' 2025-05-29 09:57:58.593 * Command exit code: 100 2025-05-29 09:57:58.594 * Command output: b'Reading package lists...\nBuilding dependency tree...\nReading state information...\nPackage python3 is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\nPackage fuse is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\nPackage python3-dev is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\n' 2025-05-29 09:57:58.594 * Command standard error output: b"E: Package 'fuse' has no installation candidate\nE: Package 'python3' has no installation candidate\nE: Package 'python3-dev' has no installation candidate\n" 2025-05-29 09:57:58.596 Traceback (most recent call last): 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/bases/ubuntu.py", line 232, in _setup_packages 2025-05-29 09:57:58.596 self._execute_run( 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/base.py", line 1151, in _execute_run 2025-05-29 09:57:58.596 proc = executor.execute_run( 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/lxd/lxd_instance.py", line 254, in execute_run 2025-05-29 09:57:58.596 return self.lxc.exec( 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/lxd/lxc.py", line 390, in exec 2025-05-29 09:57:58.596 return runner(final_cmd, timeout=timeout, check=check, **kwargs) 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/usr/lib/python3.10/subprocess.py", line 526, in run 2025-05-29 09:57:58.596 raise CalledProcessError(retcode, process.args, 2025-05-29 09:57:58.596 subprocess.CalledProcessError: Command '['lxc', '--project', 'charmcraft', 'exec', 'local:base-instance-charmcraft-buildd-base-v7--20d64a5acd5c317c9c8d', '--', 'env', 'CRAFT_MANAGED_MODE=1', 'CHARMCRAFT_MANAGED_MODE=1', 'DEBIAN_FRONTEND=noninteractive', 'DEBCONF_NONINTERACTIVE_SEEN=true', 'DEBIAN_PRIORITY=critical', 'apt-get', 'install', '-y', 'apt-utils', 'build-essential', 'curl', 'fuse', 'udev', 'python3', 'python3-dev', 'python3-pip', 'python3-wheel', 'python3-setuptools', 'gpg', 'dirmngr']' returned non-zero exit status 100. 2025-05-29 09:57:58.596 2025-05-29 09:57:58.596 The above exception was the direct cause of the following exception: 2025-05-29 09:57:58.596 Traceback (most recent call last): 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/lxd/lxd_provider.py", line 147, in launched_environment 2025-05-29 09:57:58.596 instance = launch( 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/lxd/launcher.py", line 783, in launch 2025-05-29 09:57:58.596 _create_instance( 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/lxd/launcher.py", line 150, in _create_instance 2025-05-29 09:57:58.596 base_configuration.setup(executor=base_instance, mount_cache=False) 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/base.py", line 1036, in setup 2025-05-29 09:57:58.596 self._setup_packages(executor=executor) 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/bases/ubuntu.py", line 239, in _setup_packages 2025-05-29 09:57:58.596 raise BaseConfigurationError( 2025-05-29 09:57:58.596 craft_providers.errors.BaseConfigurationError: Failed to install packages. 2025-05-29 09:57:58.596 * Command that failed: 'lxc --project charmcraft exec local:base-instance-charmcraft-buildd-base-v7--20d64a5acd5c317c9c8d -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical apt-get install -y apt-utils build-essential curl fuse udev python3 python3-dev python3-pip python3-wheel python3-setuptools gpg dirmngr' 2025-05-29 09:57:58.596 * Command exit code: 100 2025-05-29 09:57:58.596 * Command output: b'Reading package lists...\nBuilding dependency tree...\nReading state information...\nPackage python3 is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\nPackage fuse is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\nPackage python3-dev is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\n' 2025-05-29 09:57:58.596 * Command standard error output: b"E: Package 'fuse' has no installation candidate\nE: Package 'python3' has no installation candidate\nE: Package 'python3-dev' has no installation candidate\n" 2025-05-29 09:57:58.596 2025-05-29 09:57:58.596 The above exception was the direct cause of the following exception: 2025-05-29 09:57:58.596 Traceback (most recent call last): 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_application/application.py", line 691, in run 2025-05-29 09:57:58.596 return_code = self._run_inner() 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_application/application.py", line 674, in _run_inner 2025-05-29 09:57:58.596 self.run_managed(platform, build_for) 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/charmcraft/application/main.py", line 160, in run_managed 2025-05-29 09:57:58.596 super().run_managed(platform, build_for) 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_application/application.py", line 471, in run_managed 2025-05-29 09:57:58.596 with self.services.provider.instance( 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/usr/lib/python3.10/contextlib.py", line 135, in __enter__ 2025-05-29 09:57:58.596 return next(self.gen) 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/charmcraft/services/provider.py", line 120, in instance 2025-05-29 09:57:58.596 with super().instance( 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/usr/lib/python3.10/contextlib.py", line 135, in __enter__ 2025-05-29 09:57:58.596 return next(self.gen) 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_application/services/provider.py", line 159, in instance 2025-05-29 09:57:58.596 with provider.launched_environment( 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/usr/lib/python3.10/contextlib.py", line 135, in __enter__ 2025-05-29 09:57:58.596 return next(self.gen) 2025-05-29 09:57:58.596 File "/snap/charmcraft/6763/lib/python3.10/site-packages/craft_providers/lxd/lxd_provider.py", line 162, in launched_environment 2025-05-29 09:57:58.596 raise LXDError(str(error)) from error 2025-05-29 09:57:58.596 craft_providers.lxd.errors.LXDError: Failed to install packages. 2025-05-29 09:57:58.596 * Command that failed: 'lxc --project charmcraft exec local:base-instance-charmcraft-buildd-base-v7--20d64a5acd5c317c9c8d -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical apt-get install -y apt-utils build-essential curl fuse udev python3 python3-dev python3-pip python3-wheel python3-setuptools gpg dirmngr' 2025-05-29 09:57:58.596 * Command exit code: 100 2025-05-29 09:57:58.596 * Command output: b'Reading package lists...\nBuilding dependency tree...\nReading state information...\nPackage python3 is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\nPackage fuse is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\nPackage python3-dev is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\n' 2025-05-29 09:57:58.596 * Command standard error output: b"E: Package 'fuse' has no installation candidate\nE: Package 'python3' has no installation candidate\nE: Package 'python3-dev' has no installation candidate\n" ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Ubuntu 20.04 build failure with 'no installation candidate' for python3/fuse was transient: maintainer could not reproduce on edge 3.4.6.post113+gb3a1147e (6831); reporter confirmed charmcraft 3.5.3 works. Closed with no code change.
stealth/space-bunny-alpha — closed not a bug 20.04 LXD builds failed on apt package install; maintainer @lengau couldn't reproduce on edge rev 6831 (apt-get update is run), reporter confirmed charmcraft 3.5.3 works, so the issue was closed as transient.
stealth/space-bunny-alpha — closed not a bug Ubuntu 20.04 build failure was confirmed transient: maintainers could not reproduce it, and the reporter verified that charmcraft 3.5.3 works.
qwen3.6-35b-a3b-mtp-q6 — — Closed as transient. The Ubuntu 20.04 container package installation failure was resolved in charmcraft 3.5.3 by ensuring apt-get update runs before installing base packages.
qwen/qwen3.6-35b-a3b — — The 20.04 build failure from missing packages was resolved. Maintainers confirmed apt-get update runs before installation. The author verified the issue was transient and fixed in newer versions, leading to closure.
qwen/qwen3.6-35b-a3b — — Build failure for Ubuntu 20.04 charms due to missing packages was reported. Maintainers could not reproduce it and suspected a transient error. The author confirmed the issue resolved in charmcraft 3.5.3, and the report was closed.
qwen3.6-35b-a3b-mtp-q6 — — Closed as transient. The author confirmed the Ubuntu 20.04 build failure due to missing base packages resolved itself in charmcraft 3.5.3 without requiring code changes.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2259 Builds fail for 20.04 (in some common circumstances) charmcraft closed Fixed in canonical/charmcraft#2275 (commit 65d01ed5): charm builds now apply a bundled setuptools-scm constraint, avoiding the Python 3.8/3.9 all-source dependency cycle.
70%