Hi,
in some PoC, I had to test possibility to upgrade from Rocky linux v8.x to v9.x. The gole I expected is, to have v9.x after upgrade, and then to execute “yum update -f” which will return no errors.
To do that, I started with official v8.6 minimal installation ISO file, and installed test virtual machine.
Then, I made full update (yum update -y), and that finished with update to v8.9.
Then, I followed some of available web linkes, where upgrade from v8 to v9 is explained (here is the list for references):
To be clear, I tried with first link in this list.
Upgrade was done without any significant issues.
So, I started with:
[root@rockyvm ~]# cat /etc/os-release
NAME=“Rocky Linux”
VERSION=“8.9 (Green Obsidian)”
ID=“rocky”
ID_LIKE=“rhel centos fedora”
VERSION_ID=“8.9”
PLATFORM_ID=“platform:el8”
PRETTY_NAME=“Rocky Linux 8.9 (Green Obsidian)”
ANSI_COLOR=“0;32”
LOGO=“fedora-logo-icon”
CPE_NAME=“cpe:/o:rocky:rocky:8:GA”
…
SUPPORT_END=“2029-05-31”
ROCKY_SUPPORT_PRODUCT=“Rocky-Linux-8”
ROCKY_SUPPORT_PRODUCT_VERSION=“8.9”
REDHAT_SUPPORT_PRODUCT=“Rocky Linux”
REDHAT_SUPPORT_PRODUCT_VERSION=“8.9”
[root@rockyvm ~]#
And, after following first link, after upgrading and restarting, I finished with:
[root@rockyvm ~]# date
Thu Dec 7 12:16:06 CET 2023
[root@rockyvm ~]# cat /etc/os-release
NAME=“Rocky Linux”
VERSION=“9.3 (Blue Onyx)”
ID=“rocky”
ID_LIKE=“rhel centos fedora”
VERSION_ID=“9.3”
PLATFORM_ID=“platform:el9”
PRETTY_NAME=“Rocky Linux 9.3 (Blue Onyx)”
ANSI_COLOR=“0;32”
LOGO=“fedora-logo-icon”
CPE_NAME=“cpe:/o:rocky:rocky:9::baseos”
…
SUPPORT_END=“2032-05-31”
ROCKY_SUPPORT_PRODUCT=“Rocky-Linux-9”
ROCKY_SUPPORT_PRODUCT_VERSION=“9.3”
REDHAT_SUPPORT_PRODUCT=“Rocky Linux”
REDHAT_SUPPORT_PRODUCT_VERSION=“9.3”
[root@rockyvm ~]#
Everything seems to be fine, so far. But, then I tried to update again, and I got the following:
[root@rockyvm ~]# dnf update
Last metadata expiration check: 0:15:09 ago on Thu 07 Dec 2023 12:07:33 PM CET.
Error:
Problem 1: cannot install both gdbm-libs-1:1.19-4.el9.x86_64 from baseos and gdbm-libs-1:1.18-2.el8.x86_64 from @System
- package gdbm-1:1.18-2.el8.x86_64 from @System requires gdbm-libs(x86-64) = 1:1.18-2.el8, but none of the providers can be installed
- cannot install the best update candidate for package gdbm-libs-1:1.18-2.el8.x86_64
- problem with installed package gdbm-1:1.18-2.el8.x86_64
Problem 2: cannot install both iptables-libs-1.8.8-6.el9_1.x86_64 from baseos and iptables-libs-1.8.5-9.el8.x86_64 from @System - package iptables-1.8.5-9.el8.x86_64 from @System requires iptables-libs(x86-64) = 1.8.5-9.el8, but none of the providers can be installed
- cannot install the best update candidate for package iptables-libs-1.8.5-9.el8.x86_64
- problem with installed package iptables-1.8.5-9.el8.x86_64
Problem 3: cannot install both libevent-2.1.12-6.el9.x86_64 from baseos and libevent-2.1.8-5.el8.x86_64 from @System - package python3-unbound-1.16.2-5.el8.x86_64 from @System requires libevent-2.1.so.6()(64bit), but none of the providers can be installed
- cannot install the best update candidate for package libevent-2.1.8-5.el8.x86_64
- problem with installed package python3-unbound-1.16.2-5.el8.x86_64
Problem 4: package python3-3.9.18-1.el9_3.x86_64 from baseos obsoletes platform-python < 3.9 provided by platform-python-3.6.8-56.el8_9.rocky.0.x86_64 from @System - package python3-html5lib-1:0.999999999-6.el8.noarch from @System requires python(abi) = 3.6, but none of the providers can be installed
- cannot install the best update candidate for package platform-python-3.6.8-56.el8_9.rocky.0.x86_64
- problem with installed package python3-html5lib-1:0.999999999-6.el8.noarch
Problem 5: cannot install both python3-libs-3.9.18-1.el9_3.x86_64 from baseos and python3-libs-3.6.8-56.el8_9.rocky.0.x86_64 from @System - package unbound-libs-1.16.2-5.el8.x86_64 from @System requires libpython3.6m.so.1.0()(64bit), but none of the providers can be installed
- cannot install the best update candidate for package platform-python-pip-9.0.3-23.el8.rocky.0.noarch
- problem with installed package unbound-libs-1.16.2-5.el8.x86_64
Problem 6: package python3-unbound-1.16.2-5.el8.x86_64 from @System requires libpython3.6m.so.1.0()(64bit), but none of the providers can be installed - cannot install both python3-libs-3.9.18-1.el9_3.x86_64 from baseos and python3-libs-3.6.8-56.el8_9.rocky.0.x86_64 from @System
- cannot install the best update candidate for package python3-unbound-1.16.2-5.el8.x86_64
- cannot install the best update candidate for package platform-python-setuptools-39.2.0-7.el8.noarch
Problem 7: package unbound-libs-1.16.2-5.el8.x86_64 from @System requires libpython3.6m.so.1.0()(64bit), but none of the providers can be installed - cannot install both python3-libs-3.9.18-1.el9_3.x86_64 from baseos and python3-libs-3.6.8-56.el8_9.rocky.0.x86_64 from @System
- cannot install the best update candidate for package unbound-libs-1.16.2-5.el8.x86_64
- cannot install the best update candidate for package python3-libs-3.6.8-56.el8_9.rocky.0.x86_64
Problem 8: package python3-3.9.18-1.el9_3.x86_64 from baseos obsoletes platform-python < 3.9 provided by platform-python-3.6.8-56.el8_9.rocky.0.x86_64 from @System - package blktrace-1.2.0-19.el9.x86_64 from appstream requires /usr/bin/python3, but none of the providers can be installed
- package python3-pydbus-0.6.0-5.el8.noarch from @System requires python(abi) = 3.6, but none of the providers can be installed
- cannot install the best update candidate for package blktrace-1.2.0-10.el8.x86_64
- problem with installed package python3-pydbus-0.6.0-5.el8.noarch
Problem 9: package python3-3.9.18-1.el9_3.x86_64 from baseos obsoletes platform-python < 3.9 provided by platform-python-3.6.8-56.el8_9.rocky.0.x86_64 from @System - package cockpit-bridge-300.1-1.el9_3.x86_64 from baseos requires /usr/bin/python3, but none of the providers can be installed
- package cockpit-bridge-300.1-1.el9_3.x86_64 from baseos requires python(abi) = 3.9, but none of the providers can be installed
- package python3-slip-0.6.4-13.el8.noarch from @System requires python(abi) = 3.6, but none of the providers can be installed
- cannot install the best update candidate for package cockpit-bridge-300.1-1.el8_9.x86_64
- problem with installed package python3-slip-0.6.4-13.el8.noarch
Problem 10: package python3-3.9.18-1.el9_3.x86_64 from baseos obsoletes platform-python < 3.9 provided by platform-python-3.6.8-56.el8_9.rocky.0.x86_64 from @System - package cockpit-storaged-300.1-1.el9_3.noarch from appstream requires /usr/bin/python3, but none of the providers can be installed
- package python3-slip-dbus-0.6.4-13.el8.noarch from @System requires python(abi) = 3.6, but none of the providers can be installed
- cannot install the best update candidate for package cockpit-storaged-300.1-1.el8_9.noarch
- problem with installed package python3-slip-dbus-0.6.4-13.el8.noarch
Problem 11: package python3-3.9.18-1.el9_3.x86_64 from baseos obsoletes platform-python < 3.9 provided by platform-python-3.6.8-56.el8_9.rocky.0.x86_64 from @System - package firewalld-1.2.1-1.el9.noarch from baseos requires /usr/bin/python3, but none of the providers can be installed
- package python3-webencodings-0.5.1-6.el8.noarch from @System requires python(abi) = 3.6, but none of the providers can be installed
- cannot install the best update candidate for package firewalld-0.9.11-1.el8_8.noarch
- problem with installed package python3-webencodings-0.5.1-6.el8.noarch
(try to add ‘–allowerasing’ to command line to replace conflicting packages or ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)
[root@rockyvm ~]#
I then tried to use any of 3 mentioned command switch-es (‘–allowerasing’, ‘–skip-broken’ and ‘–nobest’, but never reach clean update, without any warnings/errors.
My question is: how can I proceed, to get “dnf update” (or “yum update”) to finish without any errors/warnings, and to get “clean” state of v9.3 (as this is the latest v9.x version at the moment).