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.  Curl Upgrade using DNF is failing

    Posted Thu September 04, 2025 05:48 AM

    Hello, I am trying to upgrade curl using dnf but it is failing. I downloaded the IBM AIX Toolbox ISO files and mounted them onto the server so that they can be used as a local repo. 

    $ 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 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/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: Could not load module /opt/freeware/lib/libdnf.a(libdnf.so.2).
            Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
            Member libcrypto.so.1.1 is not found in archive
    Could not load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module /opt/freeware/lib/libdnf.a(libdnf.so.2) could not be loaded.

    I have openssl.base installed as well as the openssl-0.9. I can't remove or install the update openssl 1.1.1, keep getting a conflict error. And when trying to remove openssl 0.9 I get a dependency error below.

    root@srpsac-vcax001:/mnt/ezinstall/ppc
    $ rpm -qa |grep openssl
    openssl-0.9.7g-1.ppc
    root@srpsac-vcax001:/mnt/ezinstall/ppc
    $
    root@srpsac-vcax001:/mnt/ezinstall/ppc
    $ lslpp -l |grep openssl
      openssl.base           3.0.15.1000  COMMITTED  Open Secure Socket Layer
      openssl.license        3.0.15.1000  COMMITTED  Open Secure Socket License
      openssl.man.en_US      3.0.15.1000  COMMITTED  Open Secure Socket Layer
      openssl.base           3.0.15.1000  COMMITTED  Open Secure Socket Layer
    root@srpsac-vcax001:/mnt/ezinstall/ppc

    This is our prod system and I don't want to break anything. Please advise. 



    ------------------------------
    G N
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Curl Upgrade using DNF is failing

    Posted Thu September 04, 2025 05:51 AM
    Edited by Aditya Kamath Thu September 04, 2025 05:51 AM

    Hi,


    >ImportError: Could not load module /opt/freeware/lib/libdnf.a(libdnf.so.2).
    >        Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
     >      Member libcrypto.so.1.1 is not found in archive

    This indicates you might have an older openssl rpm installed.

    What is the output of rpm -qa | grep openssl??

    We need to remove it, and dnf will start working.
    Can you paste the output.



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 3.  RE: Curl Upgrade using DNF is failing

    Posted Thu September 04, 2025 03:00 PM
    Edited by G N Thu September 04, 2025 03:01 PM

    Hi Aditya,

    I pasted the output in the original post. Resending for your review. 


    $ rpm -qa | grep openssl
    openssl-0.9.7g-1.ppc

    When trying to remove it I get a dependency error below. Is it safe to remove all other other rpms mentioned in the dependencies below?

    $ rpm -e openssl-0.9.7g-1.ppc
    error: Failed dependencies:
            libcrypto.a(libcrypto.so.0.9.7) is needed by (installed) lynx-2.8.4-2ssl.ppc
            libcrypto.a(libcrypto.so.0.9.7) is needed by (installed) python-2.3.4-2.ppc
            libcrypto.a(libcrypto.so.0.9.7) is needed by (installed) wget-1.9.1-1ssl.ppc
            libssl.a(libssl.so.0.9.7) is needed by (installed) lynx-2.8.4-2ssl.ppc
            libssl.a(libssl.so.0.9.7) is needed by (installed) python-2.3.4-2.ppc
            libssl.a(libssl.so.0.9.7) is needed by (installed) wget-1.9.1-1ssl.ppc
            openssl is needed by (installed) lynx-2.8.4-2ssl.ppc
            openssl is needed by (installed) apache-1.3.31-1ssl.ppc
            openssl is needed by (installed) mod_ssl-2.8.19-1ssl.ppc
            openssl is needed by (installed) wget-1.9.1-1ssl.ppc

    Thanks for your help on this. 

    ------------------------------
    G N
    ------------------------------



  • 4.  RE: Curl Upgrade using DNF is failing

    Posted Thu September 04, 2025 08:52 PM

    I had to remove some rpms lynx, python, wget, apache and it was able to run the dnf update, however, now that I am trying to do a "dnf check" it is showing me the following.

    $ dnf repolist
    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 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/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: Could not load module /opt/freeware/lib/libsolv.a(libsolv.so.1).
            Dependent module libbz2.a(libbz2.so.1) could not be loaded.
    Could not load module libbz2.a(libbz2.so.1).
    System error: No such file or directory
    Could not load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module /opt/freeware/lib/libsolv.a(libsolv.so.1) could not be loaded.



    ------------------------------
    G N
    ------------------------------



  • 5.  RE: Curl Upgrade using DNF is failing

    Posted Mon September 08, 2025 01:53 AM

    Hi,

    >ImportError: Could not load module /opt/freeware/lib/libsolv.a(libsolv.so.1).
    >        Dependent module libbz2.a(libbz2.so.1) could not be loaded.
    >Could not load module libbz2.a(libbz2.so.1).
    >System error: No such file or directory


    This indicates you do not have bzip2 installed.
    Do you have bzip2 installed?
    rpm -qa | grep bzip2

    If the output of the command above is empty, then kindly install it using dnf install bzip2 or install the RPMs from the toolbox website. This should solve the issue.



    ------------------------------
    Aditya Kamath
    ------------------------------