Bug 1349314 - Dnf autoremove removes kernel-modules-extra but dnf update reinstalls those kernel modules again.
Dnf autoremove removes kernel-modules-extra but dnf update reinstalls those ...
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
25
x86_64 Linux
low Severity low
: ---
: ---
Assigned To: rpm-software-management
Fedora Extras Quality Assurance
: EasyFix, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-23 04:27 EDT by smurfendrek123
Modified: 2017-04-12 10:53 EDT (History)
11 users (show)

See Also:
Fixed In Version: dnf-2.3.0-1.fc26
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-04-12 10:53:20 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Debugdata after running autoremove and update (11.54 MB, application/x-tar)
2016-06-27 19:21 EDT, smurfendrek123
no flags Details

  None (edit)
Description smurfendrek123 2016-06-23 04:27:53 EDT
Description of problem:
When i run dnf autoremove, it removes  kernel-modules-extra version 4.5.7-300.fc24.

When i run autoremove the exact same kernel modules get reinstalled again.

Version-Release number of selected component (if applicable): 1.1.9


How reproducible:
On my machine, it happens every time.


Steps to Reproduce:
1. Run sudo dnf autoremove
2. Run sudo dnf update

Actual results:
It removes kernel-modules-extra while it probably shouldn't

Expected results:
It shouldn't remove kernel-modules-extra

Additional info:
This is on a fresh install of fedora 24
Comment 1 smurfendrek123 2016-06-23 10:29:11 EDT
In the description the second autoremove should be dnf update, sorry.
Comment 2 Igor Gnatenko 2016-06-27 07:34:41 EDT
Please run dnf autoremove with --debugsolver and attach debugdata directory and also then run dnf update with --debugsolver and also attach debugdata.
Comment 3 Jaroslav Mracek 2016-06-27 07:41:32 EDT
Please, can you provide additional information about:
What packages were in autoremove transaction?
What packages were in upgrade transaction?
If after upgrade the `dnf autoremove` command is run, remove it again kernel-modules-extra ?

Thank you very much for additional information.
Comment 4 smurfendrek123 2016-06-27 19:21 EDT
Created attachment 1173196 [details]
Debugdata after running autoremove and update

I don't know if this is proper, if you need more, just ask.
Comment 5 smurfendrek123 2016-06-27 19:24:08 EDT
Jaroslav, the only package in both autoremove and update is: 

kernel-modules-extra      x86_64      4.5.7-300.fc24       @updates      2.1 M


If i run dnf autoremove after running dnf update, it still tries to remove the kernel modules extra, it's an endless cycle of autoremove and update.
Comment 6 Michael Schröder 2016-06-29 05:55:15 EDT
Dnf doesn't mark kernel-modules-extra-4.5.7-300 as userinstalled when it updates the kernel-modules-extra-4.5.5-300 package (which is userinstalled).

I seem to remember a fix in dnf or hawkey that makes it propagate the userinstalled flag on update, so maybe this is already solved. Or it does not work with multiinstall packages.
Comment 7 Honza Silhan 2016-07-04 07:10:38 EDT
We will investigate. Thanks Michael for the hint.
Comment 8 Fedora Admin XMLRPC Client 2016-07-08 05:31:11 EDT
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.
Comment 9 smurfendrek123 2016-10-17 12:20:24 EDT
Hello, i'm sorry if this is innapropriate, but this is marked as easyfix, but it's still not fixed. How come?
Comment 10 Benjamin Xiao 2016-11-02 04:36:03 EDT
Still seeing this behavior on Fedora 24 with latest updates.
Comment 11 secondary 2016-12-04 12:55:49 EST
Now on F25.
Comment 12 Sherif Omar 2016-12-05 13:08:04 EST
Now on F25.
Comment 13 Jaroslav Mracek 2017-01-12 09:28:40 EST
Please can you try dnf-2.0 from our test repository (sudo dnf copr enable rpmsoftwaremanagement/dnf-nightly)? Thanks a lot
Comment 14 Igor Gnatenko 2017-01-12 10:01:06 EST
btw, I can reproduce this on my tablet on F25.
Comment 15 smurfendrek123 2017-01-25 19:35:44 EST
Currently this doesn't happen anymore on f25 with dnf 1.1.

My currently installed kernels are: (output of rpm -qa kernel

kernel-4.9.4-201.fc25.x86_64
kernel-4.9.3-200.fc25.x86_64
kernel-4.9.5-200.fc25.x86_64
Comment 16 Jaroslav Mracek 2017-01-27 14:55:28 EST
Please can you Igor investigate the issue, try it to reproduce with DNF 2.0 and provide as much as possible information to make it fixable.
Comment 17 Marco Kundt 2017-02-10 14:33:44 EST
I do have the same problem with the kernel-modules package. Right now it's kernel-modules-4.9.8-201.fc25.x86_64. On 4.9.7 i used `sudo dnf mark userinstalled kernel-modules` which i thought to be a general mark, and not pinned to the version.

dnf-version: 1.1.10-5.fc25
Comment 18 Jaroslav Mracek 2017-03-30 12:37:14 EDT
I create patch that should fix the problem: https://github.com/rpm-software-management/dnf/pull/775
Comment 19 Fedora Update System 2017-04-10 04:02:13 EDT
dnf-2.3.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-80f2c2bb64
Comment 20 Fedora Update System 2017-04-10 20:25:58 EDT
dnf-2.3.0-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-80f2c2bb64
Comment 21 Fedora Update System 2017-04-12 10:53:20 EDT
dnf-2.3.0-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

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