Power

 View Only
  • 1.  DNF issue after AIX7.3 upgrade.

    Posted Tue February 27, 2024 05:25 AM

    We have upgraded from AIX 7.2 to 7.3.Dnf is not working with below error.

    :/root # dnf repolist
    Traceback (most recent call last):
      File "/usr/bin/dnf", line 57, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 32, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-022 Cannot load module /opt/freeware/lib/libdnf.a(libdnf.so.2).
            0509-150   Dependent module librpm.so could not be loaded.
            0509-022 Cannot load module librpm.so.
            0509-026 System error: A file or directory in the path name does not exist.
    :/root #

    Then we run below dnf_aixtoolbox.sh script.But again got error as below.

    error: Failed dependencies:
            libpython3.7m.so is needed by (installed) python3-librepo-1.11.0-100.ppc
            librepo = 1.11.0-64_2 is needed by python3.9-librepo-1.11.0-64_2.ppc

    Can anyone please help here.



    ------------------------------
    Harley AIX
    ------------------------------


  • 2.  RE: DNF issue after AIX7.3 upgrade.

    Posted Thu February 29, 2024 10:20 AM

    Hi All,

    Pyhton3.9 is installed along with AIX.7.3 and old python3.7 rpm is still there.

    Can anyone help here to solve this issue.

    :/root # lslpp -l | grep python3
      python3.9.base            3.9.17.1  COMMITTED  Python 3.9 64-bit binary
      python3.9.base            3.9.17.1  COMMITTED  Python 3.9 64-bit binary
    :/root #
    :/root # python3
    Python 3.9.17 (main, Aug 22 2023, 06:43:03)
    [IBM XL C/C++ for AIX 13.1.3.7] on aix
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    :/root #
    :/root # rpm -qa | grep python
    python-urlgrabber-3.10.1-1.noarch
    python3-six-1.13.0-1.noarch
    python3-libcomps-0.1.11-100.ppc
    python3-hawkey-0.39.1-32_50.ppc
    python3-dnf-plugin-migrate-4.0.16-32_50.ppc
    python3-librepo-1.11.0-100.ppc
    samba-python3-4.14.12-1.ppc
    python-tools-2.7.18-3.ppc
    python-iniparse-0.4-1.noarch
    rpm-python3-4.15.1-32_1.ppc
    python3-dateutil-2.8.0-1.noarch
    python3-3.7.12-1.ppc
    python-2.7.18-3.ppc
    python3-libdnf-0.39.1-32_50.ppc
    python3-gpg-1.13.1-100.ppc
    python3-dnf-4.2.17-32_50.ppc
    python3-dnf-plugins-core-4.0.16-32_50.ppc
    python-pycurl-7.43.0-1.ppc
    python-devel-2.7.18-3.ppc
    :/root #



    ------------------------------
    Harley AIX
    ------------------------------