Hello Ranjit,
I encountered the following difficulty when upgrading to dnf / python 3.9.18 from python 3.7 on our AIX server box:
In the middle of running 'dnf update' to upgrade to python 3.9.18, we had out of space issue with /opt and I see errors like following:
"Error unpacking rpm package python3.9-librepo-1.11.0-103.ppc
Upgrading : python3-librepo-1.11.0-103.ppc 70/145
error: unpacking of archive failed on file /opt/freeware/lib/python3.9/site-packages/librepo/__init__.py;6549e00b: cpio: write
error: python3.9-librepo-1.11.0-103.ppc: install failed
Upgrading : dnf-automatic-4.2.17-32_51.ppc 71/145
error: rpmdb: write: 0x3072a9b8, 4096: No space left on device
error: rpmdb: Packages: write failed for page 1738
error: rpmdb: Packages: unable to flush page: 1738"
We then added space to /opt and reran 'dnf update' and we always get the following error:
"/opt/freeware/etc/dnf: dnf update
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 25, in <module>
import dnf.pycomp
ModuleNotFoundError: No module named 'dnf.pycomp'"
I have tried to re-install the original python 3.7 dnf by running 'install-dnf.sh -d'. After removing all python3.9* packages and a couple of offending packages like python3-gpg-1.13.1-101.ppc, install_dnf ran successfully. But I then found I can't run /opt/freeware/bin/dnf, even the dnf file is there. I got following error (very weird):
"/opt/freeware/etc/dnf: dnf update
ksh: dnf: not found"
I then tried to run 'dnf_aixtoolbox_local.sh' to use local Toolbox repo for python 3.7 and got following error:
"error: Failed dependencies:
/opt/freeware/bin/python3_32 is needed by yum-4.2.17-32_2.noarch
dnf = 4.2.17-32_2 is needed by yum-4.2.17-32_2.noarch
dnf-data = 4.2.17-32_2 is needed by yum-4.2.17-32_2.noarch
yum >= 4.2.17-32_1 is obsoleted by (installed) dnf-4.2.17-32_50.ppc"
Please help.
Thanks
Mi
------------------------------
Mi Wang
------------------------------
#AIXOpenSource