[Spacewalk-list] dnf upgrade - cannot install both

Mertens, Jonas Jonas.Mertens at sn-ens.de
Wed Feb 5 06:38:09 UTC 2020


Hi,

dnf upgrade kernel-4.18.0-147.3.1.el8_1.x86_64 gives 
This system is receiving updates from Red Hat Satellite or Spacewalk server.
Letzte Prüfung auf abgelaufene Metadaten: vor 0:07:34 am Mi 05 Feb 2020 01:24:03 EST.
Fehler:
 Problem: cannot install both kernel-4.18.0-147.3.1.el8_1.x86_64 and kernel-4.18.0-147.3.1.el8_1.x86_64
  - cannot install the best update candidate for package kernel-4.18.0-147.3.1.el8_1.x86_64
  - cannot install the best update candidate for package kernel-4.18.0-80.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

This error is only happening, when original CentOS-Base.repo is disabled. 

Maybe a channel configuration issue? The system is described to 1 parent channel (0 packages) and 1 child channel (containing 3 repos, 7226 packages, not kickstartable).

Repos:
centos8-os --> http://mirror.centos.org/centos/8/BaseOS/x86_64/os/
centos8-appstream --> http://mirror.centos.org/centos/8/AppStream/x86_64/os/
centos8-extras --> http://mirror.centos.org/centos/8/extras/x86_64/os/

Thanks for your help.

Freundliche Grüße / Kind regards 
Jonas Mertens 
ITK Services 

-----Ursprüngliche Nachricht-----
Von: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> Im Auftrag von Michael Mraka
Gesendet: Dienstag, 4. Februar 2020 15:38
An: spacewalk-list at redhat.com
Betreff: Re: [Spacewalk-list] dnf upgrade - cannot install both

Mertens, Jonas:
> Hi all,
> 
> I installed spacewalk for centos8 via nightly build as follows:
> 
> dnf 
> --repofrompath=spacewalk-client-repo,http://copr-be.cloud.fedoraprojec
> t.org/results/@spacewalkproject/nightly-client/epel-8-x86_64/ 
> --nogpgcheck install rhn-client-tools rhn-check rhn-setup rhnsd 
> python3-subscription-manager-rhsm yum-rhn-plugin rpm -Uvh 
> http://<SPACEWALK-SERVER>/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rp
> m rhnreg_ks --serverUrl=https:// <SPACEWALK-SERVER>/XMLRPC 
> --sslCACert=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem 
> --activationkey=1-centos8 rhn-actions-control --enable-deploy 
> systemctl enable rhnsd && systemctl start rhnsd echo 
> 'reposdir=/etc/yum.repos.d/custom' >> /etc/dnf/dnf.conf
> 
> Here comes my problem: dnf upgrade gives following errors:
> 
> [root at spacewalk-centos8-test ~]# dnf upgrade This system is receiving 
> updates from Red Hat Satellite or Spacewalk server.
> Letzte Prüfung auf abgelaufene Metadaten: vor 0:27:00 am Di 04 Feb 2020 05:22:39 EST.
> Fehler:
> Problem 1: cannot install both kernel-4.18.0-147.3.1.el8_1.x86_64 and kernel-4.18.0-147.3.1.el8_1.x86_64
>   - cannot install the best update candidate for package kernel-4.18.0-147.3.1.el8_1.x86_64
>   - cannot install the best update candidate for package 
> kernel-4.18.0-80.el8.x86_64 Problem 2: cannot install both kernel-core-4.18.0-147.3.1.el8_1.x86_64 and kernel-core-4.18.0-147.3.1.el8_1.x86_64
>   - cannot install the best update candidate for package kernel-core-4.18.0-147.3.1.el8_1.x86_64
>   - cannot install the best update candidate for package 
> kernel-core-4.18.0-80.el8.x86_64 Problem 3: cannot install both kernel-modules-4.18.0-147.3.1.el8_1.x86_64 and kernel-modules-4.18.0-147.3.1.el8_1.x86_64
>   - cannot install the best update candidate for package kernel-modules-4.18.0-147.3.1.el8_1.x86_64
>   - cannot install the best update candidate for package 
> kernel-modules-4.18.0-80.el8.x86_64
> (try to add '--skip-broken' to skip uninstallable packages or 
> '--nobest' to use not only best candidate packages)
> 
> My google research brought me to an libsolv Update, but it is up to date.
> Any ideas? Thanks in advance.

Hello,

It looks like dnf configuration issue. Normally kernel is never updated but installed and dnf keeps 3 latest versions in parallel (the oldest one may be removed).
I'd try to simplify update to a single package, i.e.
        dnf upgrade kernel-4.18.0-147.3.1.el8_1.x86_64
and see what will happen.

> Freundliche Grüße / Kind regards
> Jonas Mertens

> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list

Regards,

--
Michael Mráka
System Management Engineering, Red Hat

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list