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 failed after installation

    Posted Wed September 25, 2024 10:10 AM

    Hi,

    I have migrated from AIX 7.1 to AIX 73. Then updated service pack 1.

    After that, updated openssl version and openssh.

    Post that I installed DNF.

    When I am running dnf repolist dnf update, getting below error

    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/python3.9/site-packages/libdnf/_common_types.so.
            0509-150   Dependent module /opt/freeware/lib64/libsmartcols.a(libsmartcols.so.1) could not be loaded.
            0509-152   Member libsmartcols.so.1 is not found in archive

    Need support on this.



    ------------------------------
    Satish Kumar
    ------------------------------

    #AIXOpenSource


  • 2.  RE: DNF failed after installation

    Posted Wed September 25, 2024 02:01 PM

    Hi Satish

    You had DNF installed on AIX 7.1 before migration ?

    Can you send the output of "rpm -qa"



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



  • 3.  RE: DNF failed after installation

    Posted Thu September 26, 2024 02:13 AM

    Hi Sangamesh

    I installed DNF after migration to AIX 7.3

    Below in the output of rpm -qa

    fitelpsp24p01:(/root)(root)#rpm -qa
    expect-5.42.1-3.ppc
    HPITO-ESAR-AIX-dsidiskcap-130-0.noarch
    sudo-1.6.9p23-2noldap.ppc
    bash-4.2-3.ppc
    gettext-0.10.40-8.ppc
    openssl-1.0.2n-1.ppc
    libffi-3.2.1-2.ppc
    gnupg-1.4.22-1.ppc
    libksba-1.3.0-1.ppc
    vnc-3.3.3r2-6.ppc
    HPITO-ESAR-AIX-esarinv-101-0.ppc
    bash-doc-3.2-1.ppc
    rsync-3.0.6-1.ppc
    libiconv-1.15-1.ppc
    openldap-2.4.44-0.1.ppc
    glib2-2.34.3-1.ppc
    libassuan-2.5.1-1.ppc
    pth-2.0.7-3.ppc
    unzip-6.0-3.ppc
    tcl-8.4.7-3.ppc
    libssh2-1.8.0-1.ppc
    zlib-1.2.11-1.ppc
    HPITO-ESAR-AIX-R3Status-142-0.ppc
    bzip2-1.0.6-1.ppc
    info-6.5-1.ppc
    libidn-1.33-1.ppc
    pkg-config-0.29.1-1.ppc
    libgcrypt-1.8.2-1.ppc
    gnupg2-2.0.26-1.ppc
    tk-8.4.7-3.ppc
    HPITO-ESAR-AIX-base_package-120-0.ppc
    screen-3.9.10-2.ppc
    HPITO-ESAR-AIX-sysdowntime-160-0.ppc
    lpar2rrd-agent-5.05-8.ppc
    readline-7.0-3.ppc
    curl-7.57.0-1.ppc
    libgpg-error-1.27-1.ppc
    libzstd-1.4.4-64_2.ppc
    libmodulemd-1.5.2-64_2.ppc
    libsolv-0.7.9-64_4.ppc
    libsmartcols-2.34-64_1.ppc
    zchunk-libs-1.1.4-64_3.ppc
    librepo-1.11.0-64_2.ppc
    dnf-data-4.2.17-64_6.noarch
    rpm-python3-4.15.1-64_4.ppc
    libdnf-0.39.1-64_5.ppc
    p11-kit-0.23.22-0.ppc
    p11-kit-tools-0.23.22-0.ppc
    libcomps-0.1.15-64_1.ppc
    python3-dnf-4.2.17-64_6.noarch
    dnf-4.2.17-64_6.noarch
    dnf-automatic-4.2.17-64_6.noarch
    yum-4.2.17-64_6.noarch
    python3-libcomps-0.1.15-64_1.ppc
    ca-certificates-2023.2.60-0.ppc
    python3-librepo-1.11.0-64_2.ppc
    python3-hawkey-0.39.1-64_5.ppc
    python3-libdnf-0.39.1-64_5.ppc
    python3-gpg-1.13.1-64_3.ppc
    libgcc12-12.3.0-1.ppc
    libgcc8-8.3.0-7.ppc
    libgcc10-10.3.0-6.ppc
    AIX-rpm-7.3.2.1-9.ppc



    ------------------------------
    Satish Kumar
    ------------------------------



  • 4.  RE: DNF failed after installation

    Posted Thu September 26, 2024 11:13 AM
    Edited by SANGAMESH MALLAYYA Thu September 26, 2024 11:15 AM

    Hi Satish,

    How you have installed DNF ?

    I don't see python3.9 and python3.9 DNF related packages in the list of packages.

    Can you provide the output of

    rpm -qf /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so

    dump -X64 -Hov /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so

    ar -X64 -tv  /opt/freeware/lib64/libsmartcols.a



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



  • 5.  RE: DNF failed after installation

    Posted Thu September 26, 2024 02:20 AM

    Hi Sangmesh,

    This is different server. I migrated OS from AXI 7.1 to AXI 73.

    No DNF installed, no ssh or openssl updated.

    When I am running rpm -qa, getting error

    mtw status: no outage - NORMAL OPERATION
    24a01:(/root)(root)#rpm -qa
    exec(): 0509-036 Cannot load program /usr/opt/rpm/bin/rpm because of the following errors:
            0509-022 Cannot load module /usr/opt/rpm/lib64/librpmio.a(librpmio.so.9).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.3) could not be loaded.
            0509-152   Member libcrypto.so.3 is not found in archive 

    please suggest how to resolve this issue.



    ------------------------------
    Satish Kumar
    ------------------------------



  • 6.  RE: DNF failed after installation

    Posted Thu September 26, 2024 11:18 AM

    Hi Satish,

    You need to remove the openssl rpm package as this might cause other issues as well.

    Other option to resolve the rpm error is to update to latest rpm.rte.



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