I renamed /usr/bin/dnf and now dnf works fine.
Thank you.
Original Message:
Sent: Tue July 04, 2023 09:12 AM
From: SANGAMESH MALLAYYA
Subject: dnf not fund after dnf update which installed python3.9
Hi Glenn,
Now we don't ship /usr/bin/dnf.
This looks like somehow been left and PATH environment variable is picking from the /usr/bin first since this dangling file is still present.
------------------------------
SANGAMESH
Original Message:
Sent: Mon July 03, 2023 12:07 PM
From: Glenn Robinson
Subject: dnf not fund after dnf update which installed python3.9
AIX 7.2.
I've used dnf_aixtoolbox.sh to update rpm.rte, dnf and python.
I then ran dnf update and there were around 30 packages to update so I updated them.
The updates from the repos were successfull but now when I run dnf I get an error.
# dnfbash: /usr/bin/dnf: /opt/freeware/bin/python3_32: bad interpreter: A file or directory in the path name does not exist.
I check for dnf and python using rpm -qa:
# rpm -qa | grep -E "dnf|python"python3-3.9.16-2.ppcpython3.9-libcomps-0.1.15-101.ppcrpm-python3-4.15.1-32_2.ppcdnf-data-4.2.17-32_51.ppcpython3.9-libdnf-0.39.1-32_52.ppcpython3.9-dnf-4.2.17-32_51.ppcdnf-4.2.17-32_51.ppcpython3-librepo-1.11.0-102.ppcpython3-libdnf-0.39.1-32_52.ppcpython3-gpg-1.13.1-101.ppcpython3.9-3.9.16-2.ppcpython3.9-gpg-1.13.1-101.ppcrpm-python3.9-4.15.1-32_2.ppclibdnf-0.39.1-32_52.ppcpython3.9-hawkey-0.39.1-32_52.ppcpython3-dnf-4.2.17-32_51.ppcpython3.9-librepo-1.11.0-102.ppcdnf-automatic-4.2.17-32_51.ppcpython3-hawkey-0.39.1-32_52.ppcpython3-libcomps-0.1.15-101.ppc
That looks OK.
So it seems like something to do with python3_32.
If I run /opt/freeware/bin/dnf it work fine.
I have /opt/freeware/bin in my $PATH envvar. Have done for years :-)
Any suggestions on how to fix this?
------------------------------
Glenn Robinson
------------------------------