← Back to issue list

Improve logging of Apt issues in Overlays

View original Github issue

Metadata

Project
craft-parts
Number
#485
Type
issue
State
open
Author
tigarmo
Labels
Created
Updated
Closed

Current evaluation

Overlay package install failures show only 'failed to install requested packages' with no apt error details; maintainer suggested adding apt stderr to deb.py. Unlabeled, no fix merged, last activity 538 days ago.

Suggested action: keep open

Reason: A maintainer (sergiusens) explicitly triaged this in 2023-07-03, pointing to deb.py#L576 and proposing to add the failed apt command's error details, so it is acknowledged and valid. The current _install_packages still raises BuildPackagesNotInstalled with only the package list and no apt stderr, so the improvement remains unimplemented and the issue is still relevant.

Impact: 55 Quick Win: 33.0 Staleness: 70 Complexity: 40 Confidence: 65 Support Request: 10

Issue body

### What needs to get done Currently we show little information when the installation of overlay-packages fails, it just says "failed to install requested packages". ### Why it needs to get done In [this specific case](https://chat.charmhub.io/charmhub/pl/f9a1e6e9ebr1b8ef9bnwqatg4y), the lack of priority on the ppa made a package uninstallable due to the dependencies, but I had to mount/chroot into the base and run the command myself to see the message.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 55
Quick Win: 33.0
Staleness: 70
Complexity: 40
Confidence: 65
Support Request: 10
keep open Overlay package install failures show only 'failed to install requested packages' with no apt error details; maintainer suggested adding apt stderr to deb.py. Unlabeled, no fix merged, last activity 538 days ago.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 20
Confidence: 80
Support Request: 10
close stale Request to improve error logging when overlay package installation fails, as current messages lack details needed for debugging. Currently inactive after a 2023 maintainer suggestion.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 20
Confidence: 75
Support Request: 10
close stale Request to improve error logging for failed apt package installations in overlays. Currently shows generic failure messages. Last updated 16 months ago after a maintainer suggested adding detailed apt errors to the codebase.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 75
Support Request: 10
close stale Add apt command error details to overlay package installation failures instead of generic messages. Internal Jira ticket CRAFT-2962 created. Awaiting implementation or assignment. Last updated 465 days ago.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.