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
Expand all | Collapse all

Issue while updating dnf in AIX Server, lib package conflicts , centrify-ssh disconnect issue after dnf update

  • 1.  Issue while updating dnf in AIX Server, lib package conflicts , centrify-ssh disconnect issue after dnf update

    Posted Mon January 29, 2024 10:02 AM

    Hi All,

    We have downloaded the latest bash version from the below url link and tried to update,but faced so many dependency issues while installing including libiconv.

    https://www.ibm.com/support/pages/node/883796

    Then we tried using DNF method; installed dnf and tried to update bash, bash was updated to the latest version, libiconv package also updated to the latest version along with bash update; so hence immediately ssh disconnected from console.

    Steps:

       1. Downloaded AIX toolbox media ISO/tar format image from either the Entitled System Support (ESS)                                                                                                            
            # gzip -dc ESD-Toolbox_for_Linux_Apps_Common_7.1-7.3_122022_LKT010325.tar.gz | tar xf - -C /mnt                       

       2.  Run the dnf_aixtoolbox_local.sh script located at /mnt/ezinstall/ppc/dnf_aixtoolbox_local.sh

     
       3.   # /mnt/ezinstall/ppc/dnf_aixtoolbox_local.sh /mnt

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

    ca-certificates-2017.07.17-1.ppc will be updated to ca-certificates-2020.06.01-0
    dnf-4.2.17-32_2 will be installed
    dnf-automatic-4.2.17-32_2 will be installed
    dnf-data-4.2.17-32_2 will be installed
    libcomps-0.1.11-32_1 will be installed
    libdnf-0.39.1-32_2 will be installed
    libmodulemd-1.5.2-32_2 will be installed
    librepo-1.11.0-32_1 will be installed
    libsmartcols-2.34-32_1 will be installed
    libsolv-0.7.9-32_1 will be installed
    libzstd-1.4.4-32_1 will be installed
    p11-kit-0.23.16-0 will be installed
    p11-kit-tools-0.23.16-0 will be installed
    python3-3.7.9-0 will be installed
    python3-dnf-4.2.17-32_2 will be installed
    python3-gpgme-1.13.1-32_1 will be installed
    python3-hawkey-0.39.1-32_2 will be installed
    python3-libcomps-0.1.11-32_1 will be installed
    python3-libdnf-0.39.1-32_2 will be installed
    python3-librepo-1.11.0-32_1 will be installed
    rpm-python3-4.15.1-32_1 will be installed
    yum-4.2.17-32_2 will be installed
    zchunk-libs-1.1.4-32_1 will be installed

    Installing the packages...

    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:python3-3.7.9-0                  ################################# [  4%]
       2:libzstd-1.4.4-32_1               ################################# [  8%]
       3:libmodulemd-1.5.2-32_2           ################################# [ 13%]
       4:libsolv-0.7.9-32_1               ################################# [ 17%]
       5:libsmartcols-2.34-32_1           ################################# [ 21%]
       6:zchunk-libs-1.1.4-32_1           ################################# [ 25%]
       7:librepo-1.11.0-32_1              ################################# [ 29%]
       8:rpm-python3-4.15.1-32_1          ################################# [ 33%]
       9:libdnf-0.39.1-32_2               ################################# [ 38%]
      10:python3-libdnf-0.39.1-32_2       ################################# [ 42%]
      11:dnf-data-4.2.17-32_2             ################################# [ 46%]
    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_72]
    name=AIX 7.2 specific repository
    baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/
    enabled=1
    gpgcheck=0

      12:python3-hawkey-0.39.1-32_2       ################################# [ 50%]
      13:libcomps-0.1.11-32_1             ################################# [ 54%]
      14:python3-libcomps-0.1.11-32_1     ################################# [ 58%]
      15:python3-gpgme-1.13.1-32_1        ################################# [ 63%]
      16:python3-dnf-4.2.17-32_2          ################################# [ 67%]
      17:dnf-4.2.17-32_2                  ################################# [ 71%]
      18:p11-kit-0.23.16-0                ################################# [ 75%]
      19:p11-kit-tools-0.23.16-0          ################################# [ 79%]
      20:ca-certificates-2020.06.01-0     ################################# [ 83%]
    Could not load program ln:
    Symbol resolution failed for ln because:
            Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
              module /opt/freeware/lib/libintl.a[libintl.so.8].
            Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
              module /opt/freeware/lib/libintl.a[libintl.so.8].
    Examine .loader section symbols with the 'dump -Tv' command.
    warning: %post(ca-certificates-2020.06.01-0.ppc) scriptlet failed, exit status 255
      21:dnf-automatic-4.2.17-32_2        ################################# [ 88%]
      22:yum-4.2.17-32_2                  ################################# [ 92%]
      23:python3-librepo-1.11.0-32_1      ################################# [ 96%]
    Cleaning up / removing...
      24:ca-certificates-2017.07.17-1     ################################# [100%]
    Could not load program rm:
    Symbol resolution failed for rm because:
            Symbol _GLOBAL__AIXI_libintl_so (number 80) is not exported from dependent
              module /opt/freeware/lib/libintl.a[libintl.so.8].
            Symbol _GLOBAL__AIXD_libintl_so (number 81) is not exported from dependent
              module /opt/freeware/lib/libintl.a[libintl.so.8].
    Examine .loader section symbols with the 'dump -Tv' command.
    warning: %postun(ca-certificates-2017.07.17-1.ppc) scriptlet failed, exit status 255

    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.

    Creating the dnf.conf file with required locale repositories.
    The default /opt/freeware/etc/dnf/dnf.conf has been saved as /opt/freeware/etc/dnf/dnf.conf_local_bak
    hostname-dnf-issue-server: # dnf repolist
    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 31, in <module>
        from dnf.comps import CompsQuery
      File "/opt/freeware/lib/python3.7/site-packages/dnf/comps.py", line 27, in <module>
        from dnf.exceptions import CompsError
      File "/opt/freeware/lib/python3.7/site-packages/dnf/exceptions.py", line 22, in <module>
        import dnf.util
      File "/opt/freeware/lib/python3.7/site-packages/dnf/util.py", line 30, in <module>
        import dnf.callback
      File "/opt/freeware/lib/python3.7/site-packages/dnf/callback.py", line 22, in <module>
        import dnf.yum.rpmtrans
      File "/opt/freeware/lib/python3.7/site-packages/dnf/yum/rpmtrans.py", line 26, in <module>
        import rpm
    ModuleNotFoundError: No module named 'rpm'
    hostname-dnf-issue-server: # ln -sf /usr/opt/rpm/lib/python3.7/site-packages/rpm /opt/freeware/lib/python3.7/site-packages/rpm
    hostname-dnf-issue-server: # dnf repolist
    repo id                                                        repo name
    Local_AIX_Toolbox                                              Local AIX generic repository
    Local_AIX_Toolbox_72                                           Local AIX 7.2 specific repository
    Local_AIX_Toolbox_noarch                                       Local AIX noarch repository
    hostname-dnf-issue-server: # bash -version | awk -F'[ (]' '/version/{print $4;exit}'
    4.2.50
    hostname-dnf-issue-server: #
    hostname-dnf-issue-server: #
    hostname-dnf-issue-server: #

    hostname-dnf-issue-server: # dnf update bash
    Local AIX generic repository                                                                            58 MB/s | 1.7 MB     00:00
    Local AIX noarch repository                                                                             42 MB/s | 359 kB     00:00
    Local AIX 7.2 specific repository                                                                       20 MB/s |  87 kB     00:00
    Error:
     Problem: cannot install both bash-5.1.16-1.ppc and bash-4.2-3.ppc
      - package bash-doc-5.2.15-1.ppc requires bash = 5.2.15-1, but none of the providers can be installed
      - cannot install the best update candidate for package bash-4.2-3.ppc
      - problem with installed package bash-doc-5.2.15-1.ppc
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
    hostname-dnf-issue-server: # dnf update bash --nobest
    Last metadata expiration check: 0:01:02 ago on Wed Jan 24 11:01:51 CST 2024.
    Dependencies resolved.

     Problem: cannot install both bash-5.1.16-1.ppc and bash-4.2-3.ppc
      - package bash-doc-5.2.15-1.ppc requires bash = 5.2.15-1, but none of the providers can be installed
      - cannot install the best update candidate for package bash-4.2-3.ppc
      - problem with installed package bash-doc-5.2.15-1.ppc
    =======================================================================================================================================
     Package                     Architecture               Version                         Repository                                Size
    =======================================================================================================================================
    Skipping packages with conflicts:
    (add '--best --allowerasing' to command line to force their upgrade):
     bash                        ppc                        5.1.16-1                        Local_AIX_Toolbox                        2.8 M

    Transaction Summary
    =======================================================================================================================================
    Skip  1 Package

    Nothing to do.
    Complete!
    hostname-dnf-issue-server: # bash -version | awk -F'[ (]' '/version/{print $4;exit}'
    4.2.50
    hostname-dnf-issue-server: # dnf update bash --allowerasing
    Last metadata expiration check: 0:02:15 ago on Wed Jan 24 11:01:51 CST 2024.
    Dependencies resolved.
    =======================================================================================================================================
     Package                          Architecture            Version                       Repository                                Size
    =======================================================================================================================================
    Upgrading:
     bash                             ppc                     5.1.16-1                      Local_AIX_Toolbox                        2.8 M
     gettext                          ppc                     0.21-2                        Local_AIX_Toolbox                         14 M
     libiconv                         ppc                     1.17-1                        Local_AIX_Toolbox                        1.6 M
     libgcc                           ppc                     1:10-2                        Local_AIX_Toolbox_72                      15 k
     libgomp                          ppc                     1:10-2                        Local_AIX_Toolbox_72                      14 k
     libstdc++                        ppc                     1:10-2                        Local_AIX_Toolbox_72                      14 k
    Installing dependencies:
     libtextstyle                     ppc                     0.21-2                        Local_AIX_Toolbox                        1.1 M
     libunistring                     ppc                     0.9.10-1                      Local_AIX_Toolbox                        1.5 M
     libxml2                          ppc                     2.9.14-1                      Local_AIX_Toolbox                        5.3 M
     ncurses                          ppc                     6.3-1                         Local_AIX_Toolbox                        3.6 M
     xz-libs                          ppc                     5.2.5-1                       Local_AIX_Toolbox                        540 k
     libgcc10                         ppc                     10.3.0-6                      Local_AIX_Toolbox_72                     793 k
     libgomp10                        ppc                     10.3.0-6                      Local_AIX_Toolbox_72                     2.0 M
     libstdc++10                      ppc                     10.3.0-6                      Local_AIX_Toolbox_72                      19 M
    Downgrading:
     bash-doc                         ppc                     5.1.16-1                      Local_AIX_Toolbox                        4.0 M

    Transaction Summary
    =======================================================================================================================================
    Install    8 Packages
    Upgrade    6 Packages
    Downgrade  1 Package

    Total size: 56 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                               1/1
      Installing       : libgcc10-10.3.0-6.ppc                                                                                        1/22
      Upgrading        : libgcc-1:10-2.ppc                                                                                            2/22
      Installing       : libstdc++10-10.3.0-6.ppc                                                                                     3/22
      Upgrading        : libstdc++-1:10-2.ppc                                                                                         4/22
      Installing       : ncurses-6.3-1.ppc                                                                                            5/22
      Installing       : libgomp10-10.3.0-6.ppc                                                                                       6/22
      Running scriptlet: libgomp10-10.3.0-6.ppc                                                                                       6/22
    install-info: menu item `libgomp' already exists, for file `libgomp'

      Upgrading        : libgomp-1:10-2.ppc                                                                                           7/22
      Installing       : xz-libs-5.2.5-1.ppc                                                                                          8/22
      Installing       : libunistring-0.9.10-1.ppc                                                                                    9/22
      Installing       : libxml2-2.9.14-1.ppc                                                                                        10/22
      Upgrading        : libiconv-1.17-1.ppc                                                                                         11/22
      Running scriptlet: libiconv-1.17-1.ppc                                                                                         11/22
    /

      Installing       : libtextstyle-0.21-2.ppc                                                                                     12/22
      Running scriptlet: gettext-0.21-2.ppc                                                                                          13/22
      Upgrading        : gettext-0.21-2.ppc                                                                                          13/22
      Running scriptlet: gettext-0.21-2.ppc                                                                                          13/22
    Could not load program /sbin/install-info:
    Could not load module /opt/freeware/lib/libintl.a(libintl.so.1).
            Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
            Member shr4.o is not found in archive
    Could not load module install-info.
            Dependent module /opt/freeware/lib/libintl.a(libintl.so.1) could not be loaded.

      Upgrading        : bash-5.1.16-1.ppc                                                                                           14/22
      Running scriptlet: bash-5.1.16-1.ppc                                                                                           14/22

            ## Binary "bash" is available in 32bit and 64bit ##

            Default is 64bit. For 32bit, use /opt/freeware/bin/bash_32


      Downgrading      : bash-doc-5.1.16-1.ppc                                                                                       15/22
      Cleanup          : libstdc++-4.8.3-1.ppc                                                                                       16/22
      Cleanup          : libiconv-1.15-1.ppc                                                                                         17/22
      Running scriptlet: libgomp-4.8.3-1.ppc                                                                                         18/22
      Cleanup          : libgomp-4.8.3-1.ppc                                                                                         18/22
      Cleanup          : bash-doc-5.2.15-1.ppc                                                                                       19/22
      Cleanup          : bash-4.2-3.ppc                                                                                              20/22
      Cleanup          : libgcc-6.3.0-2.ppc                                                                                          21/22
      Running scriptlet: gettext-0.19.8.1-3.ppc                                                                                      22/22
      Cleanup          : gettext-0.19.8.1-3.ppc                                                                                      22/22
      Running scriptlet: gettext-0.21-2.ppc                                                                                          22/22
      Running scriptlet: bash-5.1.16-1.ppc                                                                                           22/22
      Verifying        : bash-doc-5.1.16-1.ppc                                                                                        1/22
      Verifying        : bash-doc-5.2.15-1.ppc                                                                                        2/22
      Verifying        : libtextstyle-0.21-2.ppc                                                                                      3/22
      Verifying        : libunistring-0.9.10-1.ppc                                                                                    4/22
      Verifying        : libxml2-2.9.14-1.ppc                                                                                         5/22
      Verifying        : ncurses-6.3-1.ppc                                                                                            6/22
      Verifying        : xz-libs-5.2.5-1.ppc                                                                                          7/22
      Verifying        : libgcc10-10.3.0-6.ppc                                                                                        8/22
      Verifying        : libgomp10-10.3.0-6.ppc                                                                                       9/22
      Verifying        : libstdc++10-10.3.0-6.ppc                                                                                    10/22
      Verifying        : bash-5.1.16-1.ppc                                                                                           11/22
      Verifying        : bash-4.2-3.ppc                                                                                              12/22
      Verifying        : gettext-0.21-2.ppc                                                                                          13/22
      Verifying        : gettext-0.19.8.1-3.ppc                                                                                      14/22
      Verifying        : libiconv-1.17-1.ppc                                                                                         15/22
      Verifying        : libiconv-1.15-1.ppc                                                                                         16/22
      Verifying        : libgcc-1:10-2.ppc                                                                                           17/22
      Verifying        : libgcc-6.3.0-2.ppc                                                                                          18/22
      Verifying        : libgomp-1:10-2.ppc                                                                                          19/22
      Verifying        : libgomp-4.8.3-1.ppc                                                                                         20/22
      Verifying        : libstdc++-1:10-2.ppc                                                                                        21/22
      Verifying        : libstdc++-4.8.3-1.ppc                                                                                       22/22

    Upgraded:
      bash-5.1.16-1.ppc    gettext-0.21-2.ppc    libiconv-1.17-1.ppc    libgcc-1:10-2.ppc    libgomp-1:10-2.ppc    libstdc++-1:10-2.ppc

    Downgraded:
      bash-doc-5.1.16-1.ppc

    Installed:
      libtextstyle-0.21-2.ppc libunistring-0.9.10-1.ppc libxml2-2.9.14-1.ppc ncurses-6.3-1.ppc xz-libs-5.2.5-1.ppc libgcc10-10.3.0-6.ppc
      libgomp10-10.3.0-6.ppc  libstdc++10-10.3.0-6.ppc

    Complete!
    hostname-dnf-issue-server: # bash -version | awk -F'[ (]' '/version/{print $4;exit}'
    5.1.16
    hostname-dnf-issue-server: #
    hostname-dnf-issue-server: #
    hostname-dnf-issue-server: #
    hostname-dnf-issue-server: # dnf search coreutils
    Failed to set locale, defaulting to C
    Last metadata expiration check: 0:04:39 ago on Wed Jan 24 11:01:51 2024.
    =================================================== Name Exactly Matched: coreutils ===================================================
    coreutils.ppc : The GNU core utilities: a set of tools commonly used in shell scripts
    hostname-dnf-issue-server: #
    hostname-dnf-issue-server: #
    hostname-dnf-issue-server: #
    hostname-dnf-issue-server: #
    hostname-dnf-issue-server: #

    Error message which we have received 

    Jan 24 11:18:22 hostname-dnf-issue-server auth|security:notice su: from root to ediutil at /dev/tty??
    Could not load program /usr/share/centrifydc/sbin/sshd:
    Could not load module /usr/share/centrifydc/kerberos/lib/libkrb5.a(shr.o.3.3).
            Dependent module /usr/lib/libgcc_s.a(shr.o) could not be loaded.
            The module has an invalid magic number.
    Could not load module sshd.
            Dependent module /usr/share/centrifydc/kerberos/lib/libkrb5.a(shr.o.3.3) could not be loaded.
    Could not load program /usr/share/centrifydc/sbin/sshd:
    Could not load module /usr/share/centrifydc/kerberos/lib/libkrb5.a(shr.o.3.3).
            Dependent module /usr/lib/libgcc_s.a(shr.o) could not be loaded.
            The module has an invalid magic number.
    Could not load module sshd.
            Dependent module /usr/share/centrifydc/kerberos/lib/libkrb5.a(shr.o.3.3) could not be loaded.


    Already installed bash version on hostname-dnf-working-server server

    hostname-dnf-working-server: # bash -version | awk -F'[ (]' '/version/{print $4;exit}'
    5.1.16
    hostname-dnf-working-server: # lssrc -s centrify-sshd
    Subsystem         Group            PID          Status
     centrify-sshd    tcpip            6291916      active
    hostname-dnf-working-server: # dnf search coreutils
    Last metadata expiration check: 1:28:12 ago on Wed Jan 24 09:42:24 CST 2024.
    =================================================== Name Exactly Matched: coreutils ===================================================
    coreutils.ppc : The GNU core utilities: a set of tools commonly used in shell scripts
    hostname-dnf-working-server: #

    Below is the latest finding from our Architect, 

    On hostname-dnf-issue, following exists, though not linked to any package.

    lrwxrwxrwx    1 root     system           34 Jan 24 07:48 /usr/lib/libgcc_s.a -> /usr/opt/freeware/lib64/libgcc_s.a
    This is creating a conflict, because Centrify's SSH uses it's own version supplied in /usr/share/centrifydc/lib/gcclib

    That doesn't exist on hostname-dnf-working-server, nor does the RPM database show anything linked for it.

    Please suggest on the above issue and let us know to proceed further to update dnf without any issues.

    Regards

    Batcha Riaz Ahamed.S



    ------------------------------
    BATCHA RIAZ AHAMED S
    ------------------------------


  • 2.  RE: Issue while updating dnf in AIX Server, lib package conflicts , centrify-ssh disconnect issue after dnf update

    Posted Tue January 30, 2024 01:16 PM

    Hi All,

    Please provide your suggestions to update dnf on AIX 7.2 Server without any issues.

    Facing issue from July 2023 and still no resolution for the centrify-sshd disconnect issue after dnf update.

    Regards

    Riaz



    ------------------------------
    BATCHA RIAZ AHAMED S
    ------------------------------



  • 3.  RE: Issue while updating dnf in AIX Server, lib package conflicts , centrify-ssh disconnect issue after dnf update

    Posted Wed January 31, 2024 01:29 PM

    Before moving  to the sshd issue let me summarise some of the other issues.

    Before updating bash with dnf some of the packages entries were not present in rpm database but actual files were present in the filesystem. 

    For example files from coreutils rpm were present but not the required library from gettext rpm.

     Hence we saw the error like.

    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].

    Also, this machine had very old version of rpm packages.

    Now coming to the sshd loading issue.

    We don't ship or create soft link in  /usr/lib with libgcc10 package.Not sure if this has been created manually.

    We can confirm if /usr/lib/libgcc_s.a is provide through any rpm package using "rpm -qf /usr/lib/libgcc_s.a"

    If it is not shipped by any rpm package then you can remove this link and  if /usr/share/centrifydc/kerberos/lib/libkrb5.a  looks for libgcc_s.a in /usr/share/centrifydc/lib/gcclib it should be able resolve with that.

    Does /usr/share/centrifydc/kerberos/lib/libkrb5.a  first looks for libgcc_s.a in /usr/lib  or in /usr/share/centrifydc/lib/gcclib ?



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