AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  dnf installation failed

    Posted Mon September 09, 2024 06:09 PM

    dnf_aixtoolbox error:

    # ./dnf_aixtoolbox_local.sh /mnt/AIX_Toolbox

    Copying dnf_bundle_aix_71_72.tar to /tmp/dnf-20240905034022 .....

    Extracting dnf_bundle_aix_71_72.tar ...
    x ca-certificates-2023.2.60-0.aix7.1.ppc.rpm, 991206 bytes, 1936 tape blocks
    x dnf-4.2.17-32_4.aix7.1.noarch.rpm, 11135 bytes, 22 tape blocks
    x dnf-automatic-4.2.17-32_4.aix7.1.noarch.rpm, 12450 bytes, 25 tape blocks
    x dnf-data-4.2.17-32_4.aix7.1.noarch.rpm, 23693 bytes, 47 tape blocks
    x extra_list, 384 bytes, 1 tape blocks
    x install_dnf.sh, 13552 bytes, 27 tape blocks
    x libcomps-0.1.15-32_1.aix7.1.ppc.rpm, 1273688 bytes, 2488 tape blocks
    x libdnf-0.39.1-32_3.aix7.1.ppc.rpm, 15816971 bytes, 30893 tape blocks
    x libmodulemd-1.5.2-32_2.aix7.1.ppc.rpm, 3433754 bytes, 6707 tape blocks
    x librepo-1.11.0-32_2.aix7.1.ppc.rpm, 3653390 bytes, 7136 tape blocks
    x libsmartcols-2.34-32_1.aix7.1.ppc.rpm, 183412 bytes, 359 tape blocks
    x libsolv-0.7.9-32_3.aix7.1.ppc.rpm, 1533540 bytes, 2996 tape blocks
    x libzstd-1.4.4-32_1.aix7.1.ppc.rpm, 469194 bytes, 917 tape blocks
    x p11-kit-0.23.22-0.aix7.1.ppc.rpm, 2148539 bytes, 4197 tape blocks
    x p11-kit-tools-0.23.22-0.aix7.1.ppc.rpm, 274086 bytes, 536 tape blocks
    x python3-3.9.16-0.aix7.1.ppc.rpm, 8920 bytes, 18 tape blocks
    x python3-dateutil-2.8.0-2.aix7.1.noarch.rpm, 6128 bytes, 12 tape blocks
    x python3-devel-3.9.16-0.aix7.1.ppc.rpm, 7699 bytes, 16 tape blocks
    x python3-dnf-4.2.17-32_4.aix7.1.noarch.rpm, 7598 bytes, 15 tape blocks
    x python3-dnf-plugin-migrate-4.0.16-32_2.aix7.1.noarch.rpm, 6568 bytes, 13 tape blocks
    x python3-dnf-plugins-core-4.0.16-32_2.aix7.1.noarch.rpm, 6776 bytes, 14 tape blocks
    x python3-gpg-1.13.1-32_3.aix7.1.ppc.rpm, 7040 bytes, 14 tape blocks
    x python3-hawkey-0.39.1-32_3.aix7.1.ppc.rpm, 23264 bytes, 46 tape blocks
    x python3-idle-3.9.16-0.aix7.1.ppc.rpm, 7283 bytes, 15 tape blocks
    x python3-libcomps-0.1.15-32_1.aix7.1.ppc.rpm, 13360 bytes, 27 tape blocks
    x python3-libdnf-0.39.1-32_3.aix7.1.ppc.rpm, 23264 bytes, 46 tape blocks
    x python3-librepo-1.11.0-32_2.aix7.1.ppc.rpm, 12860 bytes, 26 tape blocks
    x python3-six-1.13.0-2.aix7.1.noarch.rpm, 5820 bytes, 12 tape blocks
    x python3-test-3.9.16-0.aix7.1.ppc.rpm, 6228 bytes, 13 tape blocks
    x python3-tkinter-3.9.16-0.aix7.1.ppc.rpm, 6120 bytes, 12 tape blocks
    x python3.9-3.9.16-0.aix7.1.ppc.rpm, 56782290 bytes, 110903 tape blocks
    x python3.9-dateutil-2.8.0-2.aix7.1.noarch.rpm, 310485 bytes, 607 tape blocks
    x python3.9-devel-3.9.16-0.aix7.1.ppc.rpm, 19947643 bytes, 38961 tape blocks
    x python3.9-dnf-4.2.17-32_4.aix7.1.noarch.rpm, 196779 bytes, 385 tape blocks
    x python3.9-dnf-plugin-migrate-4.0.16-32_2.aix7.1.noarch.rpm, 8242 bytes, 17 tape blocks
    x python3.9-dnf-plugins-core-4.0.16-32_2.aix7.1.noarch.rpm, 33639 bytes, 66 tape blocks
    x python3.9-gpg-1.13.1-32_3.aix7.1.ppc.rpm, 1192531 bytes, 2330 tape blocks
    x python3.9-hawkey-0.39.1-32_3.aix7.1.ppc.rpm, 3116653 bytes, 6088 tape blocks
    x python3.9-idle-3.9.16-0.aix7.1.ppc.rpm, 2328852 bytes, 4549 tape blocks
    x python3.9-libcomps-0.1.15-32_1.aix7.1.ppc.rpm, 1049812 bytes, 2051 tape blocks
    x python3.9-libdnf-0.39.1-32_3.aix7.1.ppc.rpm, 22550948 bytes, 44045 tape blocks
    x python3.9-librepo-1.11.0-32_2.aix7.1.ppc.rpm, 2293000 bytes, 4479 tape blocks
    x python3.9-six-1.13.0-2.aix7.1.noarch.rpm, 45630 bytes, 90 tape blocks
    x python3.9-test-3.9.16-0.aix7.1.ppc.rpm, 33159212 bytes, 64765 tape blocks
    x python3.9-tkinter-3.9.16-0.aix7.1.ppc.rpm, 1162787 bytes, 2272 tape blocks
    x rpm-python3-4.15.1-32_2.aix7.1.ppc.rpm, 9496 bytes, 19 tape blocks
    x rpm-python3.9-4.15.1-32_2.aix7.1.ppc.rpm, 98982 bytes, 194 tape blocks
    x rpm.rte, 43051008 bytes, 84084 tape blocks
    x yum-4.2.17-32_4.aix7.1.noarch.rpm, 8634 bytes, 17 tape blocks
    x zchunk-1.1.4-32_2.aix7.1.ppc.rpm, 554294 bytes, 1083 tape blocks
    x zchunk-devel-1.1.4-32_2.aix7.1.ppc.rpm, 19256 bytes, 38 tape blocks
    x zchunk-libs-1.1.4-32_2.aix7.1.ppc.rpm, 534032 bytes, 1044 tape blocks

    Installing rpm.rte at the latest version ...
    This may take several minutes depending on the number of rpms installed...
    +-----------------------------------------------------------------------------+
    Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    WARNINGS
    --------
    Problems described in this section are not likely to be the source of any
    immediate or serious failures, but further actions may be necessary or
    desired.

    Already Installed
    -----------------
    The number of selected filesets that are either already installed
    or effectively installed through superseding filesets is 1. See
    the summaries at the end of this installation for details.

    NOTE: Base level filesets may be reinstalled using the "Force"
    option (-F flag), or they may be removed, using the deinstall or
    "Remove Software Products" facility (-u flag), and then reinstalled.

    << End of Warning Section >>

    +-----------------------------------------------------------------------------+
    BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
    1 Selected to be installed, of which:
    1 Already installed (directly or via superseding filesets)
    ----
    0 Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name Level Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    rpm.rte 4.15.1.1011 Already installed



    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.

    ca-certificates-2023.2.60-0 will be installed
    dnf-4.2.17-32_4 will be installed
    dnf-automatic-4.2.17-32_4 will be installed
    dnf-data-4.2.17-32_4 will be installed
    libcomps-0.1.15-32_1 will be installed
    libdnf-0.39.1-32_3 will be installed
    libmodulemd-1.5.2-32_2 will be installed
    librepo-1.11.0-32_2 will be installed
    libsmartcols-2.34-32_1 will be installed
    libsolv-0.7.9-32_3 will be installed
    libzstd-1.4.4-32_1 will be installed
    p11-kit-0.23.22-0 will be installed
    p11-kit-tools-0.23.22-0 will be installed
    python3-3.9.16-0 will be installed
    python3-dnf-4.2.17-32_4 will be installed
    python3-gpg-1.13.1-32_3 will be installed
    python3-hawkey-0.39.1-32_3 will be installed
    python3-libcomps-0.1.15-32_1 will be installed
    python3-libdnf-0.39.1-32_3 will be installed
    python3-librepo-1.11.0-32_2 will be installed
    python3.9-3.9.16-0 will be installed
    python3.9-dnf-4.2.17-32_4 will be installed
    python3.9-gpg-1.13.1-32_3 will be installed
    python3.9-hawkey-0.39.1-32_3 will be installed
    python3.9-libcomps-0.1.15-32_1 will be installed
    python3.9-libdnf-0.39.1-32_3 will be installed
    python3.9-librepo-1.11.0-32_2 will be installed
    rpm-python3-4.15.1-32_2 will be installed
    rpm-python3.9-4.15.1-32_2 will be installed
    yum-4.2.17-32_4 will be installed
    zchunk-libs-1.1.4-32_2 will be installed

    Installing the packages...

    error: Failed dependencies:
    librpm.a(librpm.so.9) is needed by libdnf-0.39.1-32_3.ppc
    librpmio.a(librpmio.so.9) is needed by libdnf-0.39.1-32_3.ppc
    librpm.a(librpm.so.9) is needed by libsolv-0.7.9-32_3.ppc
    librpmio.a(librpmio.so.9) is needed by libsolv-0.7.9-32_3.ppc
    libnsl.a(shr.o) is needed by python3.9-3.9.16-0.ppc
    libnsl.a(shr_64.o) is needed by python3.9-3.9.16-0.ppc
    librpm.a(librpm.so.9) is needed by rpm-python3.9-4.15.1-32_2.ppc
    librpmbuild.a(librpmbuild.so.9) is needed by rpm-python3.9-4.15.1-32_2.ppc
    librpmio.a(librpmio.so.9) is needed by rpm-python3.9-4.15.1-32_2.ppc
    librpmsign.a(librpmsign.so.9) is needed by rpm-python3.9-4.15.1-32_2.ppc

    dnf installation failed.
    If the failure was due to a space issue, increase the size of /opt and re-run script again.
    Another reason for failure could be mixing of Toolbox packages and packages from other sources.

    Please check the failure error, correct it and retry again.



    ------------------------------
    GDC GROUP
    ------------------------------


  • 2.  RE: dnf installation failed

    Posted Tue September 10, 2024 05:38 AM



    Can you run the "updtvpkg" command, then try running the script.



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



  • 3.  RE: dnf installation failed

    Posted Thu September 12, 2024 12:14 PM

    Hi Aditya Kamath,

    updtvpkg command worked and for updating the dnf am getting the below error.

    # 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 32, 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/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module libgcc_s.a(shr.o) could not be loaded.
    Could not load module libgcc_s.a(shr.o).
    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/python3.9/site-packages/libdnf/_common_types.so could not be loaded.



    ------------------------------
    GDC GROUP
    ------------------------------



  • 4.  RE: dnf installation failed

    Posted Fri September 13, 2024 09:37 AM

    Hi,

    Can you please provide output of this command?

    rpm -qa



    ------------------------------
    Shubham Gupta
    ------------------------------



  • 5.  RE: dnf installation failed

    Posted Fri September 13, 2024 09:56 AM

    Hi Shubham Gupta,

    rpm -qa output given below.

    # rpm -qa
    expect-5.42.1-3.ppc
    pci.df1000fa-1-191A5.noarch
    tar-1.22-1.ppc
    tk-8.4.7-3.ppc
    zlib-1.2.5-1.ppc
    python3.9-3.9.16-0.ppc
    libzstd-1.4.4-32_1.ppc
    libsolv-0.7.9-32_3.ppc
    libsmartcols-2.34-32_1.ppc
    librepo-1.11.0-32_2.ppc
    python3.9-libdnf-0.39.1-32_3.ppc
    python3.9-gpg-1.13.1-32_3.ppc
    python3.9-librepo-1.11.0-32_2.ppc
    p11-kit-tools-0.23.22-0.ppc
    python3.9-libcomps-0.1.15-32_1.ppc
    python3-dnf-4.2.17-32_4.noarch
    dnf-automatic-4.2.17-32_4.noarch
    python3-libcomps-0.1.15-32_1.ppc
    python3-librepo-1.11.0-32_2.ppc
    python3-hawkey-0.39.1-32_3.ppc
    rpm-python3-4.15.1-32_2.ppc
    sudo-1.7.4p6-1.ppc
    tcl-8.4.7-3.ppc
    unzip-5.51-1.ppc
    zlib-devel-1.2.5-1.ppc
    lpar2rrd-agent-7.50-0.ppc
    AIX-rpm-7.2.5.206-13.ppc
    python3-3.9.16-0.ppc
    libmodulemd-1.5.2-32_2.ppc
    rpm-python3.9-4.15.1-32_2.ppc
    zchunk-libs-1.1.4-32_2.ppc
    libdnf-0.39.1-32_3.ppc
    python3.9-hawkey-0.39.1-32_3.ppc
    dnf-data-4.2.17-32_4.noarch
    p11-kit-0.23.22-0.ppc
    libcomps-0.1.15-32_1.ppc
    python3.9-dnf-4.2.17-32_4.noarch
    dnf-4.2.17-32_4.noarch
    yum-4.2.17-32_4.noarch
    ca-certificates-2023.2.60-0.ppc
    python3-gpg-1.13.1-32_3.ppc
    python3-libdnf-0.39.1-32_3.ppc



    ------------------------------
    GDC GROUP
    ------------------------------



  • 6.  RE: dnf installation failed

    Posted Tue September 17, 2024 06:49 AM

    Sorry for the delay.

    Please provide the output of 

    ls -l /opt/freeware/lib/libgcc_s.a

    ls -l /opt/freeware/lib/libstdc++.a

    rpm -ql libdnf | egrep "libgcc_s.a|libstdc"

    Did you see any error during the install of rpm packages as part of setting up the DNF ?



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



  • 7.  RE: dnf installation failed

    Posted Tue September 17, 2024 08:42 AM

    Hi team,
    Please find the below output

    # ls -l /opt/freeware/lib/libgcc_s.a
    /opt/freeware/lib/libgcc_s.a not found
    # ls -l /opt/freeware/lib/libstdc++.a
    lrwxrwxrwx    1 root     system           36 Sep 12 08:18 /opt/freeware/lib/libstdc++.a -> /opt/freeware/libdnfdeps/libstdc++.a
    # rpm -ql libdnf | egrep "libgcc_s.a|libstdc"
    /opt/freeware/libdnfdeps/libgcc_s.a
    /opt/freeware/libdnfdeps/libstdc++.a

    Did you see any error during the install of rpm packages as part of setting up the DNF ?

    We are trying to install the GCC10 for this multiple library dependencies required so we tried to install dnf. After the dnf installation dnf update we are getting the below error.

    # 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 32, 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/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module libgcc_s.a(shr.o) could not be loaded.
    Could not load module libgcc_s.a(shr.o).
    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/python3.9/site-packages/libdnf/_common_types.so could not be loaded.



    ------------------------------
    GDC GROUP
    ------------------------------



  • 8.  RE: dnf installation failed

    Posted Tue September 17, 2024 11:20 AM

    Not sure why this "/opt/freeware/lib/libgcc_s.a" soft link is missing.

    It will be created when we install libdnf.

    Anyway, you can create is manually "ln -s /opt/freeware/libdnfdeps/libgcc_s.a /opt/freeware/lib/libgcc_s.a"

    Then dnf should be able to run.



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