Bug 1293713 - yum fails to update yum and yum-cron when yum and yum-cron are installed
Summary: yum fails to update yum and yum-cron when yum and yum-cron are installed
Keywords:
Status: CLOSED DUPLICATE of bug 1293513
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum
Version: 7.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Valentina Mukhamedzhanova
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
: 1301862 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-22 19:24 UTC by Martin Chlumsky
Modified: 2019-12-16 05:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-19 16:24:09 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Martin Chlumsky 2015-12-22 19:24:42 UTC
Description of problem:

While updating yum or yum-cron individually with yum and yum-cron packages installed, yum fails. (Happens for specific versions, details below).

Version-Release number of selected component (if applicable):
yum-3.4.3-125.el7.centos.noarch
yum-cron-3.4.3-125.el7.centos.noarch

How reproducible:
Fails every time.

Steps to Reproduce:
1. Ensure you have a EL 7.x system with yum-3.4.3-125.el7.centos.noarch and yum-cron-3.4.3-125.el7.centos.noarch installed. 
2. Run: "yum update yum" or "yum update yum-cron"

Actual results:

[username@server ~]$ sudo yum update yum
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
4 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package yum.noarch 0:3.4.3-125.el7.centos will be updated
---> Package yum.noarch 0:3.4.3-132.el7.centos.0.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================
 Package              Arch                    Version                                    Repository             Size
=====================================================================================================================
Updating:
 yum                  noarch                  3.4.3-132.el7.centos.0.1                   base                  1.2 M

Transaction Summary
=====================================================================================================================
Upgrade  1 Package

Total size: 1.2 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
  file /etc/yum/yum-cron-hourly.conf from install of yum-3.4.3-132.el7.centos.0.1.noarch conflicts with file from package yum-cron-3.4.3-125.el7.centos.noarch
  file /etc/yum/yum-cron.conf from install of yum-3.4.3-132.el7.centos.0.1.noarch conflicts with file from package yum-cron-3.4.3-125.el7.centos.noarch

Error Summary
-------------


Expected results:
Yum updates yum/yum-cron succesfully.

Additional info:

While I am fully aware that this on a CentOS 7.x system, I am quite confident this problem exists in RHEL 7.x as well.

The problem can be worked around by "yum update yum yum-cron".
I think the problem could be partially fixed by replacing the requires of yum-cron (only fixes "yum update yum-cron"):
yum >= 3.4.3-84
by
yum >= 3.4.3-132

Comment 2 Valentina Mukhamedzhanova 2016-02-18 16:46:55 UTC
*** Bug 1301862 has been marked as a duplicate of this bug. ***

Comment 3 Valentina Mukhamedzhanova 2016-02-19 16:24:09 UTC
These yum-cron config files shouldn't be owned by yum, we will fix this in bug 1293513.

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


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