Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1012726

Summary: yum update/install failed on RHEL7
Product: Red Hat Enterprise Linux 7 Reporter: Qiao Zhao <qzhao>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: admiller, ffesti, firas.alkafri, james.antill, jzeleny, packaging-team-maint, zpavlas
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-11 07:25:33 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 Qiao Zhao 2013-09-27 03:01:39 UTC
Description of problem:
yum update/install package failed on RHEL7

Version-Release number of selected component (if applicable):
current kernel version: 3.10.0-22.el7.x86_64


How reproducible:
always

Steps to Reproduce:
1. update rhel.repo baseurl: /RHEL-7.0-20130926.0/
2. yum update
3.

Actual results:
ERROR with transaction check vs depsolve:
/sbin/new-kernel-pkg is needed by (installed) kernel-3.10.0-22.el7.x86_64
/sbin/new-kernel-pkg is needed by (installed) kernel-debug-3.10.0-22.el7.x86_64
Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&version=rawhide&component=yum
 You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2013-09-26.22-55.nlst0I.yumtx


Expected results:
yum update successful

Additional info:
grubby version: grubby-8.22-1.el7.x86_64

I tried to use `rpm -Va --nofiles --nodigest` and `yum load-transaction /tmp/yum_save_tx.2013-09-26.22-55.nlst0I.yumtx` before update, but still failed.

Comment 1 Jan Zeleny 2013-09-27 06:30:49 UTC
Could you please attach a full log of the transaction? This report has very limited information and I'm not sure if we actually can do anything with it at this state.

Comment 2 Qiao Zhao 2013-10-10 09:32:10 UTC
Hi Jan Zeleny,
Sorry for my late reply.

This is one of my test, (full log)
[root@dhcp-13-41 ~]# yum update grubby
Loaded plugins: langpacks, product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package grubby.x86_64 0:8.22-1.el7 will be updated
---> Package grubby.x86_64 0:8.28-2.el7 will be an update
--> Processing Dependency: /sbin/new-kernel-pkg for package: kernel-debug-3.10.0-22.el7.x86_64
--> Processing Dependency: /sbin/new-kernel-pkg for package: kernel-debug-3.10.0-22.el7.x86_64
--> Processing Dependency: /sbin/new-kernel-pkg for package: kernel-3.10.0-22.el7.x86_64
--> Processing Dependency: /sbin/new-kernel-pkg for package: kernel-3.10.0-22.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-28.el7 will be installed
---> Package kernel-debug.x86_64 0:3.10.0-28.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================
 Package              Arch           Version                  Repository           Size
========================================================================================
Updating:
 grubby               x86_64         8.28-2.el7               Workstation          59 k
Installing for dependencies:
 kernel               x86_64         3.10.0-28.el7            Workstation          28 M
 kernel-debug         x86_64         3.10.0-28.el7            Workstation          29 M

Transaction Summary
========================================================================================
Install             ( 2 Dependent packages)
Upgrade  1 Package

Total download size: 57 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): grubby-8.28-2.el7.x86_64.rpm                              |  59 kB  00:00:01     
(2/3): kernel-3.10.0-28.el7.x86_64.rpm                           |  28 MB  00:00:01     
(3/3): kernel-debug-3.10.0-28.el7.x86_64.rpm                     |  29 MB  00:00:01     
----------------------------------------------------------------------------------------
Total                                                    21 MB/s |  57 MB     00:02     
Running Transaction Check
ERROR with transaction check vs depsolve:
/sbin/new-kernel-pkg is needed by (installed) kernel-3.10.0-22.el7.x86_64
/sbin/new-kernel-pkg is needed by (installed) kernel-debug-3.10.0-22.el7.x86_64
Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&version=rawhide&component=yum
 You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2013-10-10.05-22.WedC7a.yumtx

I tried to use `rpm -Va --nofiles --nodigest` and `yum load-transaction /tmp/yum_save_tx.2013-10-10.05-22.WedC7a.yumtx` before update, but still failed.

This problem is about package dependencies.

Comment 3 Jan Zeleny 2013-10-11 07:25:33 UTC
Oh yes, run into that one myself couple weeks ago. Unfortunately for you this is not a bug in yum, it just reports you the state of things. The problem (again, probably not a bug, just a poor packaging) is on the side of grubby/kernel and probably the only way how to do the update is to do the update manually with rpm, first update grubby with rpm -U --nodeps and then you can update kernel (if yum won't work, you can try rpm -U).