AIX Open Source

 View Only
  • 1.  DNF is not working after AIX 7.2 to 7.3 upgrade

    Posted Thu November 21, 2024 02:44 AM

    Hi Team,

    DNF is not working after upgrading server from 7.2 to 7.3. It seems something breakup. Please help to figure it out. We have to upgrade all server from 7.2 to 7.3

    What is the best recommended approach going further. Currently only tested this on one server.

    :/# dnf list

    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 32, in <module>

        import dnf.base

      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>

        import libdnf.transaction

      File "/opt/freeware/lib/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>

        from . import common_types

      File "/opt/freeware/lib/python3.9/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.a(librpm.so.9) could not be loaded.

            0509-022 Cannot load module librpm.a(librpm.so.9).

            0509-026 System error: A file or directory in the path name does not exist.

    root@dsmjca003t:/# rpm -qa
    rpm-python3.9-4.15.1-32_2.ppc
    rpm-python3-4.15.1-32_2.ppc
    libgcc-10-2.ppc
    libstdc++10-10.3.0-6.ppc
    ncurses-6.4-1.ppc
    libgomp10-10.3.0-6.ppc
    readline-8.2-1.ppc
    libtextstyle-0.21-2.ppc
    libiconv-1.17-1.ppc
    bash-5.2.15-1.ppc
    gdbm-1.23-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    wget-1.21.4-1.ppc
    gc-guest-agent-5.49.24028.62292-cfcdf93e86.ppc
    libffi-3.4.4-2.ppc
    libzstd-1.5.2-3.ppc
    libxml2-2.12.6-1.ppc
    libsmartcols-2.34-101.ppc
    python3.9-3.9.19-1.ppc
    libtasn1-4.19.0-1.ppc
    check-0.13.0-1.ppc
    libgcrypt-1.10.3-1.ppc
    nettle-3.9.1-1.ppc
    libksba-1.6.3-1.ppc
    ca-certificates-2023.2.60-2.ppc
    python3.9-libcomps-0.1.15-101.ppc
    dnf-data-4.2.17-32_51.ppc
    libyaml-0.2.5-1.ppc
    libssh2-1.10.0-2.ppc
    krb5-libs-1.21.2-1.ppc
    zchunk-libs-1.1.4-103.ppc
    gnupg2-2.4.3-1.ppc
    librepo-1.11.0-103.ppc
    python3.9-libdnf-0.39.1-32_52.ppc
    python3.9-gpg-1.13.1-101.ppc
    python3-dnf-4.2.17-32_51.ppc
    python3.9-librepo-1.11.0-103.ppc
    dnf-automatic-4.2.17-32_51.ppc
    python3-hawkey-0.39.1-32_52.ppc
    python3-libcomps-0.1.15-101.ppc
    libunistring-1.1-1.ppc
    libgcc10-10.3.0-6.ppc
    zlib-1.2.13-1.ppc
    libstdc++-10-2.ppc
    bzip2-1.0.8-2.ppc
    xz-libs-5.4.3-1.ppc
    libgomp-10-2.ppc
    pcre-8.44-2.ppc
    gettext-0.21-2.ppc
    info-7.0.2-1.ppc
    db-5.3.28-1.ppc
    openldap-2.5.16-1.ppc
    pcre2-10.40-1.ppc
    libgpg-error-1.49-1.ppc
    glib2-2.76.3-2.ppc
    sqlite-3.45.3-1.ppc
    libassuan-2.5.6-1.ppc
    expat-2.6.2-1.ppc
    python3-3.9.19-1.ppc
    json-c-0.17-1.ppc
    p11-kit-0.24.1-1.ppc
    gmp-6.3.0-1.ppc
    gnutls-3.8.2-1.ppc
    p11-kit-tools-0.24.1-1.ppc
    libcomps-0.1.15-101.ppc
    pinentry-1.0.0-1.ppc
    npth-1.5-1.ppc
    libmodulemd-1.5.2-100.ppc
    libnghttp2-1.58.0-1.ppc
    curl-8.7.1-1.ppc
    libsolv-0.7.9-32_53.ppc
    gpgme-1.13.1-101.ppc
    libdnf-0.39.1-32_52.ppc
    python3.9-hawkey-0.39.1-32_52.ppc
    python3.9-dnf-4.2.17-32_51.ppc
    dnf-4.2.17-32_51.ppc
    python3-librepo-1.11.0-103.ppc
    python3-gpg-1.13.1-101.ppc
    python3-libdnf-0.39.1-32_52.ppc
    sudo-1.9.15p5-1.ppc
    AIX-rpm-7.3.2.0-5.ppc
    root@dsmjca003t:/# oslevel -s
    7300-02-00-0000



    ------------------------------
    Manoj Kumar
    ------------------------------


  • 2.  RE: DNF is not working after AIX 7.2 to 7.3 upgrade

    Posted Thu November 21, 2024 03:30 AM

    Did you take required steps to migrate from AIX 7.2 to 7.3 for dnf to work?

    Following blog was published for migrating dnf from AIX 7.2 to AIX 7.3

    Please go thru this and rectify issue.

    https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2022/01/10/aix-migration-with-dnf

     

     

    Thanks,

     

    Sanket Rathi

     






  • 3.  RE: DNF is not working after AIX 7.2 to 7.3 upgrade

    Posted Thu November 21, 2024 03:46 AM

    Thanks Sanket. We will check and update.



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 4.  RE: DNF is not working after AIX 7.2 to 7.3 upgrade

    Posted Thu November 21, 2024 07:43 AM

    Thanks Sanket for the help. Those steps working for us. We just started the OS migration, Would you suggest anything else before doing migration, any prerequisite? 



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 5.  RE: DNF is not working after AIX 7.2 to 7.3 upgrade

    Posted Thu November 21, 2024 09:37 AM

    I would let Sangamesh tell if anything else is needed. But that blog captures all pre-requisites.

     

    Thanks,

     

    Sanket Rathi

     






  • 6.  RE: DNF is not working after AIX 7.2 to 7.3 upgrade

    Posted Fri November 22, 2024 01:34 AM

    Hi Manoj

    Make sure all your packages are updated to latest version before migration.

    You can run "dnf update" before migration.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 7.  RE: DNF is not working after AIX 7.2 to 7.3 upgrade

    Posted Tue November 26, 2024 03:09 AM

    Thank you Sangamesh/Team, Really appreciate the support.



    ------------------------------
    Manoj Kumar
    ------------------------------