Bug 1160004

Summary: Cannot install older kernel
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: dnfAssignee: Michal Luscon <mluscon>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: 20CC: akozumpl, jsilhan, jskarvad, mluscon, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-20 11:03:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Škarvada 2014-11-03 20:50:57 UTC
Description of problem:
Older kernel cannot be installed.

Version-Release number of selected component (if applicable):
dnf-0.5.4-2.fc20.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install mst copr repo: https://copr.fedoraproject.org/coprs/airlied/mst/
2. Install 3 successive kernel versions from the fedora updates repo
3. dnf install kernel-3.15.8-200.mst.fc20

Actual results:
Chyba: conflicting requests

Expected results:
Removal of the oldest kernel from the 3 installed kernels and installation of the kernel-3.15.8-200.mst.fc20

Additional info:
yum has no problem with such downgrade:

# yum install kernel-3.15.8-200.mst.fc20
Řešení závislostí...
--> Kontrola transakce spuštěna
---> Balíček kernel.x86_64 0:3.15.8-200.mst.fc20 bude instalován
--> Řešení závislostí dokončeno
--> Kontrola transakce spuštěna
---> Balíček kernel.x86_64 0:3.16.4-200.fc20 bude smazán
--> Zpracování závislostí: kernel-uname-r = 3.16.4-200.fc20.x86_64 pro balíček: kernel-modules-extra-3.16.4-200.fc20.x86_64
--> Zpracování závislostí: kernel-uname-r = 3.16.4-200.fc20.x86_64 pro balíček: kmod-VirtualBox-3.16.4-200.fc20.x86_64-4.3.16-1.fc20.3.x86_64
--> Kontrola transakce spuštěna
---> Balíček kernel-modules-extra.x86_64 0:3.16.4-200.fc20 bude smazán
---> Balíček kmod-VirtualBox-3.16.4-200.fc20.x86_64.x86_64 0:4.3.16-1.fc20.3 bude smazán
--> Řešení závislostí dokončeno

Závislosti vyřešeny.

================================================================================
 Package                           Arch   Verze               Repozitář    Vel.
================================================================================
Instalování:
 kernel                            x86_64 3.15.8-200.mst.fc20 airlied-mst  32 M
Odstraňuje se:
 kernel                            x86_64 3.16.4-200.fc20     installed   138 M
Odstranění kvůli závislostem:
 kernel-modules-extra              x86_64 3.16.4-200.fc20     installed   8.2 M
 kmod-VirtualBox-3.16.4-200.fc20.x86_64
                                   x86_64 4.3.16-1.fc20.3     installed   962 k

Shrnutí transakce
================================================================================
Instalovat  1 Balíček
Odstranění  1 Balíček (+2 Závislé balíčky)

Celková velikost ke stahování: 32 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for airlied-mst
kernel-3.15.8-200.mst.fc20.x86_64.rpm                       |  32 MB  00:43     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
Varování: RPMDB byla změněna mimo yum.
  Instalování: kernel-3.15.8-200.mst.fc20.x86_64                            1/4 
  Odstranění : kernel-modules-extra-3.16.4-200.fc20.x86_64                  2/4 
  Odstranění : kmod-VirtualBox-3.16.4-200.fc20.x86_64-4.3.16-1.fc20.3.x86   3/4 
  Vymazání   : kernel-3.16.4-200.fc20.x86_64                                4/4 
  Ověřování  : kernel-3.15.8-200.mst.fc20.x86_64                            1/4 
  Ověřování  : kernel-3.16.4-200.fc20.x86_64                                2/4 
  Ověřování  : kmod-VirtualBox-3.16.4-200.fc20.x86_64-4.3.16-1.fc20.3.x86   3/4 
  Ověřování  : kernel-modules-extra-3.16.4-200.fc20.x86_64                  4/4 

Odstraněno:
  kernel.x86_64 0:3.16.4-200.fc20                                               

Odstraněné závislosti:
  kernel-modules-extra.x86_64 0:3.16.4-200.fc20                                 
  kmod-VirtualBox-3.16.4-200.fc20.x86_64.x86_64 0:4.3.16-1.fc20.3               

Nainstalováno:
  kernel.x86_64 0:3.15.8-200.mst.fc20

Comment 1 Honza Silhan 2014-11-04 15:32:36 UTC
Thanks for the report. Can you try it with downgrade command with `--allowerasing` option, in f21 if you can, please? or upload dubugdata [1].

[1] http://dnf.baseurl.org/2013/11/25/reporting-depsolving-bugs/

Comment 2 Jaroslav Škarvada 2014-11-05 14:09:39 UTC
Tried on latest Fedora 21, dnf-0.6.2-1.fc21.noarch and the following seems also weird:

# dnf list kernel
Copr repo for mst owned by airlied              171 kB/s | 566 kB     00:03    
Installed Packages
kernel.x86_64                        3.8.13-100.fc17                 @System    
kernel.x86_64                        3.9.4-300.fc19                  @System    
kernel.x86_64                        3.17.2-300.fc21                 @System    
kernel-core.x86_64                   3.17.2-300.fc21                 @System    

# dnf install 'https://kojipkgs.fedoraproject.org//packages/kernel/3.17.1/304.fc21/x86_64/kernel-3.17.1-304.fc21.x86_64.rpm'
Package kernel-3.8.13-100.fc17.x86_64 is already installed, skipping.
Error: Nothing to do.

Yum shows problems (at least):
# yum install 'https://kojipkgs.fedoraproject.org//packages/kernel/3.17.1/304.fc21/x86_64/kernel-3.17.1-304.fc21.x86_64.rpm'
...
Error: Package: kernel-3.17.1-304.fc21.x86_64 (/kernel-3.17.1-304.fc21.x86_64)
           Requires: kernel-modules-uname-r = 3.17.1-304.fc21.x86_64
           Installed: kernel-modules-3.17.2-300.fc21.x86_64 (installed)
               kernel-modules-uname-r = 3.17.2-300.fc21.x86_64
           Available: kernel-modules-3.16.1-301.mst.fc21.x86_64 (airlied-mst)
               kernel-modules-uname-r = 3.16.1-301.mst.fc21.x86_64
Error: Package: kernel-3.17.1-304.fc21.x86_64 (/kernel-3.17.1-304.fc21.x86_64)
           Requires: kernel-core-uname-r = 3.17.1-304.fc21.x86_64
           Installed: kernel-core-3.17.2-300.fc21.x86_64 (installed)
               kernel-core-uname-r = 3.17.2-300.fc21.x86_64
           Available: kernel-core-3.16.1-301.mst.fc21.x86_64 (airlied-mst)
               kernel-core-uname-r = 3.16.1-301.mst.fc21.x86_64

Btw by doing dnf autocomplete the following error shows up:
# dnf install ./kercut: you must specify a list of bytes, characters, or fields
Try 'cut --help' for more information.

"cut: you must specify a list of bytes, characters, or fields
Try 'cut --help' for more information."

I will probably open another bug for the autocomplete problem.

By using all the deps:
# dnf install ./kernel-3.17.1-304.fc21.x86_64.rpm ./kernel-core-3.17.1-304.fc21.x86_64.rpm ./kernel-modules-3.17.1-304.fc21.x86_64.rpm
Package kernel-3.8.13-100.fc17.x86_64 is already installed, skipping.
Package kernel-core-3.17.2-300.fc21.x86_64 is already installed, skipping.
Package kernel-modules-3.17.2-300.fc21.x86_64 is already installed, skipping.
Error: Nothing to do.

Yum has no problem with this.

I will provide debug data for this and the previous problem in the next comment.

Comment 3 Jaroslav Škarvada 2014-11-05 14:13:59 UTC
The --debugsolver option didn't create any debug directory for the previous command. I will try downgrading with --allowerasing.

Comment 4 Jaroslav Škarvada 2014-11-05 14:26:24 UTC
So I put the system to the following state (by using yum):
# dnf list kernel
Installed Packages
kernel.x86_64                        3.17.0-301.fc21                 @System    
kernel.x86_64                        3.17.1-304.fc21                 @System    
kernel.x86_64                        3.17.2-300.fc21                 @System    
kernel-core.x86_64                   3.17.0-301.fc21                 @System    
kernel-core.x86_64                   3.17.1-304.fc21                 @System    
kernel-core.x86_64                   3.17.2-300.fc21                 @System    
Available Packages
kernel.src                           3.16.1-301.mst.fc21             airlied-mst
kernel-debug-core.x86_64             3.17.2-300.fc21                 fedora     

# dnf install kernel-3.16.1-301.mst.fc21
Error: conflicting requests

# dnf downgrade --allowerasing kernel-3.16.1-301.mst.fc21
No match for available package: kernel-3.16.1-301.mst.fc21.src
No match for available package: kernel-3.16.1-301.mst.fc21.x86_64
Error: Nothing to do.

# yum install kernel-3.16.1-301.mst.fc21
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:3.16.1-301.mst.fc21 will be installed
--> Processing Dependency: kernel-core-uname-r = 3.16.1-301.mst.fc21.x86_64 for package: kernel-3.16.1-301.mst.fc21.x86_64
--> Processing Dependency: kernel-modules-uname-r = 3.16.1-301.mst.fc21.x86_64 for package: kernel-3.16.1-301.mst.fc21.x86_64
--> Running transaction check
---> Package kernel-core.x86_64 0:3.16.1-301.mst.fc21 will be installed
---> Package kernel-modules.x86_64 0:3.16.1-301.mst.fc21 will be installed
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.x86_64 0:3.17.0-301.fc21 will be erased
---> Package kernel-core.x86_64 0:3.17.0-301.fc21 will be erased
---> Package kernel-modules.x86_64 0:3.17.0-301.fc21 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch   Version             Repository                      Size
================================================================================
Installing:
 kernel         x86_64 3.16.1-301.mst.fc21 airlied-mst                     35 k
Removing:
 kernel         x86_64 3.17.0-301.fc21     @/kernel-3.17.0-301.fc21.x86_64
                                                                          0.0  
 kernel-core    x86_64 3.17.0-301.fc21     @/kernel-core-3.17.0-301.fc21.x86_64
                                                                           40 M
 kernel-modules x86_64 3.17.0-301.fc21     @/kernel-modules-3.17.0-301.fc21.x86_64
                                                                           17 M
Installing for dependencies:
 kernel-core    x86_64 3.16.1-301.mst.fc21 airlied-mst                     18 M
 kernel-modules x86_64 3.16.1-301.mst.fc21 airlied-mst                     17 M

Transaction Summary
================================================================================
Install  1 Package  (+2 Dependent packages)
Remove   3 Packages

Total download size: 35 M
Is this ok [y/d/N]:

Comment 5 Jaroslav Škarvada 2014-11-05 14:34:37 UTC
> Btw by doing dnf autocomplete the following error shows up:
> # dnf install ./kercut: you must specify a list of bytes, characters, or
> fields
> Try 'cut --help' for more information.
> 
> "cut: you must specify a list of bytes, characters, or fields
> Try 'cut --help' for more information."
> 
> I will probably open another bug for the autocomplete problem.
>
Reported as bug 1160744

Comment 6 Honza Silhan 2014-11-10 14:16:56 UTC
Thanks for the report. IMO dnf couldn't find package because of (In reply to Jaroslav Škarvada from comment #4)
> # dnf downgrade --allowerasing kernel-3.16.1-301.mst.fc21
> No match for available package: kernel-3.16.1-301.mst.fc21.src
> No match for available package: kernel-3.16.1-301.mst.fc21.x86_64
> Error: Nothing to do.

This is weird. Can you attach /var/cache/dnf archive (especially airlied-mst.solv and @System.solv), please?

Comment 7 Jaroslav Škarvada 2014-11-10 15:03:07 UTC
Unfortunately the archive is too big to be attached to bugzilla, so linking it:
https://fedorapeople.org/~jskarvad/dnf/dnf.tar.xz

Comment 8 Radek Holy 2015-01-16 16:19:26 UTC
FTR: according to the expected behavior of the "install" command, "dnf install" should do what Jaroslav wants in this case. (Just to make clear that the problem is not just with the "downgrade" command.)

Comment 9 Honza Silhan 2015-01-20 11:03:38 UTC

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