Power

 View Only
  • 1.  DNF Install on AIX 7.3

    Posted Tue February 20, 2024 11:54 AM

    Greetings! 

    After installing DNF on an AIX 7.3 System Successfully that did not have yum installed I am getting failures when trying to run dnf update.  Any ideas?

    ]./dnf_aixtoolbox.sh -d
    Attempting download of dnf_bundle_aix_73.tar ...
    Saving to 'dnf_bundle_aix_73.tar'...
    223 MB received in 6 minutes (593 KB/sec)

    Then

    Installing the packages...

    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:python3.9-3.9.16-0               ################################# [  3%]
       2:python3-3.9.16-0                 ################################# [  7%]
       3:libzstd-1.4.4-64_2               ################################# [ 10%]
       4:libmodulemd-1.5.2-64_2           ################################# [ 13%]
       5:libsolv-0.7.9-64_4               ################################# [ 17%]
       6:libsmartcols-2.34-64_1           ################################# [ 20%]
       7:zchunk-libs-1.1.4-64_3           ################################# [ 23%]
       8:librepo-1.11.0-64_2              ################################# [ 27%]
       9:python3.9-gpg-1.13.1-64_3        ################################# [ 30%]
      10:rpm-python3.9-4.15.1-64_4        ################################# [ 33%]
      11:rpm-python3-4.15.1-64_4          ################################# [ 37%]
      12:libdnf-0.39.1-64_5               ################################# [ 40%]
      13:python3.9-libdnf-0.39.1-64_5     ################################# [ 43%]
      14:python3.9-hawkey-0.39.1-64_5     ################################# [ 47%]
      15:python3.9-librepo-1.11.0-64_2    ################################# [ 50%]
      16:p11-kit-0.23.22-0                ################################# [ 53%]
      17:p11-kit-tools-0.23.22-0          ################################# [ 57%]
      18:libcomps-0.1.15-64_1             ################################# [ 60%]
      19:python3.9-libcomps-0.1.15-64_1   ################################# [ 63%]
      20:dnf-data-4.2.17-64_6             ################################# [ 67%]
      21:python3.9-dnf-4.2.17-64_6        ################################# [ 70%]
      22:python3-dnf-4.2.17-64_6          ################################# [ 73%]
      23:dnf-4.2.17-64_6                  ################################# [ 77%]
      24:dnf-automatic-4.2.17-64_6        ################################# [ 80%]
      25:python3-libcomps-0.1.15-64_1     ################################# [ 83%]
      26:ca-certificates-2023.2.60-0      ################################# [ 87%]
      27:python3-librepo-1.11.0-64_2      ################################# [ 90%]
      28:python3-hawkey-0.39.1-64_5       ################################# [ 93%]
      29:python3-libdnf-0.39.1-64_5       ################################# [ 97%]
      30:python3-gpg-1.13.1-64_3          ################################# [100%]

    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.

    But here is the problem:

    drs-nim01->root:[/export/software/rpm-packages]cd /opt/freeware/bin
    drs-nim01->root:[/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/libdnf.a(libdnf.so.2).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
            0509-152   Member libcrypto.so.1.1 is not found in archive
    drs-nim01->root:[/opt/freeware/bin]



    ------------------------------
    Gary Rafidi
    ------------------------------


  • 2.  RE: DNF Install on AIX 7.3

    Posted Tue February 20, 2024 05:14 PM

    This error

    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/libdnf.a(libdnf.so.2).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
            0509-152   Member libcrypto.so.1.1 is not found in archive

    Suggests that you have a non-AIX libcrypto.a installed in  /opt/freeware/lib/

    See the AIX "What's New" 

    23-Nov-2023   AIX rpm.rte file set
    The RPM version is upgraded to 4.18.1. The nss, nspr, and db library packages are removed from the AIX base image as these library packages were used internally and are no longer needed for rpm.


    IMPORTANT: Update dnf before you update AIX. If you have not updated to python3.9 yet, dnf with python3.7 will fail to run with rpm.rte 4.18.See the May 24 entry in this table.

    NOTE: You should remove any non-AIX openssl packages that deliver related libraries to /opt/freeware/lib. These files will conflict with rpm. These files have caused issues for some packages for some time, but will certainly cause rpm failures due to missing libcrypto.so.3



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



  • 3.  RE: DNF Install on AIX 7.3

    Posted Tue February 20, 2024 05:21 PM

    Thanks for your help Jan!  I will follow the bread crumbs.