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"
```