Description of problem: When running "dnf upgrade", it reports that it cannot install the best update candidate for kernel related packages and suggests to reinstall them. When you confirm the operation, it produces the same output with the next "dnf upgrade". Version-Release number of selected component (if applicable): dnf-2.7.5-8.fc28.noarch How reproducible: Always Steps to Reproduce: 1. Run the "dnf upgrade" command Actual results: Problem 1: cannot install both kernel-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-4.15.7-300.fc27.x86_64 Expected results: Dnf should not reinstall packages when there are no updates available. Additional info: Last metadata expiration check: 1:04:52 ago on Tue 13 Mar 2018 12:24:27 PM CET. Dependencies resolved. Problem 1: cannot install both kernel-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-4.15.7-300.fc27.x86_64 Problem 2: cannot install both kernel-core-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-core-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-core-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-core-4.15.7-300.fc27.x86_64 Problem 3: cannot install both kernel-debug-core-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-debug-core-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-debug-core-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-debug-core-4.15.7-300.fc27.x86_64 Problem 4: cannot install both kernel-debug-devel-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-debug-devel-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-debug-devel-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-debug-devel-4.15.7-300.fc27.x86_64 Problem 5: cannot install both kernel-debug-modules-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-debug-modules-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-debug-modules-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-debug-modules-4.15.7-300.fc27.x86_64 Problem 6: cannot install both kernel-debug-modules-extra-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-debug-modules-extra-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-debug-modules-extra-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-debug-modules-extra-4.15.7-300.fc27.x86_64 Problem 7: cannot install both kernel-devel-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-devel-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-devel-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-devel-4.15.7-300.fc27.x86_64 Problem 8: cannot install both kernel-modules-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-modules-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-modules-4.16.0-0.rc4.git0.1.fc28.x86_64 - cannot install the best update candidate for package kernel-modules-4.15.7-300.fc27.x86_64 ======================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================== Reinstalling: kernel x86_64 4.16.0-0.rc4.git0.1.fc28 fedora 88 k kernel-core x86_64 4.16.0-0.rc4.git0.1.fc28 fedora 24 M kernel-debug-core x86_64 4.16.0-0.rc4.git0.1.fc28 fedora 25 M kernel-debug-devel x86_64 4.16.0-0.rc4.git0.1.fc28 fedora 13 M kernel-debug-modules x86_64 4.16.0-0.rc4.git0.1.fc28 fedora 28 M kernel-debug-modules-extra x86_64 4.16.0-0.rc4.git0.1.fc28 fedora 2.3 M kernel-devel x86_64 4.16.0-0.rc4.git0.1.fc28 fedora 12 M kernel-modules x86_64 4.16.0-0.rc4.git0.1.fc28 fedora 27 M Transaction Summary ======================================================================================================================================================== Total download size: 131 M Is this ok [y/N]:
Please can you provide data created by "dnf --debugsolver upgrade" command? Thanks a lot
Additionally please can you try our upstream dnf if you can reproduce the bug (dnf copr enable rpmsoftwatemanagement/dnf-nightly)? Thanks a lot.
I have the same issue, so I'll provide the debugdata from dnf (Sorry for all the copr related data, but I'm not sure I'm supposed to filter them out). I have the same F28Beta version of Fedora, and kernel keeps asking about reinstalling each time I run the upgrade command (with also a small issue about nss-pem package, it could show up in the debugdata). The copr doesn't work when I try to update dnf (even after correcting the small typo in rpmsoftwaremanagement name)
Created attachment 1420271 [details] debugdata folder created with --debugsolver The requested data
It is related to modular support, and possibly libmodulemd. I saw it in a server updated from Boltron, which went away when I deleted the left over module yaml files. I recently replaced the install with a F28 server one, and the symptom has just reappeared after the latest update to dnf-2.7.5-9.fc28 which pulled in libmodulemd. Now dnf update gives Problem 1: cannot install both kernel-4.16.1-300.fc28.x86_64 and kernel-4.16.1-300.fc28.x86_64 - cannot install the best update candidate for package kernel-4.16.1-300.fc28.x86_64 - cannot install the best update candidate for package kernel-4.16.0-300.fc28.x86_64 Problem 2: cannot install both kernel-core-4.16.1-300.fc28.x86_64 and kernel-core-4.16.1-300.fc28.x86_64 - cannot install the best update candidate for package kernel-core-4.16.1-300.fc28.x86_64 - cannot install the best update candidate for package kernel-core-4.16.0-300.fc28.x86_64 Problem 3: cannot install both kernel-modules-4.16.1-300.fc28.x86_64 and kernel-modules-4.16.1-300.fc28.x86_64 - cannot install the best update candidate for package kernel-modules-4.16.1-300.fc28.x86_64 - cannot install the best update candidate for package kernel-modules-4.16.0-300.fc28.x86_64 ================================================================================ Package Arch Version Repository Size ================================================================================ Reinstalling: kernel x86_64 4.16.1-300.fc28 updates-testing 90 k kernel-core x86_64 4.16.1-300.fc28 updates-testing 24 M kernel-modules x86_64 4.16.1-300.fc28 updates-testing 27 M Transaction Summary ================================================================================ but dnf update --disablerepo=\*modular\* gives Nothing to do. as does dnf update --disablerepo=fedora-modular --disablerepo=updates-modular but the kernel reinstall happens if either fedora-modular or updates-modular is enabled.
I see this issue when I invoke 'dnf update kernel*'. 'dnf update' does not list kernel in the update list. Its a bit disconcerting that it wants to reinstall currently running/active kernel [root@asterix ~]# dnf update kernel Last metadata expiration check: 0:00:00 ago on Sun 22 Apr 2018 11:52:22 AM CDT. Dependencies resolved. Problem: cannot install both kernel-4.16.3-300.fc28.x86_64 and kernel-4.16.3-300.fc28.x86_64 - cannot install the best update candidate for package kernel-4.16.3-300.fc28.x86_64 - cannot install the best update candidate for package kernel-4.16.2-300.fc28.x86_64 ============================================================================================== Package Arch Version Repository Size ============================================================================================== Reinstalling: kernel x86_64 4.16.3-300.fc28 updates-testing 91 k Transaction Summary ============================================================================================== Total download size: 91 k Is this ok [y/N]: n Operation aborted. [root@asterix ~]# uname -a Linux asterix 4.16.3-300.fc28.x86_64 #1 SMP Thu Apr 19 19:04:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux [root@asterix ~]# dnf update |grep kernel n Operation aborted. [root@asterix ~]# dnf check-update |grep kernel [root@asterix ~]# [root@asterix ~]# rpm -q dnf dnf-2.7.5-12.fc28.noarch [root@asterix ~]#
The problem is fixed in upstream and will be released as part of dnf-4.0 and libsolv-0.6.35-3.
Here is a copr repository for testing https://copr.fedorainfracloud.org/coprs/jmracek/dnf-upstream.
*** This bug has been marked as a duplicate of bug 1616118 ***
On F29 - I don't see this problem anymore [root@asterix ~]# rpm -q libsolv dnf libsolv-0.6.35-3.fc29.x86_64 dnf-3.6.1-1.fc29.noarch [root@asterix ~]# dnf update kernel* Last metadata expiration check: 0:03:27 ago on Mon 08 Oct 2018 09:50:00 AM CDT. Dependencies resolved. Nothing to do. Complete! [root@asterix ~]# I guess the fix is primarily in libsolv-0.6.35-3 and not necessarily in dnf-4.0