Bug 1668256
| Summary: | "dnf upgrade" reinstalls kernel packages reporting it cannot install best update candidate | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Karel Srot <ksrot> |
| Component: | libsolv | Assignee: | Jaroslav Mracek <jmracek> |
| Status: | CLOSED ERRATA | QA Contact: | Karel Srot <ksrot> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.6 | CC: | ajb, bruncko, code, jblazek, jmracek, jrohel, m.a.young, mbliss, mdomonko, suren, thomas.oulevey, toracat |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libsolv-0.6.34-4.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1554820 | Environment: | |
| Last Closed: | 2019-08-06 13:13:38 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1687455 | ||
|
Description
Karel Srot
2019-01-22 10:03:40 UTC
I installed a mock rebuild of libsolv-0.6.35-3.fc28 on my RHEL7 test VM and the problem goes away so it does indeed look like the problem will be fixed with a libsolv update. I also see this - for completeness:
[root@rhel7 ~]# yum update
Loaded plugins: auto-update-debuginfo, changelog, product-id, search-disabled-
: repos, subscription-manager
No packages marked for update
[root@rhel7 ~]# yum install dnf
Loaded plugins: auto-update-debuginfo, changelog, product-id, search-disabled-
: repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package dnf.noarch 0:4.0.9.2-1.el7_6 will be installed
--> Processing Dependency: python2-dnf = 4.0.9.2-1.el7_6 for package: dnf-4.0.9.2-1.el7_6.noarch
--> Running transaction check
---> Package python2-dnf.noarch 0:4.0.9.2-1.el7_6 will be installed
--> Processing Dependency: dnf-data = 4.0.9.2-1.el7_6 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: libmodulemd >= 1.4.0 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-hawkey >= 0.22.5 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-libcomps >= 0.1.8 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-libdnf >= 0.22.5 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python-enum34 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-libdnf for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Running transaction check
---> Package dnf-data.noarch 0:4.0.9.2-1.el7_6 will be installed
--> Processing Dependency: libreport-filesystem for package: dnf-data-4.0.9.2-1.el7_6.noarch
---> Package libmodulemd.x86_64 0:1.6.3-1.el7 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: libmodulemd-1.6.3-1.el7.x86_64
---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed
---> Package python2-hawkey.x86_64 0:0.22.5-1.el7_6 will be installed
--> Processing Dependency: libdnf(x86-64) = 0.22.5-1.el7_6 for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolv.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolvext.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libdnf.so.2()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libjson-glib-1.0.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: librepo.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: librhsm.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolv.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolvext.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
---> Package python2-libcomps.x86_64 0:0.1.8-12.el7 will be installed
--> Processing Dependency: libcomps(x86-64) = 0.1.8-12.el7 for package: python2-libcomps-0.1.8-12.el7.x86_64
--> Processing Dependency: libcomps.so.0.1.6()(64bit) for package: python2-libcomps-0.1.8-12.el7.x86_64
---> Package python2-libdnf.x86_64 0:0.22.5-1.el7_6 will be installed
--> Running transaction check
---> Package json-glib.x86_64 0:1.4.2-2.el7 will be installed
---> Package libcomps.x86_64 0:0.1.8-12.el7 will be installed
---> Package libdnf.x86_64 0:0.22.5-1.el7_6 will be installed
---> Package librepo.x86_64 0:1.8.1-7.el7 will be installed
---> Package libreport-filesystem.x86_64 0:2.1.11-42.el7 will be installed
---> Package librhsm.x86_64 0:0.0.3-1.el7 will be installed
---> Package libsolv.x86_64 0:0.6.34-2.el7 will be installed
---> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
dnf noarch 4.0.9.2-1.el7_6 rhel-7-server-extras-rpms 357 k
Installing for dependencies:
dnf-data noarch 4.0.9.2-1.el7_6 rhel-7-server-extras-rpms 51 k
json-glib x86_64 1.4.2-2.el7 rhel-7-server-rpms 134 k
libcomps x86_64 0.1.8-12.el7 rhel-7-server-extras-rpms 75 k
libdnf x86_64 0.22.5-1.el7_6 rhel-7-server-extras-rpms 533 k
libmodulemd x86_64 1.6.3-1.el7 rhel-7-server-extras-rpms 153 k
librepo x86_64 1.8.1-7.el7 rhel-7-server-rpms 82 k
libreport-filesystem x86_64 2.1.11-42.el7 rhel-7-server-rpms 39 k
librhsm x86_64 0.0.3-1.el7 rhel-7-server-extras-rpms 27 k
libsolv x86_64 0.6.34-2.el7 rhel-7-server-rpms 328 k
libyaml x86_64 0.1.4-11.el7_0 rhel-7-server-rpms 55 k
python-enum34 noarch 1.0.4-1.el7 rhel-7-server-rpms 52 k
python2-dnf noarch 4.0.9.2-1.el7_6 rhel-7-server-extras-rpms 414 k
python2-hawkey x86_64 0.22.5-1.el7_6 rhel-7-server-extras-rpms 68 k
python2-libcomps x86_64 0.1.8-12.el7 rhel-7-server-extras-rpms 47 k
python2-libdnf x86_64 0.22.5-1.el7_6 rhel-7-server-extras-rpms 609 k
Transaction Summary
================================================================================
Install 1 Package (+15 Dependent packages)
Total download size: 3.0 M
Installed size: 11 M
Is this ok [y/d/N]: y
Downloading packages:
(1/16): dnf-data-4.0.9.2-1.el7_6.noarch.rpm | 51 kB 00:01
(2/16): dnf-4.0.9.2-1.el7_6.noarch.rpm | 357 kB 00:02
(3/16): json-glib-1.4.2-2.el7.x86_64.rpm | 134 kB 00:02
(4/16): libcomps-0.1.8-12.el7.x86_64.rpm | 75 kB 00:00
(5/16): libdnf-0.22.5-1.el7_6.x86_64.rpm | 533 kB 00:00
(6/16): libmodulemd-1.6.3-1.el7.x86_64.rpm | 153 kB 00:00
(7/16): libreport-filesystem-2.1.11-42.el7.x86_64.rpm | 39 kB 00:00
(8/16): librepo-1.8.1-7.el7.x86_64.rpm | 82 kB 00:01
(9/16): librhsm-0.0.3-1.el7.x86_64.rpm | 27 kB 00:00
(10/16): libyaml-0.1.4-11.el7_0.x86_64.rpm | 55 kB 00:00
(11/16): libsolv-0.6.34-2.el7.x86_64.rpm | 328 kB 00:01
(12/16): python-enum34-1.0.4-1.el7.noarch.rpm | 52 kB 00:00
(13/16): python2-hawkey-0.22.5-1.el7_6.x86_64.rpm | 68 kB 00:00
(14/16): python2-dnf-4.0.9.2-1.el7_6.noarch.rpm | 414 kB 00:01
(15/16): python2-libcomps-0.1.8-12.el7.x86_64.rpm | 47 kB 00:00
(16/16): python2-libdnf-0.22.5-1.el7_6.x86_64.rpm | 609 kB 00:00
--------------------------------------------------------------------------------
Total 417 kB/s | 3.0 MB 00:07
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : json-glib-1.4.2-2.el7.x86_64 1/16
Installing : librhsm-0.0.3-1.el7.x86_64 2/16
Installing : librepo-1.8.1-7.el7.x86_64 3/16
Installing : libsolv-0.6.34-2.el7.x86_64 4/16
Installing : libcomps-0.1.8-12.el7.x86_64 5/16
Installing : python2-libcomps-0.1.8-12.el7.x86_64 6/16
Installing : python-enum34-1.0.4-1.el7.noarch 7/16
Installing : libreport-filesystem-2.1.11-42.el7.x86_64 8/16
Installing : dnf-data-4.0.9.2-1.el7_6.noarch 9/16
Installing : libyaml-0.1.4-11.el7_0.x86_64 10/16
Installing : libmodulemd-1.6.3-1.el7.x86_64 11/16
Installing : libdnf-0.22.5-1.el7_6.x86_64 12/16
Installing : python2-libdnf-0.22.5-1.el7_6.x86_64 13/16
Installing : python2-hawkey-0.22.5-1.el7_6.x86_64 14/16
Installing : python2-dnf-4.0.9.2-1.el7_6.noarch 15/16
Installing : dnf-4.0.9.2-1.el7_6.noarch 16/16
Verifying : libyaml-0.1.4-11.el7_0.x86_64 1/16
Verifying : python2-libdnf-0.22.5-1.el7_6.x86_64 2/16
Verifying : python2-libcomps-0.1.8-12.el7.x86_64 3/16
Verifying : libreport-filesystem-2.1.11-42.el7.x86_64 4/16
Verifying : libmodulemd-1.6.3-1.el7.x86_64 5/16
Verifying : libdnf-0.22.5-1.el7_6.x86_64 6/16
Verifying : dnf-data-4.0.9.2-1.el7_6.noarch 7/16
Verifying : python2-hawkey-0.22.5-1.el7_6.x86_64 8/16
Verifying : python-enum34-1.0.4-1.el7.noarch 9/16
Verifying : python2-dnf-4.0.9.2-1.el7_6.noarch 10/16
Verifying : libsolv-0.6.34-2.el7.x86_64 11/16
Verifying : json-glib-1.4.2-2.el7.x86_64 12/16
Verifying : librhsm-0.0.3-1.el7.x86_64 13/16
Verifying : librepo-1.8.1-7.el7.x86_64 14/16
Verifying : libcomps-0.1.8-12.el7.x86_64 15/16
Verifying : dnf-4.0.9.2-1.el7_6.noarch 16/16
Installed:
dnf.noarch 0:4.0.9.2-1.el7_6
Dependency Installed:
dnf-data.noarch 0:4.0.9.2-1.el7_6
json-glib.x86_64 0:1.4.2-2.el7
libcomps.x86_64 0:0.1.8-12.el7
libdnf.x86_64 0:0.22.5-1.el7_6
libmodulemd.x86_64 0:1.6.3-1.el7
librepo.x86_64 0:1.8.1-7.el7
libreport-filesystem.x86_64 0:2.1.11-42.el7
librhsm.x86_64 0:0.0.3-1.el7
libsolv.x86_64 0:0.6.34-2.el7
libyaml.x86_64 0:0.1.4-11.el7_0
python-enum34.noarch 0:1.0.4-1.el7
python2-dnf.noarch 0:4.0.9.2-1.el7_6
python2-hawkey.x86_64 0:0.22.5-1.el7_6
python2-libcomps.x86_64 0:0.1.8-12.el7
python2-libdnf.x86_64 0:0.22.5-1.el7_6
Complete!
[root@rhel7 ~]# dnf update
Red Hat Software Collections RPMs for Red Hat E 2.1 MB/s | 21 MB 00:10
Red Hat Enterprise Linux 7 Server - Extras (RPM 864 kB/s | 1.1 MB 00:01
Red Hat Enterprise Linux 7 Server (RPMs) 2.2 MB/s | 68 MB 00:31
Red Hat Enterprise Linux 7 Server - Optional (R 1.9 MB/s | 30 MB 00:15
Last metadata expiration check: 0:00:01 ago on Sun 17 Feb 2019 02:28:10 PM EST.
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 rhel-7-server-rpms 48 M
Transaction Summary
================================================================================
Total download size: 48 M
Installed size: 63 M
Is this ok [y/N]:
I was able to reproduce the errors in comment #2. $ sudo dnf update 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.5.1.el7.x86_64 - cannot install the best update candidate for package kernel-3.10.0-862.11.6.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-862.el7.x86_64 ================================================================================================================ Package Arch Version Repository Size ================================================================================================================ Reinstalling: kernel-devel x86_64 3.10.0-957.5.1.el7 rhel-7-server-rpms 17 M replacing kernel-devel.x86_64 3.10.0-957.1.3.el7 replacing kernel-devel.x86_64 3.10.0-957.5.1.el7 replacing kernel-devel.x86_64 3.10.0-957.el7 kernel x86_64 3.10.0-957.5.1.el7 rhel-7-server-rpms 48 M Removing: kernel x86_64 3.10.0-862.11.6.el7 @System 62 M Transaction Summary ================================================================================================================ Remove 1 Package Total download size: 65 M Is this ok [y/N]: *** Bug 1677862 has been marked as a duplicate of this bug. *** The issue is fixed by commit https://github.com/openSUSE/libsolv/commit/0ce04714c477f25fde16c57b5fdc478755794126. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:2290 |