and rpm -Uvh them will install a working environment, dnf update will then be able to start. No need for install_dnf.sh scripts or interent connectivity during installation.
Original Message:
Sent: Tue July 23, 2024 06:27 AM
From: Jan van Beers
Subject: AIX 7322 - dnf upgrade fails with dependency chaos
root@k201aix:/ # cat /opt/freeware/etc/dnf/dnf.conf.rpmsave
[main]
plugins=1
cachedir=/var/cache/dnf
keepcache=1
debuglevel=2
logfile=/var/log/dnf.log
exactarch=1
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
[AIX_Toolbox]
name=AIX generic repository
baseurl=http://192.168.x.y/yumrepo/yum/AIX_Toolbox/
enabled=1
gpgcheck=0
[AIX_Toolbox_noarch]
name=AIX noarch repository
baseurl=http://192.168.x.y/yumrepo/yum/AIX_Toolbox_noarch/
enabled=1
gpgcheck=0
[AIX_Toolbox_72]
name=AIX 7.2 specific repository
baseurl=http://192.168.x.y/yumrepo/yum/AIX_Toolbox_72/
enabled=0
gpgcheck=0
[AIX_Toolbox_73]
name=AIX 7.3 specific repository
baseurl=http://192.168.x.y/yumrepo/yum/AIX_Toolbox_73/
enabled=1
gpgcheck=0
[Diverse_RPM]
name=Other AIX generic repository
baseurl=http://192.168.x.y/yumrepo/yum/Diverse/
enabled=1
gpgcheck=0
root@k201aix:/ # dnf clean all
35 files removed
You have mail in /usr/spool/mail/root
root@k201aix:/ # dnf update
AIX generic repository 77 MB/s | 7.5 MB 00:00
AIX noarch repository 59 MB/s | 2.9 MB 00:00
AIX 7.3 specific repository 15 MB/s | 248 kB 00:00
Other AIX generic repository 648 kB/s | 5.2 kB 00:00
Error:
Problem 1: cannot install both dnf-data-4.2.17-64_51.ppc and dnf-data-4.2.17-64_6.noarch
- package python3.9-dnf-4.2.17-64_6.noarch requires dnf-data = 4.2.17-64_6, but none of the providers can be installed
- cannot install the best update candidate for package dnf-data-4.2.17-64_6.noarch
- problem with installed package python3.9-dnf-4.2.17-64_6.noarch
Problem 2: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
- package python3.9-hawkey-0.39.1-64_5.ppc requires libdnf = 0.39.1-64_5, but none of the providers can be installed
- cannot install the best update candidate for package libdnf-0.39.1-64_5.ppc
- problem with installed package python3.9-hawkey-0.39.1-64_5.ppc
Problem 3: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
- package python3-hawkey-0.39.1-64_50.ppc requires libdnf = 0.39.1-64_50, but none of the providers can be installed
- package python3.9-libdnf-0.39.1-64_5.ppc requires libdnf = 0.39.1-64_5, but none of the providers can be installed
- cannot install the best update candidate for package python3-hawkey-0.39.1-64_5.ppc
- problem with installed package python3.9-libdnf-0.39.1-64_5.ppc
(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)
Original Message:
Sent: 7/23/2024 5:47:00 AM
From: SANGAMESH MALLAYYA
Subject: RE: AIX 7322 - dnf upgrade fails with dependency chaos
Hi Jan,
Can you show the output of your dnf.conf file and rpm -qa ?
Did you try the "dnf update" after dnf clean all ?
------------------------------
SANGAMESH
Original Message:
Sent: Tue July 23, 2024 04:18 AM
From: Jan van Beers
Subject: AIX 7322 - dnf upgrade fails with dependency chaos
Same situation on AIX 731:
manually removed all dnf related packages allows install_dnf.sh to claim "install successfully", yes it wil fail on first start, complaining about its own packages:
(continung with --nobest, --allowerasing or --skip-broken will break the installation even further).
Installing the packages...
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:librepo-1.11.0-64_2 ################################# [ 4%]
2:rpm-python3.9-4.15.1-64_4 ################################# [ 8%]
3:rpm-python3-4.15.1-64_4 ################################# [ 13%]
4:libdnf-0.39.1-64_5 ################################# [ 17%]
5:python3.9-libdnf-0.39.1-64_5 ################################# [ 21%]
6:python3.9-hawkey-0.39.1-64_5 ################################# [ 25%]
7:python3.9-librepo-1.11.0-64_2 ################################# [ 29%]
8:python3.9-gpg-1.13.1-64_3 ################################# [ 33%]
9:libcomps-0.1.15-64_1 ################################# [ 38%]
10:python3.9-libcomps-0.1.15-64_1 ################################# [ 42%]
11:dnf-data-4.2.17-64_6 ################################# [ 46%]
12:python3.9-dnf-4.2.17-64_6 ################################# [ 50%]
13:python3-dnf-4.2.17-64_6 ################################# [ 54%]
14:dnf-4.2.17-64_6 ################################# [ 58%]
15:dnf-automatic-4.2.17-64_6 ################################# [ 63%]
16:python3-libcomps-0.1.15-64_1 ################################# [ 67%]
17:python3-librepo-1.11.0-64_2 ################################# [ 71%]
18:python3-hawkey-0.39.1-64_5 ################################# [ 75%]
19:python3-libdnf-0.39.1-64_5 ################################# [ 79%]
20:ca-certificates-2023.2.60-0 ################################# [ 83%]
Cleaning up / removing...
21:python3-libcomps-0.1.11-101 ################################# [ 88%]
22:libcomps-0.1.11-101 ################################# [ 92%]
23:rpm-python3-4.15.1-64_2 ################################# [ 96%]
24:ca-certificates-2021.2.52-3 ################################# [100%]
dnf installed successfully.
Please run 'dnf update' to update packages to the latest level.
root@k201aix:/mnt/dnf_731 # dnf update
Last metadata expiration check: 0:00:05 ago on Tue Jul 23 10:13:57 DFT 2024.
Error:
Problem 1: cannot install both dnf-data-4.2.17-64_51.ppc and dnf-data-4.2.17-64_6.noarch
- package python3.9-dnf-4.2.17-64_6.noarch requires dnf-data = 4.2.17-64_6, but none of the providers can be installed
- cannot install the best update candidate for package dnf-data-4.2.17-64_6.noarch
- problem with installed package python3.9-dnf-4.2.17-64_6.noarch
Problem 2: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
- package python3.9-hawkey-0.39.1-64_5.ppc requires libdnf = 0.39.1-64_5, but none of the providers can be installed
- cannot install the best update candidate for package libdnf-0.39.1-64_5.ppc
- problem with installed package python3.9-hawkey-0.39.1-64_5.ppc
Problem 3: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
- package python3-hawkey-0.39.1-64_50.ppc requires libdnf = 0.39.1-64_50, but none of the providers can be installed
- package python3.9-libdnf-0.39.1-64_5.ppc requires libdnf = 0.39.1-64_5, but none of the providers can be installed
- cannot install the best update candidate for package python3-hawkey-0.39.1-64_5.ppc
- problem with installed package python3.9-libdnf-0.39.1-64_5.ppc
(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)
------------------------------
Jan van Beers
Original Message:
Sent: Mon July 22, 2024 11:31 AM
From: Jan van Beers
Subject: AIX 7322 - dnf upgrade fails with dependency chaos
Hi,
had a working dnf installation with aix 7312, updated to 7322, now updates fail with dependency conflict:
Problem 1: cannot install both dnf-data-4.2.17-64_51.ppc and dnf-data-4.2.17-64_6.noarch
Problem 2: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
Problem 3: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
tried update using --nobest and/or --allowerasing, only made dnf break itself.
reinstallation fails due to missing dependencies, which it will not install due higher versions already installed.
manually removing all conflicting packages and then installing + dnf update will lead to "Problem 1-3".
read through some threads here, quite hard to follow (try this, try that, oops, package error, try again...). updated rpm, fresh download of install_dnf.sh - no change.
------------------------------
Jan van Beers
------------------------------