← Back to issue list

fail to build when dependent on core20 (charmcraft<2.x)

View original Github issue

Metadata

Project
charmcraft
Number
#2231
Type
issue
State
closed
Author
rodrigogansobarbieri
Labels
Created
Updated
Closed

Current evaluation

Resolved in newer releases. The core20 snap installation failure affecting charmcraft 1.5 through 2.2 was fixed in updated Charmcraft 2.x and Charmcraft 3, as the originally reported versions are now unsupported.

Suggested action:

No scores available.

Issue body

### Bug Description Trying to build any charm using charmcraft 1.5, 2.0, 2.1, or 2.2 will result in an error when the build env is installing core20 and snapd: 2025-03-13 10:17:46.898 * Command standard error output: b'error: cannot perform the following tasks:\n- Ensure prerequisites for "charmcraft" are available (cannot install snap base "core20": snap "core20" assumes unsupported features: snapd2.61 (try to refresh snapd))\n' More details at: https://pastebin.ubuntu.com/p/95t7ZWMtCx/plain/ It can be easily reproduced by creating a bionic VM and running "sudo snap install core20". It will fail. The solution is to install snapd first, then installing core20 succeeds. If the charmcraft build script installed snapd prior to attempting to install core20, it would avoid the issue and address the inability to build older charms that are pinned to use older charmcraft versions. ### To Reproduce It can be easily reproduced by creating a bionic VM and running "sudo snap install core20". ### Environment charmcraft 1.5, 2.0, 2.1, or 2.2 ### charmcraft.yaml ```yaml not relevant ``` ### Relevant log output ```shell https://pastebin.ubuntu.com/p/95t7ZWMtCx/plain/ ```

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6 Resolved in newer releases. The core20 snap installation failure affecting charmcraft 1.5 through 2.2 was fixed in updated Charmcraft 2.x and Charmcraft 3, as the originally reported versions are now unsupported.
qwen/qwen3.6-35b-a3b Fixed in newer Charmcraft 2 and 3 releases. The core20 snapd version incompatibility causing build failures was resolved upstream, though the originally reported charmcraft versions are now unsupported.
qwen/qwen3.6-35b-a3b Build failures installing core20 due to snapd version mismatches in charmcraft 1.5-2.2 were resolved. The report is closed as those versions are unsupported, but the underlying bug was fixed in newer Charmcraft 2.x and 3.x releases.
qwen3.6-35b-a3b-mtp-q6 Fixed in newer Charmcraft 2.x and 3.x releases. The reported older versions are unsupported, but the core20 snap installation failure due to snapd version mismatch is resolved in current builds.
qwen3.6-35b-a3b-mtp-q6 Closed. The core20 installation failure caused by snapd version mismatches was fixed in newer Charmcraft 2 and Charmcraft 3 releases. Older unsupported versions remain unaffected.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#646 Failed to inject host Charmcraft snap into target environment charmcraft closed Closed. Maintainer confirmed the issue is resolved in recent Charmcraft versions and cannot be reproduced. A user workaround suggested running charmcraft clean --verbose prior to building.
70%