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 not working after AIX 7.2 to 7.3 migration

    Posted Tue February 20, 2024 02:10 PM

    Hello, we removed everything related to rpm and dnf then ran the following commands to do the install for AIX 7.3 - 

    ./destroyRPMS

    /usr/sbin/updtvpkg

    ./install_dnf.sh -d

    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.

    Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    RPM packages install files go under the path /opt.
    Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    to avoid any download and installation/update failures.

    Then did this - and this is where it's failing:

    # /opt/freeware/bin/dnf update
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, 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/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/librepo.a(librepo.so.0).
            0509-150   Dependent module /opt/freeware/lib/libssl.a(libssl.so.1.1) could not be loaded.
            0509-152   Member libssl.so.1.1 is not found in archive



    ------------------------------
    Frank Malvestuto
    ------------------------------

    #AIXOpenSource


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

    Posted Tue February 20, 2024 04:01 PM

    You should unlink/remove this file :

    /opt/freeware/lib/libssl.a

    That does not look like an AIX openssl.base library.

    The following should have printed out at the end of the destroyRPMs script

     Your rpms have been removed, but the /opt/freeware and /usr/opt/freeware directories (one is just a symbolic link) have been left present.  You may want to look through these directories for any files you may have created yourself.  If there is nothing that you want to save, you can now remove these directories and any remaining contents within.



    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



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

    Posted Tue February 20, 2024 05:11 PM

    Hi Jan!! So wonderful to hear from you... 

    I renamed that file to .old and then ran the dnf update and it was successful!!

    Thanks so much for you and Boris help... 

    Frank



    ------------------------------
    Frank Malvestuto
    ------------------------------