← 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 installation failures still collapse apt-get errors into a generic BuildPackagesNotInstalled message, omitting dependency and PPA diagnostics; the logging improvement remains unimplemented.

Suggested action: keep open

Reason: The issue identifies a concrete debugging gap, and maintainer @sergiusens specifically recommended adding failed apt command details in deb.py. The current install path only raises BuildPackagesNotInstalled(packages=...) from the CalledProcessError, while the exception stores no apt output; no resolving change is present. The age and lack of recent activity do not make this valid diagnostic issue stale.

Evaluated by: mr-cal-bot

Impact: 42 Quick Win: 23 Complexity: 25 Confidence: 93 Actionability: 74

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
stealth/space-bunny-alpha
Impact: 42
Quick Win: 23
Complexity: 25
Confidence: 93
Actionability: 74
keep open Overlay package installation failures still collapse apt-get errors into a generic BuildPackagesNotInstalled message, omitting dependency and PPA diagnostics; the logging improvement remains unimplemented.
stealth/space-bunny-alpha
Impact: 42
Quick Win: 20
Complexity: 38
Confidence: 85
Actionability: 78
keep open Acknowledged request to log apt error details when overlay-packages install fails; deb.py still raises BuildPackagesNotInstalled with no apt output, forcing users to chroot into the base to diagnose. Confirmed unfixed; tracked as CRAFT-2962.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 22
Complexity: 15
Confidence: 82
Actionability: 75
keep open Overlay apt install failures show only 'failed to install requested packages' without apt error details. Maintainer suggested adding error output to deb.py. Still unfixed; code raises BuildPackagesNotInstalled without apt stderr.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 19
Complexity: 20
Confidence: 80
Actionability: 80
keep open Improve error logging when apt package installation fails in overlays by including apt command output in the exception message.
qwen/qwen3.8-27b
Impact: 55
Quick Win: 33
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.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.