← Back to issue list

Failed to install GPG key: Key must be a single key, not multiple.

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2024910
Type
issue
State
closed
Author
~oliverhill
Labels
Created
Updated
Closed

Current evaluation

Snapcraft failed to install GPG keys when multiple keys were bundled in a single file during package-repositories setup. Fixed and merged via pull request #4253, restoring multi-key apt repository support.

Suggested action:

No scores available.

Issue body

Snapcraft version 7.4.3, Rev 9362 While attempting to build a snap, it fails almost immediately with the error "Failed to install GPG key: Key must be a single key, not multiple.". Attempting to send error data when prompted results in: "Encountered an issue while trying to submit the report: unhashable type: 'AptGPGKeyInstallError'" and a suggestion to post here. The problem seems to be when including puppet bolt via the "package-repositories" directive and an associated .asc key file. Presumably there is something in the key that snapcraft cannot parse any more. This issue looks like it has been reported elsewhere at https://forum.snapcraft.io/t/issue-with-gpg-key/35675/9 and https://github.com/snapcore/snapcraft/issues/4224, but I thought I'd add it here because the "report error data?" prompt asked me to.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Snapcraft failed to install GPG keys when multiple keys were bundled in a single file during package-repositories setup. Fixed and merged via pull request #4253, restoring multi-key apt repository support.
qwen3.6-35b-a3b-mtp-q6
Impact: 20
Quick Win: 17.0
Staleness: 95
Complexity: 15
Confidence: 90
Support Request: 10
close not a bug GPG key installation fails with 'Key must be a single key, not multiple' when using package-repositories directive. Duplicate of #4224 which was fixed via PR #4241.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 65
Confidence: 90
Support Request: 10
needs triage Snapcraft build fails with GPG key error when using package-repositories directive. Unlabeled, no maintainer response, inactive for ~3 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
close stale Snapcraft 7.4.3 build fails with a GPG key parsing error when using the package-repositories directive. Unlabelled, zero comments, inactive for over three years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 75
Support Request: 20
close stale Snapcraft build fails when installing a GPG key via package-repositories, citing multiple keys in the file. Unlabelled, zero comments, inactive for ~3 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 45
Confidence: 70
Support Request: 15
needs triage Snapcraft 7.4.3 fails to build when using package-repositories with a multi-key .asc file, throwing a GPG key parsing error. Unlabelled, zero comments, inactive for nearly three years.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#4224 Regression: snapcraft started failing with craft_archives.repo.errors.AptGPGKeyInstallError snapcraft closed A snapcraft regression causing AptGPGKeyInstallError from multi-key files was fixed. Resolution updated key parsing logic, with a hotfix released in version 7.4.4 and merged via PR #4241. The issue is closed.
73%