mmdebstrap: Show APT's dependency trace when in debug mode #24

Closed
gioele wants to merge 1 commit from gioele/mmdebstrap:debug-show-apt-resolution into main
Contributor

A dependency trace is a powerful tool to debug issues related to APT's selection of packages, especially in custom mode.

Thus it makes sense to ask APT to output a dependency trace when mmdebstrap is run with the --debug flag.

A dependency trace is a powerful tool to debug issues related to APT's selection of packages, especially in custom mode. Thus it makes sense to ask APT to output a dependency trace when `mmdebstrap` is run with the `--debug` flag.
gioele added 1 commit 2022-03-15 10:16:28 +00:00
A dependency trace is a powerful tool to debug issues related to
APT's selection of packages, especially in custom mode.

Thus it makes sense to ask APT to output a dependency trace when
`mmdebstrap` is run with the `--debug` flag.
Owner

We never need this if apt succeeds, correct? If yes, and this is only about figuring out why apt failed to do what it was asked to do, then instead we should add some code that, if apt fails, runs apt again with better options and dumps the EDSP.

We never need this if apt succeeds, correct? If yes, and this is only about figuring out why apt failed to do what it was asked to do, then instead we should add some code that, if apt fails, runs apt again with better options and dumps the EDSP.
Author
Contributor

We never need this if apt succeeds, correct?

Personally, I also used this to understand why certain packages were brought it. In that case apt did not error out, but did not produce the result I was expecting.

If yes, and this is only about figuring out why apt failed to do what it was asked to do, then instead we should add some code that, if apt fails, runs apt again with better options and dumps the EDSP.

That would be great, but I'm afraid it's above my current knowledge of mmdebstrap.

> We never need this if apt succeeds, correct? Personally, I also used this to understand why certain packages were brought it. In that case apt did not error out, but did not produce the result I was expecting. > If yes, and this is only about figuring out why apt failed to do what it was asked to do, then instead we should add some code that, if apt fails, runs apt again with better options and dumps the EDSP. That would be great, but I'm afraid it's above my current knowledge of `mmdebstrap`.
gioele force-pushed debug-show-apt-resolution from a4b7239d71 to 27fca53e1d 2022-08-20 15:06:12 +00:00 Compare
Owner

Added in 7ce6db0ca7. Thanks!

Added in 7ce6db0ca768d18390c9d34d67b83f4c22e262b1. Thanks!
josch closed this pull request 2022-09-02 08:48:07 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/mmdebstrap#24
No description provided.