dnf and strange problems with the kernels

Issues related to applications and software problems
Post Reply
dusan
Posts: 19
Joined: 2018/03/29 18:55:00

dnf and strange problems with the kernels

Post by dusan » 2019/02/16 06:41:54

Hello,

Firstly basic situation about my OS:
rpm -qa|grep dnf
libdnf-0.22.5-1.el7_6.x86_64
python2-dnf-plugins-core-4.0.2.2-3.el7_6.noarch
dnf-plugins-core-4.0.2.2-3.el7_6.noarch
dnf-data-4.0.9.2-1.el7_6.noarch
dnf-4.0.9.2-1.el7_6.noarch
python2-dnf-4.0.9.2-1.el7_6.noarch
python2-libdnf-0.22.5-1.el7_6.x86_64
===================
I am using kernel-3.10.0-957.5.1.el7.x86_64 or 3.10.0-957.1.3.el7.x86_64 or kernel-3.10.0-957.el7.x86_64.
When I make sudo dnf update I have following result (example with 3.10.0-957.1.3.el7.x86_64):
Dependencies resolved.

Problem 1: cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64
- cannot install the best update candidate for package kernel-3.10.0-957.el7.x86_64
- cannot install the best update candidate for package kernel-3.10.0-957.5.1.el7.x86_64
Problem 2: cannot install both kernel-devel-3.10.0-957.5.1.el7.x86_64 and kernel-devel-3.10.0-957.5.1.el7.x86_64
- cannot install the best update candidate for package kernel-devel-3.10.0-957.5.1.el7.x86_64
- cannot install the best update candidate for package kernel-devel-3.10.0-957.el7.x86_64
========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Reinstalling:
kernel x86_64 3.10.0-957.1.3.el7 updates 48 M
kernel-devel x86_64 3.10.0-957.5.1.el7 updates 17 M
replacing kernel-devel.x86_64 3.10.0-957.5.1.el7

Transaction Summary
=========================================================================================================

I have installed all kernels kernel-3.10.0-957.5.1.el7.x86_64 or 3.10.0-957.1.3.el7.x86_64 or kernel-3.10.0-957.el7.x86_64 and
all work properly...
Frankly speaking, I do not understand the reason, because if I use sudo yum update, all looks O.K.

Do you know some advice?

Thank you very much in advance.

Regards.
Dusan

Mike_Rochefort
Posts: 215
Joined: 2016/03/16 02:34:19

Re: dnf and starnge problems witjh the kernels

Post by Mike_Rochefort » 2019/02/16 07:54:04

I’m not saying you shouldn’t, but is there a specific reason you’re using dnf instead of yum? I know it’s from the official extras repository, but what gain are you getting on a system designed around yum?

Cheers,
Mike
Solution Architect @RedHat | RHCE
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs

dusan
Posts: 19
Joined: 2018/03/29 18:55:00

Re: dnf and starnge problems witjh the kernels

Post by dusan » 2019/02/16 08:49:41

Dear Mike,

the basic reason is speed - sometime using yum I have problems to upload too large package, and dnf from this point of view
is better...

Regards,
Dusan

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: dnf and strange problems with the kernels

Post by avij » 2019/02/16 09:52:04

Sounds like a bug. Please file a bug at bugzilla.redhat.com > New > Red Hat > Red Hat Enterprise Linux 7 > component dnf.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dnf and strange problems with the kernels

Post by TrevorH » 2019/02/16 14:47:24

Could you please show the complete and unedited output from the dnf command that you are trying to run. Include the command prompt where you enter the command, including the command itself, all the way through until the command prompt returns afterwards. Include all the output.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: dnf and strange problems with the kernels

Post by avij » 2019/02/16 19:48:48

Here's from my own testbed system:

Code: Select all

# rpm -qa | grep -e dnf -e 22.5-1 | sort
dnf-4.0.9.2-1.el7_6.noarch
dnf-data-4.0.9.2-1.el7_6.noarch
libdnf-0.22.5-1.el7_6.x86_64
python2-dnf-4.0.9.2-1.el7_6.noarch
python2-hawkey-0.22.5-1.el7_6.x86_64
python2-libdnf-0.22.5-1.el7_6.x86_64

# rpm -q kernel
kernel-3.10.0-957.el7.x86_64
kernel-3.10.0-957.1.3.el7.x86_64
kernel-3.10.0-957.5.1.el7.x86_64

# uname -a
Linux xxx 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

# dnf update
Last metadata expiration check: 9:59:32 ago on Sat 16 Feb 2019 11:46:27 AM EET.
Dependencies resolved.

 Problem: cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64
  - cannot install the best update candidate for package kernel-3.10.0-957.5.1.el7.x86_64
  - cannot install the best update candidate for package kernel-3.10.0-957.el7.x86_64
====================================================================================================
 Package             Arch                Version                         Repository            Size
====================================================================================================
Reinstalling:
 kernel              x86_64              3.10.0-957.5.1.el7              updates               48 M

Transaction Summary
====================================================================================================

Total download size: 48 M
Installed size: 63 M
Is this ok [y/N]: n
Operation aborted.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: dnf and strange problems with the kernels

Post by avij » 2019/02/23 20:43:58


User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: dnf and strange problems with the kernels

Post by toracat » 2019/02/25 07:07:45

Or here https://bugzilla.redhat.com/show_bug.cgi?id=1668256 . Looks like a newer version of libsolv would resolve the issue.
CentOS Forum FAQ

Post Reply