Bug 2186544 - why can't dnf output errors?
Summary: why can't dnf output errors?
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-13 16:42 UTC by Harald Reindl
Modified: 2024-01-15 12:09 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-15 12:09:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Harald Reindl 2023-04-13 16:42:24 UTC
"yum" was able for many years to even dispaly which package of a transaction pulls a specific library as dep in normal updates - dnf don't output anything useful 

even not if it can't solve deps

[root@honeypot:~]$ rm -rf /var/cache/dnf/*

[root@honeypot:~]$ dnf --releasever=37 distro-sync
Buildserver @thelounge.net 37 - x86_64                                                                                                            1.8 MB/s | 145 kB     00:00
Lounge-Cache @thelounge.net 37 - x86_64                                                                                                            13 MB/s | 1.1 MB     00:00
Buildserver @thelounge.net 37 - mtune=native                                                                                                      1.1 MB/s |  85 kB     00:00
Error:
 Problem: The operation would result in removing the following protected packages: lounge-honeypot
(try to add '--skip-broken' to skip uninstallable packages)

[root@honeypot:~]$ dnf --releasever=37 --skip-broken distro-sync
Last metadata expiration check: 0:00:12 ago on Thu Apr 13 18:39:26 2023.
Error:
 Problem: The operation would result in removing the following protected packages: lounge-honeypot

 [root@honeypot:~]$ dnf -v --releasever=37 --skip-broken distro-sync
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, leaves, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, show-leaves
DNF version: 4.14.0
cachedir: /var/cache/dnf
User-Agent: constructed: 'libdnf (Generic 36; generic; Linux.x86_64)'
repo: using cache for: lounge-buildserver
lounge-buildserver: using metadata from Thu Apr 13 18:06:40 2023.
repo: using cache for: lounge-cache
lounge-cache: using metadata from Thu Apr 13 18:06:38 2023.
repo: using cache for: lounge-native
lounge-native: using metadata from Thu Apr 13 18:06:40 2023.
Last metadata expiration check: 0:00:29 ago on Thu Apr 13 18:39:26 2023.
--> Starting dependency resolution
--> Finished dependency resolution
Error:
 Problem: The operation would result in removing the following protected packages: lounge-honeypot

Comment 1 Jaroslav Mracek 2023-04-17 17:08:21 UTC
We will try to resolve the problem in DNF5. The problem with reports is that time to time libsolv (our solver) returns messages that are confusing but technically correct.

DNF is going to be replaced by DNF5 (fedora 39) therefore it would be better to fix it in DNF5

Comment 2 Harald Reindl 2023-04-17 19:30:31 UTC
> The problem with reports is that time to time libsolv (our solver) 
> returns messages that are confusing but technically correct

no matter how confusing a message is - it's more helpful as "don't work"

what problem do you think to solve by hide them?
if i don't understand them i can google
if i don't have them i can't do anything

the "confusing" messages at depsolv 15 years ago teached me to learn how rpm dependencies are woriking and where useful to avoid useless deps when you can abort because you decide to completly remove the package pulling a whole chain of libs

Comment 3 Aoife Moloney 2023-11-23 01:40:17 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Aoife Moloney 2024-01-15 12:09:44 UTC
Fedora Linux 37 entered end-of-life (EOL) status on 2023-12-05.

Fedora Linux 37 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.