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.  more dnf problems

    Posted Wed June 28, 2023 08:30 AM

    Hi,

    after i accidentally busted the rpm  installation on a few machines (unreflected installp -C which removes ALL installed rpms) i want to start from scratch but failed miserably. i did all imaginable things (destroyed all rpm and dnf install script...) but in the end i had to restore everything /opt/freeware from backup.

    error after dnf install even after it say success:

    sag0121: dnf installed successfully.
    sag0121: Please run 'dnf update' to update packages to the latest level.
    sag0121:
    sag0121: Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    sag0121: RPM packages install files go under the path /opt.
    sag0121: Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    sag0121: to avoid any download and installation/update failures.
    sag0121:
    sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for ln because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for ln because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: warning: %post(libdnf-0.39.1-64_3.ppc) scriptlet failed, exit status 255
    sag0121: exec(): 0509-036 Cannot load program touch because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for touch because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 85) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 86) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: exec(): 0509-036 Cannot load program ls because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for ls because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 111) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 112) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: exec(): 0509-036 Cannot load program grep because of the following errors:
    sag0121:        0509-150   Dependent module libpcre.a(libpcre.so.1) could not be loaded.
    sag0121:        0509-022 Cannot load module libpcre.a(libpcre.so.1).
    sag0121:        0509-026 System error: A file or directory in the path name does not exist.
    sag0121: exec(): 0509-036 Cannot load program cp because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for cp because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 106) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 107) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: sed: can't read /usr/linux/bin/c_rehash: A file or directory in the path name does not exist.
    sag0121: exec(): 0509-036 Cannot load program mv because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for mv because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 107) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 108) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: exec(): 0509-036 Cannot load program chmod because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for chmod because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 74) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 75) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for ln because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: warning: %post(ca-certificates-2020.06.01-0.ppc) scriptlet failed, exit status 255
    sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for ln because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:
    sag0121:        0509-130 Symbol resolution failed for ln because:
    sag0121:        0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from
    sag0121:                   dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
    sag0121:        0509-192 Examine .loader section symbols with the
    sag0121:                 'dump -Tv' command.
    sag0121: warning: %posttrans(libdnf-0.39.1-64_3.ppc) scriptlet failed, exit status 255
    

    even after restore dnf is dead:

    root@sag0121: /root # dnf
    Traceback (most recent call last):
      File "/usr/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 90, in <module>
        class Base(object):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 503, in Base
        _TS_FLAGS_TO_RPM = {'noscripts': rpm.RPMTRANS_FLAG_NOSCRIPTS,
    AttributeError: module 'rpm' has no attribute 'RPMTRANS_FLAG_NOSCRIPTS'
    

    another error variant:

    root@zpvttm4: /root # dnf
    Traceback (most recent call last):
      File "/usr/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 30, 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/lib64/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError: Could not load module /opt/freeware/lib64/python3.7/site-packages/libdnf/_common_types.so.
            Dependent module /opt/freeware/lib64/libsmartcols.a(libsmartcols.so.1) could not be loaded.
            Member libsmartcols.so.1 is not found in archive
    

    and another one

    root@aixtesttsm1: /root # dnf
    Traceback (most recent call last):
      File "/usr/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 31, in <module>
        from dnf.comps import CompsQuery
      File "/opt/freeware/lib/python3.9/site-packages/dnf/comps.py", line 27, in <module>
        from dnf.exceptions import CompsError
      File "/opt/freeware/lib/python3.9/site-packages/dnf/exceptions.py", line 22, in <module>
        import dnf.util
      File "/opt/freeware/lib/python3.9/site-packages/dnf/util.py", line 30, in <module>
        import dnf.callback
      File "/opt/freeware/lib/python3.9/site-packages/dnf/callback.py", line 22, in <module>
        import dnf.yum.rpmtrans
      File "/opt/freeware/lib/python3.9/site-packages/dnf/yum/rpmtrans.py", line 26, in <module>
        import rpm
    ModuleNotFoundError: No module named 'rpm'
    

    what  are my options now?



    ------------------------------
    I regret starting this entire conversation
    ------------------------------

    #AIXOpenSource


  • 2.  RE: more dnf problems

    Posted Wed June 28, 2023 09:18 AM
    Edited by C- -T Wed June 28, 2023 09:39 AM

    must have something to do with the dnf_bundle_aix_73.tar file. 

    root@aixtesttsm1: /root # ksh /tmp/dnf_aixtoolbox.sh -d
    Attempting download of dnf_bundle_aix_73.tar ...
    Saving to 'dnf_bundle_aix_73.tar'...
    216 MB received in 4 seconds (54.1 MB/sec)
    
    Extracting dnf_bundle_aix_73.tar ...
    x ca-certificates-2023.2.60-0.aix7.1.ppc.rpm, 991065 bytes, 1936 tape blocks
    x dnf-4.2.17-64_6.aix7.1.noarch.rpm, 11392 bytes, 23 tape blocks
    x dnf-automatic-4.2.17-64_6.aix7.1.noarch.rpm, 12854 bytes, 26 tape blocks
    x dnf-data-4.2.17-64_6.aix7.1.noarch.rpm, 26177 bytes, 52 tape blocks
    x extra_list, 384 bytes, 1 tape blocks
    x install_dnf.sh, 14012 bytes, 28 tape blocks
    x libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 1312174 bytes, 2563 tape blocks
    x libdnf-0.39.1-64_4.aix7.1.ppc.rpm, 16517054 bytes, 32260 tape blocks
    x libmodulemd-1.5.2-64_2.aix7.1.ppc.rpm, 3562173 bytes, 6958 tape blocks
    x librepo-1.11.0-64_2.aix7.1.ppc.rpm, 4010051 bytes, 7833 tape blocks
    x libsmartcols-2.34-64_1.aix7.1.ppc.rpm, 187658 bytes, 367 tape blocks
    x libsolv-0.7.9-64_3.aix7.1.ppc.rpm, 1556681 bytes, 3041 tape blocks
    x libzstd-1.4.4-64_2.aix7.1.ppc.rpm, 473729 bytes, 926 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, 6176 bytes, 13 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, 6204 bytes, 13 tape blocks
    x python3-dnf-4.2.17-64_6.aix7.1.noarch.rpm, 7963 bytes, 16 tape blocks
    x python3-dnf-plugin-migrate-4.0.16-64_2.aix7.1.noarch.rpm, 6580 bytes, 13 tape blocks
    x python3-dnf-plugins-core-4.0.16-64_2.aix7.1.noarch.rpm, 6792 bytes, 14 tape blocks
    x python3-gpg-1.13.1-64_3.aix7.1.ppc.rpm, 5724 bytes, 12 tape blocks
    x python3-hawkey-0.39.1-64_4.aix7.1.ppc.rpm, 5756 bytes, 12 tape blocks
    x python3-idle-3.9.16-0.aix7.1.ppc.rpm, 6196 bytes, 13 tape blocks
    x python3-libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 13276 bytes, 26 tape blocks
    x python3-libdnf-0.39.1-64_4.aix7.1.ppc.rpm, 5756 bytes, 12 tape blocks
    x python3-librepo-1.11.0-64_2.aix7.1.ppc.rpm, 12776 bytes, 25 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, 6196 bytes, 13 tape blocks
    x python3-tkinter-3.9.16-0.aix7.1.ppc.rpm, 6216 bytes, 13 tape blocks
    x python3.9-3.9.16-0.aix7.1.ppc.rpm, 56783004 bytes, 110905 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, 19947355 bytes, 38960 tape blocks
    x python3.9-dnf-4.2.17-64_6.aix7.1.noarch.rpm, 197156 bytes, 386 tape blocks
    x python3.9-dnf-plugin-migrate-4.0.16-64_2.aix7.1.noarch.rpm, 8297 bytes, 17 tape blocks
    x python3.9-dnf-plugins-core-4.0.16-64_2.aix7.1.noarch.rpm, 33701 bytes, 66 tape blocks
    x python3.9-gpg-1.13.1-64_3.aix7.1.ppc.rpm, 1474348 bytes, 2880 tape blocks
    x python3.9-hawkey-0.39.1-64_4.aix7.1.ppc.rpm, 3339933 bytes, 6524 tape blocks
    x python3.9-idle-3.9.16-0.aix7.1.ppc.rpm, 2328776 bytes, 4549 tape blocks
    x python3.9-libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 1075760 bytes, 2102 tape blocks
    x python3.9-libdnf-0.39.1-64_4.aix7.1.ppc.rpm, 24255176 bytes, 47374 tape blocks
    x python3.9-librepo-1.11.0-64_2.aix7.1.ppc.rpm, 2471631 bytes, 4828 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, 33158885 bytes, 64764 tape blocks
    x python3.9-tkinter-3.9.16-0.aix7.1.ppc.rpm, 1162732 bytes, 2271 tape blocks
    x rpm-python3-4.15.1-64_3.aix7.1.ppc.rpm, 9608 bytes, 19 tape blocks
    x rpm-python3.9-4.15.1-64_3.aix7.1.ppc.rpm, 100414 bytes, 197 tape blocks
    x rpm.rte, 47110144 bytes, 92012 tape blocks
    x rpmlibs32-4.15.1.0-32_2.aix7.1.ppc.rpm, 732104 bytes, 1430 tape blocks
    x yum-4.2.17-64_6.aix7.1.noarch.rpm, 11233 bytes, 22 tape blocks
    x zchunk-1.1.4-64_3.aix7.1.ppc.rpm, 491789 bytes, 961 tape blocks
    x zchunk-devel-1.1.4-64_3.aix7.1.ppc.rpm, 19314 bytes, 38 tape blocks
    x zchunk-libs-1.1.4-64_3.aix7.1.ppc.rpm, 560016 bytes, 1094 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.2009     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 is already installed
    dnf-4.2.17-64_6 will be installed
    dnf-automatic-4.2.17-64_6 will be installed
    dnf-data-4.2.17-64_6 will be installed
    libcomps-0.1.15-64_1 will be installed
    libdnf-0.39.1-64_4 will be installed
    libmodulemd-1.5.2-64_2 is already installed
    librepo-1.11.0-64_2 will be installed
    libsmartcols-2.34-64_1 is already installed
    libsolv-0.7.9-64_3 is already installed
    libzstd-1.4.4-64_2 is already installed
    p11-kit-0.23.22-0 is already installed
    p11-kit-tools-0.23.22-0 is already installed
    python3-3.9.16-0 is already installed
    python3-dnf-4.2.17-64_6 will be installed
    python3-gpg-1.13.1-64_3 is already installed
    python3-hawkey-0.39.1-64_4 will be installed
    python3-libcomps-0.1.15-64_1 is already installed
    python3-libdnf-0.39.1-64_4 will be installed
    python3-librepo-1.11.0-64_2 will be installed
    python3.9-3.9.16-0 is already installed
    python3.9-dnf-4.2.17-64_6 is already installed
    python3.9-gpg-1.13.1-64_3 is already installed
    python3.9-hawkey-0.39.1-64_4 is already installed
    python3.9-libcomps-0.1.15-64_1 is already installed
    python3.9-libdnf-0.39.1-64_4 is already installed
    python3.9-librepo-1.11.0-64_2 is already installed
    rpm-python3-4.15.1-64_3 is already installed
    rpm-python3.9-4.15.1-64_3 is already installed
    zchunk-libs-1.1.4-64_3 is already installed
    
    Installing the packages...
    
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:python3-dnf-4.2.17-64_6          ################################# [ 10%]
       2:dnf-4.2.17-64_6                  ################################# [ 20%]
       3:librepo-1.11.0-64_2              ################################# [ 30%]
       4:libdnf-0.39.1-64_4               ################################# [ 40%]
       5:dnf-automatic-4.2.17-64_6        ################################# [ 50%]
       6:python3-librepo-1.11.0-64_2      ################################# [ 60%]
       7:python3-libdnf-0.39.1-64_4       ################################# [ 70%]
       8:python3-hawkey-0.39.1-64_4       ################################# [ 80%]
       9:libcomps-0.1.15-64_1             ################################# [ 90%]
      10:dnf-data-4.2.17-64_6             ################################# [100%]
    Could not load program touch:
    Symbol resolution failed for touch because:
            Symbol _GLOBAL__AIXI_libintl_so (number 85) is not exported from dependent
              module /opt/freeware/lib/libintl.a[libintl.so.8].
            Symbol _GLOBAL__AIXD_libintl_so (number 86) is not exported from dependent
              module /opt/freeware/lib/libintl.a[libintl.so.8].
    Examine .loader section symbols with the 'dump -Tv' command.
    Could not load program ls:
    Symbol resolution failed for ls because:
            Symbol _GLOBAL__AIXI_libintl_so (number 111) is not exported from dependent
              module /opt/freeware/lib/libintl.a[libintl.so.8].
            Symbol _GLOBAL__AIXD_libintl_so (number 112) is not exported from dependent
              module /opt/freeware/lib/libintl.a[libintl.so.8].
    Examine .loader section symbols with the 'dump -Tv' command.
    [AIX_Toolbox_73]
    name=AIX 7.3 specific repository
    baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.3/
    enabled=1
    gpgcheck=0
    
    
    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.
    
    root@aixtesttsm1: /root # dnf repolist
    Traceback (most recent call last):
      File "/usr/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 31, in <module>
        from dnf.comps import CompsQuery
      File "/opt/freeware/lib/python3.9/site-packages/dnf/comps.py", line 27, in <module>
        from dnf.exceptions import CompsError
      File "/opt/freeware/lib/python3.9/site-packages/dnf/exceptions.py", line 22, in <module>
        import dnf.util
      File "/opt/freeware/lib/python3.9/site-packages/dnf/util.py", line 30, in <module>
        import dnf.callback
      File "/opt/freeware/lib/python3.9/site-packages/dnf/callback.py", line 22, in <module>
        import dnf.yum.rpmtrans
      File "/opt/freeware/lib/python3.9/site-packages/dnf/yum/rpmtrans.py", line 26, in <module>
        import rpm
    ModuleNotFoundError: No module named 'rpm'
    

    installed packages:

    root@aixtesttsm1: /root # rpm -qa | sort
    AIX-rpm-7.3.1.1-2.ppc
    ca-certificates-2023.2.60-0.ppc
    dnf-4.2.17-64_6.noarch
    dnf-automatic-4.2.17-64_6.noarch
    dnf-data-4.2.17-64_6.noarch
    libcomps-0.1.15-64_1.ppc
    libdnf-0.39.1-64_4.ppc
    libmodulemd-1.5.2-64_2.ppc
    librepo-1.11.0-64_2.ppc
    libsmartcols-2.34-64_1.ppc
    libsolv-0.7.9-64_3.ppc
    libzstd-1.4.4-64_2.ppc
    p11-kit-0.23.22-0.ppc
    p11-kit-tools-0.23.22-0.ppc
    python3-3.9.16-0.ppc
    python3-dnf-4.2.17-64_6.noarch
    python3-gpg-1.13.1-64_3.ppc
    python3-hawkey-0.39.1-64_4.ppc
    python3-libcomps-0.1.15-64_1.ppc
    python3-libdnf-0.39.1-64_4.ppc
    python3-librepo-1.11.0-64_2.ppc
    python3.9-3.9.16-0.ppc
    python3.9-dnf-4.2.17-64_6.noarch
    python3.9-gpg-1.13.1-64_3.ppc
    python3.9-hawkey-0.39.1-64_4.ppc
    python3.9-libcomps-0.1.15-64_1.ppc
    python3.9-libdnf-0.39.1-64_4.ppc
    python3.9-librepo-1.11.0-64_2.ppc
    rpm-python3-4.15.1-64_3.ppc
    rpm-python3.9-4.15.1-64_3.ppc
    zchunk-libs-1.1.4-64_3.ppc
    



    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 3.  RE: more dnf problems

    Posted Wed June 28, 2023 09:49 AM

    Hi Chris,

    Though the rpm database doesn't show any rpm installed but files from coreutils rpms are still intact.

    And  during installation from bundle the files from /opt/freeware/bin are picked up which are failing due to missing libintl.a from an rpm package.

    Packages from dnf bundle should have used commands with absolute path from /usr/bin. We will correct this.

    One workaround here is.

    Remove all the rpm packages.

    and then

    # rpm -ivh --justdb coreutils-9.0-1.aix6.1.ppc.rpm --nodeps

    # rpm -e coreutils --noscripts

    And then install again from dnf bundle.

     



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



  • 4.  RE: more dnf problems

    Posted Wed June 28, 2023 10:14 AM

    the worked well for testing! but it  is not feasible  to remove ALL rpm's on a production machine.  any workaround without removing everything?



    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 5.  RE: more dnf problems

    Posted Wed June 28, 2023 11:16 AM
    Edited by C- -T Wed June 28, 2023 11:17 AM

    after fiddling around a bite more strange things came up...

    after doing the part with the coreutils rpm and running the dnf install script dnf is working. after doing the dnd -y update step the following happens...

    Upgraded:
      ca-certificates-2023.2.60-2.ppc              curl-8.0.1-1.ppc                     glib2-2.72.1-1.ppc                   gpgme-1.13.1-101.ppc
      info-7.0.2-1.ppc                             libcomps-0.1.15-101.ppc              librepo-1.11.0-102.ppc               libsmartcols-2.34-101.ppc
      libxml2-2.10.3-2.ppc                         libzstd-1.5.2-2.ppc                  lua-5.4.4-1.ppc                      python3-3.9.16-2.ppc
      python3-gpg-1.13.1-101.ppc                   python3-libcomps-0.1.15-101.ppc      python3-librepo-1.11.0-102.ppc       python3-markupsafe-1.1.1-2.ppc
      python3.9-3.9.16-2.ppc                       python3.9-gpg-1.13.1-101.ppc         python3.9-libcomps-0.1.15-101.ppc    python3.9-librepo-1.11.0-102.ppc
      readline-8.2-1.ppc                           sqlite-3.41.2-1.ppc                  sudo-1.9.13p2-1.ppc                  vim-common-9.0.1237-1.ppc
      vim-enhanced-9.0.1237-1.ppc                  zchunk-libs-1.1.4-103.ppc            zstd-1.5.2-2.ppc                     python3-dateutil-2.8.0-2.noarch
      python3-jinja2-2.10.3-2.noarch               python3-six-1.13.0-2.noarch          dnf-4.2.17-64_53.ppc                 dnf-automatic-4.2.17-64_53.ppc
      dnf-data-4.2.17-64_53.ppc                    libdnf-0.39.1-64_52.ppc              libsolv-0.7.9-64_51.ppc              python3-dnf-4.2.17-64_53.ppc
      python3-dnf-plugins-core-4.0.16-64_52.ppc    python3-hawkey-0.39.1-64_52.ppc      python3-libdnf-0.39.1-64_52.ppc      python3.9-dnf-4.2.17-64_53.ppc
      python3.9-hawkey-0.39.1-64_52.ppc            python3.9-libdnf-0.39.1-64_52.ppc
    
    Installed:
      python3.9-markupsafe-1.1.1-2.ppc               python3.9-dateutil-2.8.0-2.noarch    python3.9-jinja2-2.10.3-2.noarch    python3.9-six-1.13.0-2.noarch
      python3.9-dnf-plugins-core-4.0.16-64_52.ppc
    
    Complete!
    root@sag0114: /root # dnf repolist
    Traceback (most recent call last):
      File "/usr/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
    

    ok...me as the smartass that i pretend to be want to know who or what is providing /opt/freeware/lib64/libsmartcols.a...

    and guess what.... nobody

    root@sag0114: /root # rpm -q --whatprovides /opt/freeware/lib64/libsmartcols.a
    file /opt/freeware/lib64/libsmartcols.a is not owned by any package
    

    after moving it out of the way, dnf started working...isnt this pure magic?

    root@sag0114: /root # mv /opt/freeware/lib64/libsmartcols.a /opt/freeware/lib64/libsmartcols.a.bak
    root@sag0114: /root # slibclean
    root@sag0114: /root # slibclean
    root@sag0114: /root # slibclean
    root@sag0114: /root # dnf repolist
    repo id                                                                  repo name
    AIX_Toolbox                                                              AIX generic repository
    AIX_Toolbox_73                                                           AIX 7.3 specific repository
    AIX_Toolbox_noarch                                                       AIX noarch repository
    ITSV_Additions                                                           ITSV generic repository
    ITSV_Additions_73                                                        ITSV AIX 7.3 specific repository
    ITSV_Additions_noarch                                                    ITSV noarch repository
    

    but still i need to know what the hell this is all about?



    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 6.  RE: more dnf problems

    Posted Fri June 30, 2023 04:04 AM
    Edited by SANGAMESH MALLAYYA Fri June 30, 2023 04:04 AM

    Hi Chris,

    When update to libsmartcols is done it should have been remove /opt/freeware/lib64/libsmartcols.a

    Since there was a some database corruption I think it didn't remove /opt/freeware/lib64/libsmartcols.a

    Usually it looks for shared objects in /opt/freeware/lib/libsmartcols.a.

    Hence when we moved the /opt/freeware/lib64/libsmartcols.a, the resolution happening correctly from /opt/freeware/lib/libsmartcols.a

    # dnf
    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


    # ar -X32_64 -tv /opt/freeware/lib64/libsmartcols.a
    rwxr-xr-x   203/1     660775 Feb 05 01:50 2023 libsmartcols.so.2.34.0
    rwxr-xr-x   203/1     709963 Feb 05 01:50 2023 libsmartcols.so.2.34.0


    # ar -X32_64 -tv /opt/freeware/lib/libsmartcols.a
    rwxr-xr-x   203/1     395782 Feb 05 01:50 2023 libsmartcols.so.1
    rwxr-xr-x   203/1     428547 Feb 05 01:50 2023 libsmartcols.so.1
    rwxr-xr-x   203/1     660775 Feb 05 01:50 2023 libsmartcols.so.2.34.0
    rwxr-xr-x   203/1     709963 Feb 05 01:50 2023 libsmartcols.so.2.34.0

    # mv /opt/freeware/lib64/libsmartcols.a /opt/freeware/lib64/libsmartcols.a_bak

    # dnf
    usage: dnf [options] COMMAND

    List of Main Commands:

    alias                     List or create command aliases
    autoremove                remove all unneeded packages that were originally installed as dependencies
    check                     check for problems in the packagedb
    check-update              check for available package upgrades

    .....

    # mv /opt/freeware/lib/libsmartcols.a /opt/freeware/lib/libsmartcols.a_bak


    # dnf
    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 libsmartcols.a(libsmartcols.so.1) could not be loaded.
            0509-022 Cannot load module libsmartcols.a(libsmartcols.so.1).
            0509-026 System error: A file or directory in the path name does not exist.



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



  • 7.  RE: more dnf problems

    Posted Thu September 28, 2023 03:57 PM

    I tried the 2 coreutils procedure listed using this rpm:

    rpm -ihv --justdb  coreutils-9.3-1.aix7.1.ppc.rpm --nodeps

    rpm -e coreutils --noscripts

    Then ran the mv command:

    mv /opt/freeware/lib64/libsmartcols.a  /opt/freeware/lib64/libsmartcols.a_bak

    What I'm still getting from:

    dnf repolist
    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: Could not load module /opt/freeware/lib64/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



    ------------------------------
    Kolin Vance
    ------------------------------



  • 8.  RE: more dnf problems

    Posted Wed October 04, 2023 04:11 PM

    I solved the problem with dnf failing, looking closer at the libraries I noticed at the bottom that it couldn't find libgcc_s.a

    I linked it to:

    ln -s /opt/freeware/libdnfdeps/libgcc_s.a /opt/freeware/lib/pthread/libgcc_s.a

    It them failed on libstdc++.a and I linked that to:

    ln -s /opt/freeware/libdnfdeps/libstdc++.a /opt/freeware/lib/pthread/libstdc++.a

    Its now working...



    ------------------------------
    Kolin Vance
    ------------------------------