[Spacewalk-list] dnf upgrade - cannot install both

Michael Mraka michael.mraka at redhat.com
Tue Feb 4 14:37:37 UTC 2020


Mertens, Jonas:
> Hi all,
> 
> I installed spacewalk for centos8 via nightly build as follows:
> 
> dnf --repofrompath=spacewalk-client-repo,http://copr-be.cloud.fedoraproject.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.rpm
> 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




More information about the Spacewalk-list mailing list