Bug 1392146 - dnf update fails cos it's trying to remove booted kernel [NEEDINFO]
Summary: dnf update fails cos it's trying to remove booted kernel
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 24
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-05 09:33 UTC by Radek Vokál
Modified: 2017-04-10 15:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-10 15:29:24 UTC
Type: Bug
jmracek: needinfo? (rvokal)


Attachments (Terms of Use)
dnf librepo log (845.68 KB, text/plain)
2016-11-05 09:33 UTC, Radek Vokál
no flags Details

Description Radek Vokál 2016-11-05 09:33:13 UTC
Created attachment 1217540 [details]
dnf librepo log

Description of problem:
I have only one kernel on my F24. Runing dnf update fails with
Dependencies resolved.
Error: The operation would result in removing the booted kernel: kernel-core-4.6.5-300.fc24.x86_64.

I have only one kernel on the system
$ rpm -q kernel
kernel-4.6.5-300.fc24.x86_64

I'm trying to update to
kernel.x86_64                          4.8.4-200.fc24              updates

$ rpm -q dnf
dnf-1.1.10-1.fc24.noarch

Comment 1 Honza Silhan 2016-11-07 12:25:23 UTC
Thanks for the report. Can you please upload debugdata [1]? And post what is your `installonly_limit` option set in /etc/dnf/dnf.conf.

[1] https://github.com/rpm-software-management/dnf/wiki/Bug-Reporting#dependency-resolution-problem

Comment 2 Jaroslav Mracek 2016-11-07 12:37:13 UTC
Please do you have in /etc/dnf/dnf.conf options installonlypkgs=... ? If yes, the problem is here because the option in dnf-1.1 works that it overwrites default DNF values. Therefore for proper working it is necessary includes also DNF defaults for proper working. The behavior is changed with DNF 2.0 where installonlypkgs works like append where the user append value to default DNF kernel provides.

Installonlypkgs DNF defaults are ['kernel', 'installonlypkg(kernel)', 'installonlypkg(kernel-module)', 'installonlypkg(vm)']

Comment 3 Jaroslav Mracek 2016-11-14 12:13:56 UTC
Please can you confirm if your problem is related to any of above possibilities?

Comment 4 Jaroslav Mracek 2017-04-10 15:29:24 UTC
I believe that our response solved the problem therefore I am closing the bug. Please if the problem appears again, don't hesitate to reopen the bug report. 
Have a nice day.


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