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/YUM Installation on AIX 7200-05-03-2135

    Posted Mon August 01, 2022 02:53 AM
    Hello,

    I am trying to install DNF/YUM using the installation script. It seems to install fine, but when I try to run dnf, I get an error:
    # ./dnf_aixtoolbox.sh -y
    Attempting download of dnf_bundle_aix_71_72.tar ...
    Saving to 'dnf_bundle_aix_71_72.tar'...
    168 MB received in 67 seconds (2.5 MB/sec)
     
    Extracting dnf_bundle_aix_71_72.tar ...
    x ca-certificates-2020.06.01-0.aix7.1.ppc.rpm, 952182 bytes, 1860 tape blocks
    x dnf-4.2.17-32_2.aix7.1.noarch.rpm, 10981 bytes, 22 tape blocks
    x dnf-automatic-4.2.17-32_2.aix7.1.noarch.rpm, 12288 bytes, 24 tape blocks
    x dnf-data-4.2.17-32_2.aix7.1.noarch.rpm, 23516 bytes, 46 tape blocks
    x extra_list, 218 bytes, 1 tape blocks
    x install_dnf.sh, 11878 bytes, 24 tape blocks
    x libcomps-0.1.11-32_1.aix7.1.ppc.rpm, 1273338 bytes, 2487 tape blocks
    x libdnf-0.39.1-32_2.aix7.1.ppc.rpm, 15810655 bytes, 30881 tape blocks
    x libmodulemd-1.5.2-32_2.aix7.1.ppc.rpm, 3433754 bytes, 6707 tape blocks
    x librepo-1.11.0-32_1.aix7.1.ppc.rpm, 3650338 bytes, 7130 tape blocks
    x libsmartcols-2.34-32_1.aix7.1.ppc.rpm, 183412 bytes, 359 tape blocks
    x libsolv-0.7.9-32_1.aix7.1.ppc.rpm, 1533403 bytes, 2995 tape blocks
    x libzstd-1.4.4-32_1.aix7.1.ppc.rpm, 469194 bytes, 917 tape blocks
    x p11-kit-0.23.16-0.aix7.1.ppc.rpm, 1047702 bytes, 2047 tape blocks
    x p11-kit-tools-0.23.16-0.aix7.1.ppc.rpm, 39777 bytes, 78 tape blocks
    x python3-3.7.9-0.aix7.1.ppc.rpm, 43168080 bytes, 84313 tape blocks
    x python3-dateutil-2.8.0-1.aix6.1.noarch.rpm, 363137 bytes, 710 tape blocks
    x python3-devel-3.7.9-0.aix7.1.ppc.rpm, 237244 bytes, 464 tape blocks
    x python3-dnf-4.2.17-32_2.aix7.1.noarch.rpm, 197205 bytes, 386 tape blocks
    x python3-dnf-plugin-migrate-4.0.16-32_1.aix7.1.noarch.rpm, 8546 bytes, 17 tape blocks
    x python3-dnf-plugins-core-4.0.16-32_1.aix7.1.noarch.rpm, 49763 bytes, 98 tape blocks
    x python3-docs-3.7.9-0.aix7.1.ppc.rpm, 2993180 bytes, 5847 tape blocks
    x python3-gpgme-1.13.1-32_1.aix7.1.ppc.rpm, 682308 bytes, 1333 tape blocks
    x python3-hawkey-0.39.1-32_2.aix7.1.ppc.rpm, 3113865 bytes, 6082 tape blocks
    x python3-libcomps-0.1.11-32_1.aix7.1.ppc.rpm, 1020925 bytes, 1994 tape blocks
    x python3-libdnf-0.39.1-32_2.aix7.1.ppc.rpm, 22549836 bytes, 44043 tape blocks
    x python3-librepo-1.11.0-32_1.aix7.1.ppc.rpm, 2292962 bytes, 4479 tape blocks
    x python3-six-1.13.0-1.aix6.1.noarch.rpm, 514483 bytes, 1005 tape blocks
    x python3-test-3.7.9-0.aix7.1.ppc.rpm, 28383122 bytes, 55436 tape blocks
    x python3-tools-3.7.9-0.aix7.1.ppc.rpm, 12734 bytes, 25 tape blocks
    x rpm-python3-4.15.1-32_1.aix7.1.ppc.rpm, 100168 bytes, 196 tape blocks
    x rpm.rte, 40620032 bytes, 79336 tape blocks
    x yum-4.2.17-32_2.aix7.1.noarch.rpm, 8466 bytes, 17 tape blocks
    x zchunk-1.1.4-32_1.aix7.1.ppc.rpm, 552363 bytes, 1079 tape blocks
    x zchunk-devel-1.1.4-32_1.aix7.1.ppc.rpm, 19487 bytes, 39 tape blocks
    x zchunk-libs-1.1.4-32_1.aix7.1.ppc.rpm, 534328 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...
     
    SUCCESSES
    ---------
      Filesets listed in this section passed pre-installation verification
      and will be installed.
     
      Selected Filesets
      -----------------
      rpm.rte 4.15.1.3                            # RPM Package Manager
     
      << End of Success Section >>
     
    +-----------------------------------------------------------------------------+
                       BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
        1  Selected to be installed, of which:
            1  Passed pre-installation verification
      ----
        1  Total to be installed
     
    +-----------------------------------------------------------------------------+
                             Installing Software...
    +-----------------------------------------------------------------------------+
     
    installp: APPLYING software for:
            rpm.rte 4.15.1.3
     
    Checking if rpm package is already owning
      some of the libraries and binaries..
     
    . . . . . << Copyright notice for rpm.rte >> . . . . . . .
     Licensed Materials - Property of IBM
     
     5765H4000
       Copyright International Business Machines Corp. 2014, 2020-2021.
       Copyright "Cowboy" Ben Alman, 2010.
       Copyright Steven Benner (http://stevenbenner.com/), 2013.
       Copyright The Regents of the University of California, 1990, 1993, 1994.
       Copyright Ralf Corsepius <corsepiu@fedoraproject.org>, 2007.
       Copyright Vasil Dinkov, Vadikom Web Ltd., 2016.
       Copyright The Dojo Foundation, 2011.
       Copyright Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995-1997, 2000-2006.
       Copyright Tom Dyas <tdyas@eden.rutgers.edu>, 1998.
       Copyright W. L. Estes <wlestes@uncg.edu>, 1998.
       Copyright Free Software Foundation, Inc., 1989, 1991-2018.
       Copyright Dave Furfero, 2011-2014.
       Copyright Neal Gompa <ngompa13@gmail.com>, 2015.
       Copyright Dimitri van Heesch, 1997-2017.
       Copyright The Internet Society (1998).
       Copyright Per Oeyvind Karlsen <proyvind@moondrake.org>, 2010.
       Copyright Dmitry V. Levin <ldv@altlinux.org>, 2019.
       Copyright Dan Nicholson <dbn.lists@gmail.com>, 2012-2015.
       Copyright Red Hat, Inc., 1998-2003, 2005, 2007, 2009-2011, 2016-2017.
       Copyright Red Hat Software, 1995-2002.
       Copyright Scott James Remnant <scott@netsplit.com>, 2004.
       Copyright John Resig, 2011.
       Copyright Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>, 2004.
       Copyright System Design and Research, 2003.
       Copyright Julian Seward et al., 2002-2015.
       Copyright Mark J. Wielaard <mark@klomp.org>, 2016, 2019.
       Copyright X Consortium, 1994.
     
     All rights reserved.
     US Government Users Restricted Rights - Use, duplication or disclosure
     restricted by GSA ADP Schedule Contract with IBM Corp.
    . . . . . << End of copyright notice for rpm.rte >>. . . .
     
    ##################################################################
      This version of rpm installs files under the path /usr/opt/rpm.
      More detailed information on new changes can be found in
      /usr/opt/rpm/README file.
    ##################################################################
     
    Please wait...
    Successfully updated the Kernel Authorization Table.
    Successfully updated the Kernel Role Table.
    Successfully updated the Kernel Command Table.
    Successfully updated the Kernel Device Table.
    Successfully updated the Kernel Object Domain Table.
    Successfully updated the Kernel  Domains Table.
    Successfully updated the Kernel RBAC log level.
    Successfully updated the Kernel Authorization Table.
    Successfully updated the Kernel Role Table.
    Successfully updated the Kernel Command Table.
    Successfully updated the Kernel Device Table.
    Successfully updated the Kernel Object Domain Table.
    Successfully updated the Kernel  Domains Table.
    Successfully updated the Kernel RBAC log level.
    Finished processing all filesets.  (Total time:  26 secs).
     
    +-----------------------------------------------------------------------------+
                                    Summaries:
    +-----------------------------------------------------------------------------+
     
    Installation Summary
    --------------------
    Name                        Level           Part        Event       Result
    -------------------------------------------------------------------------------
    rpm.rte                     4.15.1.3        USR         APPLY       SUCCESS
    rpm.rte                     4.15.1.3        ROOT        APPLY       SUCCESS
     
     
    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.
     
    ca-certificates-2020.06.01-0 is already installed
    dnf-4.2.17-32_2 is already installed
    dnf-automatic-4.2.17-32_2 is already installed
    dnf-data-4.2.17-32_2 is already installed
    libcomps-0.1.11-32_1 is already installed
    libdnf-0.39.1-32_2 is already installed
    libmodulemd-1.5.2-32_2 is already installed
    librepo-1.11.0-32_1 is already installed
    libsmartcols-2.34-32_1 is already installed
    libsolv-0.7.9-32_1 is already installed
    libzstd-1.4.4-32_1 is already installed
    p11-kit-0.23.16-0 is already installed
    p11-kit-tools-0.23.16-0 is already installed
    python3-3.7.9-0 is already installed
    python3-dnf-4.2.17-32_2 is already installed
    python3-gpgme-1.13.1-32_1 is already installed
    python3-hawkey-0.39.1-32_2 is already installed
    python3-libcomps-0.1.11-32_1 is already installed
    python3-libdnf-0.39.1-32_2 is already installed
    python3-librepo-1.11.0-32_1 is already installed
    rpm-python3-4.15.1-32_1 is already installed
    yum-4.2.17-32_2 is already installed
    zchunk-libs-1.1.4-32_1 is already installed
     
    dnf and all it's dependencies are already installed.

    ERROR
    # dnf
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 57, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 32, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-130 Symbol resolution failed for /opt/freeware/libdnfdeps/libstdc++.a(libstdc++.so.6) because:
            0509-136   Symbol __cxa_finalize (number 1) is not exported from
                       dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
            0509-136   Symbol _GLOBAL__AIXI_shr_o (number 4) is not exported from
                       dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
            0509-136   Symbol _GLOBAL__AIXD_shr_o (number 5) is not exported from
                       dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
            0509-136   Symbol __cxa_atexit (number 19) is not exported from
                       dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
            0509-022 Cannot load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
            0509-026 System error: Cannot run a file that does not have a valid format.
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.


    ------------------------------
    Michael Potter
    ------------------------------


  • 2.  RE: DNF/YUM Installation on AIX 7200-05-03-2135
    Best Answer

    Posted Mon August 01, 2022 03:47 AM
    Hi Michael,

    Please check this https://community.ibm.com/community/user/power/discussion/failed-to-update-dnf#bm95458f65-7c63-4cff-997c-55d4188d6f4d

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



  • 3.  RE: DNF/YUM Installation on AIX 7200-05-03-2135

    Posted Mon August 01, 2022 09:43 AM
    Sangamesh,

    Thank you so much! This fixed me right up! :-)

    ------------------------------
    Michael Potter
    ------------------------------