Bug 1177074 - can't install or upgrade a kernel because its version is in between already installed versions
Summary: can't install or upgrade a kernel because its version is in between already i...
Keywords:
Status: CLOSED DUPLICATE of bug 1160950
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Radek Holy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1160004 1187721 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-24 04:36 UTC by Chris Murphy
Modified: 2015-10-06 02:14 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-09 14:37:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Chris Murphy 2014-12-24 04:36:01 UTC
Description of problem: I have one 3.14.x, two 3.18, and one 3.19 kernels installed. I'd like to install a 3.17 kernel but both dnf install and dnf upgrade fail


Version-Release number of selected component (if applicable):
dnf-0.6.3-2.fc21.noarch
hawkey-0.5.2-1.fc21.i686

How reproducible:
Always

Steps to Reproduce:
1. Download rpms from koji into a folder
2. dnf install *rpm
3. dnf upgrade *rpm

Actual results:

[root@f21s kernels]# dnf install *rpm
Package kernel-3.14.26-100.fc19.i686 is already installed, skipping.
Package kernel-core-3.18.0-1.fc22.i686 is already installed, skipping.
Package kernel-debug-3.18.1-2.fc22.i686 is already installed, skipping.
Package kernel-debug-core-3.18.1-2.fc22.i686 is already installed, skipping.
Package kernel-debug-modules-3.18.1-2.fc22.i686 is already installed, skipping.
Package kernel-modules-3.18.0-1.fc22.i686 is already installed, skipping.
Error: Nothing to do.
[root@f21s kernels]# dnf upgrade *rpm
Package kernel of higher version already installed, cannot update it.
Package kernel-core of higher version already installed, cannot update it.
Package kernel-debug of higher version already installed, cannot update it.
Package kernel-debug-core of higher version already installed, cannot update it.
Package kernel-debug-modules of higher version already installed, cannot update it.
Package kernel-modules of higher version already installed, cannot update it.
Error: No packages marked for upgrade.


Expected results:

Seems like one of them should work, and it also seems like for kernels there doesn't need to be a distinction between install and upgrade.

Additional info:

Kernels downloaded that I want installed:

[root@f21s kernels]# ll
total 70000
-rw-r--r--. 1 root root    43120 Dec 23 21:10 kernel-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root 18131576 Dec 23 21:10 kernel-core-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root    43200 Dec 23 21:10 kernel-debug-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root 19339820 Dec 23 21:12 kernel-debug-core-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root 17332348 Dec 23 21:12 kernel-debug-modules-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root 16779072 Dec 23 21:12 kernel-modules-3.17.7-300.fc21.i686.rpm

Comment 1 Chris Murphy 2014-12-24 05:17:39 UTC
yum install *rpm works

Comment 2 Radek Holy 2015-01-07 15:55:13 UTC
*** Bug 1179720 has been marked as a duplicate of this bug. ***

Comment 3 Radek Holy 2015-01-07 16:02:08 UTC
Thank you for the report and for a nice example. I also think that we should support "dnf install kernel-X.Y" since kernel is "installonly" and it's intuitive to call "dnf install" then. Even more things like "dnf downgrade kernel-X.Y" do not make sense to me since it actually does not do a downgrade.

Comment 4 Honza Silhan 2015-01-15 16:30:32 UTC
Radek, change install to do what you wrote in comment 3, please.

Comment 5 Honza Silhan 2015-01-20 11:03:38 UTC
*** Bug 1160004 has been marked as a duplicate of this bug. ***

Comment 6 Radek Holy 2015-02-02 08:05:46 UTC
*** Bug 1187721 has been marked as a duplicate of this bug. ***

Comment 7 Radek Holy 2015-02-09 14:37:21 UTC
The root cause is the same as in bug 1160950.

*** This bug has been marked as a duplicate of bug 1160950 ***


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