Hi all, I faced similar issues on a freshly installed 7200-05-06-2320 LPAR. dnf (installed with dnf_bundle from around 1 year ago) worked fine with AIX_Toolbox from ~1 year ago. When I re-froze the repos to get the latest RPMs (we freeze our local copy of AIX_Toolbox before each patching cycle, depending on the environment), I faced the followin eror:
Error:
Problem: The operation would result in removing the following protected packages: dnf
(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)
Using '--nobest' was a very bad idea, dnf was throwing the 'AttributeError: module 'libcomps' has no attribute 'PACKAGE_TYPE_CONDITIONAL'' erro after the 'dnf update'. Had to delete few RPMs and retun 'dnf_aixtoolbox.sh script with -d option' to fix it
On the next LPAR I just updated rpm.rte (from latest dnf_bundle.tar) and the dnf update worked perfectly fine. No issues with dnf afterwards nor unmet dependancies,
Lesson learned -> keep rpm.rte up-to-date from latest dnf_bundle.tar before attempting dnf update
------------------------------
Lionel Widmer
------------------------------
Original Message:
Sent: Sun June 25, 2023 01:54 PM
From: Juraj Petráš
Subject: aixtoolbox dnf aix 7.3 TL1 SP2
Dnf clean all , dnf update worked long time on aix 7.3 TL1 SP2 without problem. Last week ago failed .I attached txt file with error description. I tried optipn --nobest butno good idea. cannot install the best update candidate for package after --nobest
Failed:
python3-3.9.16-2.ppc python3-3.7.15-2.ppc
Error: Transaction failed
dnf clean all
libcomps.PACKAGE_TYPE_CONDITIONAL : CONDITIONAL,
AttributeError: module 'libcomps' has no attribute 'PACKAGE_TYPE_CONDITIONAL'
------------------------------
Juraj Petráš
------------------------------