← Back to issue list

Proper error for apt hash sum mismatches

View original Github issue

Metadata

Project
snapcraft
Number
#2029
Type
issue
State
closed
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by merged PR #2079 (commit d879b2e3a), which added CacheUpdateFailedError, caught apt's FetchFailedException and cleared the index on hashsum mismatch, closing #2029, #2030 and LP #1747715.

Resolution: closed resolved

Reason: Maintainer kyrofa pointed to PR #2079 as the fix, which was merged as commit d879b2e3a. That PR introduced CacheUpdateFailedError, caught apt.cache.FetchFailedException and cleared the package index on hashsum mismatch, and its description lists #2029 among the issues it fixes.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Does not necessarily fix, but it does improve the messaging for: [Newer appstream causes snapcraft to fail](https://bugs.launchpad.net/snapcraft/+bug/1747715)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #2079 (commit d879b2e3a), which added CacheUpdateFailedError, caught apt's FetchFailedException and cleared the index on hashsum mismatch, closing #2029, #2030 and LP #1747715.
stealth/space-bunny-alpha — closed resolved Improved apt hash-mismatch error handling and messaging through merged PR #2079 (commit d879b2e3a), addressing LP #1747715.
qwen/qwen3.6-35b-a3b — — Resolved by merged pull request #2079, which implements improved error messaging for apt hash sum mismatches. The issue was closed as a reference for the fix addressing launchpad bug 1747715.
qwen/qwen3.6-35b-a3b — — Improved error messaging for apt hash sum mismatches was merged via PR #2079, resolving the issue.
qwen/qwen3.6-35b-a3b — — Closed. Improved error messaging for apt hash sum mismatches was resolved via pull request #2079.
qwen3.6-35b-a3b-mtp-q6 — — Resolved via PR #2079, which improved error messaging for apt hash sum mismatches. The merged fix provides clearer feedback during snapcraft failures and addresses the reported problem.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#2079 (confidence 98%)

    Merged PR by kalikiana, commit d879b2e3a, explicitly fixes #2029 alongside #2030 and LP bug #1747715; cited in the closing comment by kyrofa.

  • Related To: canonical/snapcraft#2030 (confidence 70%)

    Also listed as fixed by the same commit d879b2e3a; same apt hashsum/cache failure family.

Related issues

Issue Project State Summary Similarity
#2079 repo: catch error updating the package cache snapcraft merged PR #2079 by kalikiana merged as commit d879b2e3a, adding CacheUpdateFailedError, catching apt.cache.FetchFailedException and clearing the index on hashsum mismatch. Fixed #2029, #2030 and LP #1747715.
78%