Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  DNF issue after updating to 7300-02-01-2346

    Posted Thu February 22, 2024 02:37 PM
    Edited by Joshua Krause Fri February 23, 2024 09:17 AM

    Error I am getting trying to run dnf update after having server patched:

    (utabstmst2904.xxxx.xx:/opt/freeware)#  /opt/freeware/bin/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.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.

    # OS Version #

    (utabstmst2904.xxxx.xx:/opt/freeware)#  oslevel -s
    7300-02-01-2346

    # rpm.rte version #

    (utabstmst2904.xxxx.xx:/opt/freeware)#  lslpp -Lc | grep rpm.rte
    rpm.rte:rpm.rte:4.18.1.2001: : :C: :RPM Package Manager: : : : : : :0:0:/:

    # /opt/freeware/packages output #

    (utabstmst2904.xxxx.xx:/opt/freeware/packages)#  ls -l
    total 16400
    -rw-r--r--    1 root     system      8364032 Feb 22 14:24 rpmdb.sqlite
    -rw-r--r--    1 root     system        32768 Feb 22 14:34 rpmdb.sqlite-shm
    -rw-r--r--    1 root     system            0 Feb 22 14:24 rpmdb.sqlite-wal

    I also ran the rpmdb --rebuildb with no errors as well as ran the updtvpkg.

    Trying to figure out what caused the issue.



    ------------------------------
    Joshua Krause
    ------------------------------


    #AIXOpenSource


  • 2.  RE: DNF issue after updating to 7300-02-01-2346

    Posted Fri February 23, 2024 12:37 AM

    Hi Joshua,

    Please let me know the output of "rpm -qa | egrep "dnf|libdnf" and "rpm -qf /opt/freeware/lib/libdnf.a"

    It seems  libdnf present is of 32-bit version.



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



  • 3.  RE: DNF issue after updating to 7300-02-01-2346

    Posted Fri February 23, 2024 04:29 AM

    Joshua,

    Hi, good day to you.

    I found this https://www.ibm.com/support/pages/aix-open-source-tip-potential-dnf-errors-when-migrating-aix-73 which might help resolve the issue as it talks of "Could not load module librpm.so" having upgraded to AIX 7.3.

    Many thanks, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 4.  RE: DNF issue after updating to 7300-02-01-2346

    Posted Fri February 23, 2024 09:06 AM
    Edited by Joshua Krause Fri February 23, 2024 09:16 AM

    Here is the output:

    (utabstmst1957.xxxx.xx:/)#  rpm -qa | egrep "dnf|libdnf"
    python3-libdnf-0.39.1-32_50.ppc
    dnf-4.2.17-32_50.ppc
    python3-dnf-plugin-migrate-4.0.16-32_50.ppc
    dnf-data-4.2.17-32_50.ppc
    libdnf-0.39.1-32_50.ppc
    python3-dnf-4.2.17-32_50.ppc
    python3-dnf-plugins-core-4.0.16-32_50.ppc
    dnf-automatic-4.2.17-32_50.ppc

    (utabstmst1957.xxxx.xx/)#  rpm -qa /opt/freeware/lib/libdnf.a
    (utabstmst1957.xxxx.xx:/)#



    ------------------------------
    Joshua Krause
    ------------------------------



  • 5.  RE: DNF issue after updating to 7300-02-01-2346

    Posted Fri February 23, 2024 12:36 PM

    Hi Joshua,

    As I was guessing you still have 32-bit DNF rpm packages installed.

    Please run the dnf script which should be able to update dnf to 64-bit version.



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



  • 6.  RE: DNF issue after updating to 7300-02-01-2346

    Posted Fri February 23, 2024 12:50 PM

    When I run the dnf script it errored out.  I ended up removing some rpms that it complained about and then re-ran the install.  Looks to be working now.



    ------------------------------
    Joshua Krause
    ------------------------------