Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print a hint on transaction file dependency failure #1131

Closed
evan-goode opened this issue Jan 4, 2024 · 1 comment · Fixed by #1328
Closed

Print a hint on transaction file dependency failure #1131

evan-goode opened this issue Jan 4, 2024 · 1 comment · Fixed by #1328
Labels
Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Milestone

Comments

@evan-goode
Copy link
Member

This is the DNF 5 equivalent of rpm-software-management/dnf#2026.

DNF 5 does not load filelist metadata by default, so it will error when trying to install packages that depend on file paths (paths in /usr/bin, /usr/sbin, and /etc are OK, however). To the user, it may not be clear what the underlying issue is, see fedora-copr/copr#3070. The current output includes:

Failed to resolve the transaction:
No match for argument: /usr/share/fonts/dejavu-sans-fonts/DejaVuSans-Bold.ttf
No match for argument: /usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf

If a transaction fails due to a missing file dependency and filelists are not loaded, DNF 5 should print a helpful message to the user suggesting they try again with --setopt=optional_metadata_types=filelists.

@evan-goode
Copy link
Member Author

Somewhat related: #1053

@jan-kolarik jan-kolarik added Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take labels Jan 12, 2024
@jan-kolarik jan-kolarik added this to the Fedora 41 milestone Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants