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

yum update fails after seemingly successful install

  • 1.  yum update fails after seemingly successful install

    Posted Mon September 17, 2018 06:44 PM

    Originally posted by: jstephenyee


    Today I installed yum on my AIX server using the yum.sh script downloaded from the IBM AIX Toolkit for Linux applications website. It seemed to install ok based on the output. But when I try to use yum, it fails right away with some sort of Python related error. Any ideas what I can do to resolve this? Below is the output from the install and the error message.

     

    amra4985:/var/tmp# oslevel -s
    7100-04-03-1642
    amra4985:/var/tmp#

     

    amra4985:/var/tmp# ./yum.sh
    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.13.0.4                            # 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.13.0.4


    2344 blocks

    . . . . . << Copyright notice for rpm.rte >> . . . . . . .
     Licensed Materials - Property of IBM

     5765H4000
       Copyright International Business Machines Corp. 2000, 2018.
       Copyright The Regents of the University of California, 1990, 1993, 1994.
       Copyright Tom Dyas <tdyas@eden.rutgers.edu>, 1998.
       Copyright W. L. Estes <wlestes@uncg.edu>, 1998.
       Copyright Free Software Foundation, Inc., 1999-2014.
       Copyright The Internet Society (1998).
       Copyright Red Hat, Inc., 1998-2003, 2005, 2007, 2009-2011.
       Copyright Red Hat Software, 1995-2002.
       Copyright Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>, 2004.
       Copyright System Design and Research, 2003.

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

    Converting old database format db1 to new  database format db3.

    Successfully converted old database format to new format.

    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.
    Finished processing all filesets.  (Total time:  21 secs).

    +-----------------------------------------------------------------------------+
                                    Summaries:
    +-----------------------------------------------------------------------------+

    Installation Summary
    --------------------
    Name                        Level           Part        Event       Result
    -------------------------------------------------------------------------------
    rpm.rte                     4.13.0.4        USR         APPLY       SUCCESS
    rpm.rte                     4.13.0.4        ROOT        APPLY       SUCCESS

    Extracting yum_bundle.tar ...
    x ca-certificates-2016.10.7-2.aix6.1.ppc.rpm, 214726 bytes, 420 media blocks.
    x curl-7.52.1-1.aix6.1.ppc.rpm, 533288 bytes, 1042 media blocks.
    x db-4.8.24-3.aix6.1.ppc.rpm, 2897799 bytes, 5660 media blocks.
    x gdbm-1.8.3-5.aix5.2.ppc.rpm, 56991 bytes, 112 media blocks.
    x gettext-0.19.7-1.aix6.1.ppc.rpm, 4036762 bytes, 7885 media blocks.
    x glib2-2.14.6-2.aix5.2.ppc.rpm, 1686134 bytes, 3294 media blocks.
    x pysqlite-1.1.7-2.aix6.1.ppc.rpm, 51749 bytes, 102 media blocks.
    x python-2.7.10-1.aix6.1.ppc.rpm, 23333701 bytes, 45574 media blocks.
    x python-devel-2.7.10-1.aix6.1.ppc.rpm, 15366474 bytes, 30013 media blocks.
    x python-iniparse-0.4-1.aix6.1.noarch.rpm, 37912 bytes, 75 media blocks.
    x python-pycurl-7.19.3-1.aix6.1.ppc.rpm, 162093 bytes, 317 media blocks.
    x python-tools-2.7.10-1.aix6.1.ppc.rpm, 830446 bytes, 1622 media blocks.
    x python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm, 158584 bytes, 310 media blocks.
    x readline-6.1-2.aix6.1.ppc.rpm, 489547 bytes, 957 media blocks.
    x sqlite-3.15.2-1.aix6.1.ppc.rpm, 3570302 bytes, 6974 media blocks.
    x yum-3.4.3-5.aix6.1.noarch.rpm, 1380725 bytes, 2697 media blocks.
    x yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm, 62283 bytes, 122 media blocks.


    Checking whether any of the rpms from yum_bundle are already installed ...

    ca-certificates-2016.10.7-2 will be installed ...
    curl-7.52.1-1 will be installed ...
    db-4.8.24-3 will be installed ...
    gdbm-1.8.3-5 will be installed ...
    gettext-0.19.7-1 will be installed ...
    glib2-2.14.6-2 will be installed ...
    pysqlite-1.1.7-2 will be installed ...
    python-2.7.10-1 will be installed ...
    python-devel-2.7.10-1 will be installed ...
    python-iniparse-0.4-1 will be installed ...
    python-pycurl-7.19.3-1 will be installed ...
    python-tools-2.7.10-1 will be installed ...
    python-urlgrabber-3.10.1-1 will be installed ...
    readline-6.1-2 will be installed ...
    sqlite-3.15.2-1 will be installed ...
    yum-3.4.3-5 will be installed ...
    yum-metadata-parser-1.1.4-2 will be installed ...

    Installing the packages...

    Preparing...                          ################################# [100%]
    Updating / installing...
       1:readline-6.1-2                   ################################# [  6%]
       2:sqlite-3.15.2-1                  ################################# [ 12%]
    /
       3:gettext-0.19.7-1                 ################################# [ 18%]
    add libintl.so.1 (32bits) shared member to /opt/freeware/lib/libintl.a
    add libintl.so.1 (64bits) shared member to  /opt/freeware/lib/libintl.a
    /
       4:glib2-2.14.6-2                   ################################# [ 24%]
       5:yum-metadata-parser-1.1.4-2      ################################# [ 29%]
       6:gdbm-1.8.3-5                     ################################# [ 35%]
       7:db-4.8.24-3                      ################################# [ 41%]
       8:python-2.7.10-1                  ################################# [ 47%]
       9:pysqlite-1.1.7-2                 ################################# [ 53%]
      10:python-iniparse-0.4-1            ################################# [ 59%]
      11:ca-certificates-2016.10.7-2      ################################# [ 65%]
      12:curl-7.52.1-1                    ################################# [ 71%]
      13:python-pycurl-7.19.3-1           ################################# [ 76%]
      14:python-urlgrabber-3.10.1-1       ################################# [ 82%]
      15:yum-3.4.3-5                      ################################# [ 88%]
      16:python-devel-2.7.10-1            ################################# [ 94%]
      17:python-tools-2.7.10-1            ################################# [100%]

    Yum installed successfully.
    Please run 'yum update' to update packages to the latest level.

    amra4985:/var/tmp#


    amra4985:/var/tmp# rpm -qa
    expect-5.42.1-3.ppc
    zip-2.3-3.ppc
    nawk-20121220-1.ppc
    tk-8.4.7-3.ppc
    unzip-5.51-1.ppc
    bash-4.4-4.ppc
    AIX-rpm-7.1.4.30-6.ppc
    sqlite-3.15.2-1.ppc
    glib2-2.14.6-2.ppc
    gdbm-1.8.3-5.ppc
    python-2.7.10-1.ppc
    python-iniparse-0.4-1.noarch
    curl-7.52.1-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    python-devel-2.7.10-1.ppc
    tcl-8.4.7-3.ppc
    emacs-nox-21.3-1.ppc
    rsync-3.0.6-1.ppc
    emacs-21.3-1.ppc
    less-487-1.ppc
    grep-3.1-1.ppc
    readline-6.1-2.ppc
    gettext-0.19.7-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    db-4.8.24-3.ppc
    pysqlite-1.1.7-2.ppc
    ca-certificates-2016.10.7-2.ppc
    python-pycurl-7.19.3-1.ppc
    yum-3.4.3-5.noarch
    python-tools-2.7.10-1.ppc
    amra4985:/var/tmp#

     

     

    amra4985:/var/tmp# yum update
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-130 Symbol resolution failed for /usr/opt/rpm/lib/librpm.so because:
            0509-136   Symbol poptSaveInt (number 266) is not exported from
                       dependent module /usr/lib/libpopt.so.
            0509-136   Symbol poptSaveLong (number 267) is not exported from
                       dependent module /usr/lib/libpopt.so.
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.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.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq


    amra4985:/var/tmp#



  • 2.  Re: yum update fails after seemingly successful install

    Posted Tue September 18, 2018 01:52 AM

    Originally posted by: sanket


     

    There is no obvious error in the installation. Only thing is some RPMs were already installed on the system before YUM. 

    But hope they are not causing any issue. Do you know from where they were installed ?

     

    Could you please share output of following.

    # ls -l /usr/lib/libpopt.so

    # sum /usr/lib/libpopt.so

    # dump -Tv /usr/lib/libpopt.so | grep popt

     



  • 3.  Re: yum update fails after seemingly successful install

    Posted Tue September 18, 2018 07:31 AM

    Originally posted by: jstephenyee


    Here's the output you requested.

     

    amra4985:/var/tmp# ls -l /usr/lib/libpopt.so
    lrwxrwxrwx    1 root     system           38 Feb 15 2018  /usr/lib/libpopt.so -> /usr/opt/freeware/lib/libpopt.so.0.0.0
    amra4985:/var/tmp# sum /usr/lib/libpopt.so
    21502    46 /usr/lib/libpopt.so
    amra4985:/var/tmp# dump -Tv /usr/lib/libpopt.so | grep popt
    /usr/lib/libpopt.so:
    [29]    0x20000f08    .data      EXP     RW SECdef        [noIMid] poptAliasOptions
    [30]    0x20000f28    .data      EXP     RW SECdef        [noIMid] poptHelpOptions
    [31]    0x20000f98    .data      EXP     DS SECdef        [noIMid] poptStrippedArgv
    [32]    0x20000fa4    .data      EXP     DS SECdef        [noIMid] poptGetInvocationName
    [33]    0x20000fb0    .data      EXP     DS SECdef        [noIMid] poptSetExecPath
    [34]    0x20000fbc    .data      EXP     DS SECdef        [noIMid] poptStrerror
    [35]    0x20000fc8    .data      EXP     DS SECdef        [noIMid] poptAddItem
    [36]    0x20000fd4    .data      EXP     DS SECdef        [noIMid] poptAddAlias
    [37]    0x20000fe0    .data      EXP     DS SECdef        [noIMid] poptStuffArgs
    [38]    0x20000fec    .data      EXP     DS SECdef        [noIMid] poptFreeContext
    [39]    0x20000ff8    .data      EXP     DS SECdef        [noIMid] poptBadOption
    [40]    0x20001004    .data      EXP     DS SECdef        [noIMid] poptGetArgs
    [41]    0x20001010    .data      EXP     DS SECdef        [noIMid] poptPeekArg
    [42]    0x2000101c    .data      EXP     DS SECdef        [noIMid] poptGetArg
    [43]    0x20001028    .data      EXP     DS SECdef        [noIMid] poptGetOptArg
    [44]    0x20001034    .data      EXP     DS SECdef        [noIMid] poptGetNextOpt
    [45]    0x20001040    .data      EXP     DS SECdef        [noIMid] poptResetContext
    [46]    0x2000104c    .data      EXP     DS SECdef        [noIMid] poptGetContext
    [48]    0x20001064    .data      EXP     DS SECdef        [noIMid] poptDupArgv
    [49]    0x20001070    .data      EXP     DS SECdef        [noIMid] poptParseArgvString
    [50]    0x2000107c    .data      EXP     DS SECdef        [noIMid] poptReadDefaultConfig
    [51]    0x20001088    .data      EXP     DS SECdef        [noIMid] poptReadConfigFile
    [52]    0x20001094    .data      EXP     DS SECdef        [noIMid] poptSetOtherOptionHelp
    [53]    0x200010ac    .data      EXP     DS SECdef        [noIMid] poptPrintUsage
    [54]    0x200010b8    .data      EXP     DS SECdef        [noIMid] poptPrintHelp
    amra4985:/var/tmp#

     

    As for previously installed rpms, these were installed a couple of weeks ago. But my colleague got them from aother website. Should I try to uninstall them and reinstall the versions from the IBM Toolkit website?

    Location of downloads - http://www.perzl.org/aix/

    amra4985:/var/tmp# ls -ltr *rpm*

    -rw-r--r--    1 szarop   amer         105065 Sep 04 14:13 less-487-1.aix5.1.ppc.rpm

    -rw-r--r--    1 szarop   amer        2362413 Sep 04 14:13 bash_64-4.4-4.aix5.1.ppc.rpm

    -rw-r--r--    1 szarop   amer         114762 Sep 04 14:19 nawk-20121220-1.aix5.1.ppc.rpm



  • 4.  Re: yum update fails after seemingly successful install

    Posted Tue September 18, 2018 08:45 AM

    Originally posted by: AyappanP


    Seems like the libraries shipped with the older rpm are still present in the machine even after updating rpm to 4.13.0.4. Some problem with the installation ?

    And also i guess you might have exported LIBPATH or LD_LIBRARY_PATH. If that is the case, please unset it and try again.



  • 5.  Re: yum update fails after seemingly successful install

    Posted Tue September 18, 2018 11:16 AM

    Originally posted by: jstephenyee


    I unset LIBPATH, but issue remains.

     

    amra4985:/# echo $LIBPATH
    /opt/CA/SharedComponents/lib:/opt/CA/CAlib
    amra4985:/# echo $LD_LIBRARY_PATH

    amra4985:/# unset LIBPATH
    amra4985:/# echo $LIBPATH

    amra4985:/# cd /var/tmp
    amra4985:/var/tmp# yum update
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-130 Symbol resolution failed for /usr/opt/rpm/lib/librpm.so because:
            0509-136   Symbol poptSaveInt (number 266) is not exported from
                       dependent module /usr/lib/libpopt.so.
            0509-136   Symbol poptSaveLong (number 267) is not exported from
                       dependent module /usr/lib/libpopt.so.
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.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.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq


    amra4985:/var/tmp#



  • 6.  Re: yum update fails after seemingly successful install

    Posted Tue September 18, 2018 11:24 AM

    Originally posted by: AyappanP


    Okay. Can you run this command and paste the output 

    ldd /usr/opt/rpm/lib/librpm.so



  • 7.  Re: yum update fails after seemingly successful install

    Posted Tue September 18, 2018 11:27 AM

    Originally posted by: jstephenyee


    amra4985:/var/tmp# ldd /usr/opt/rpm/lib/librpm.so
    /usr/opt/rpm/lib/librpm.so needs:
             /usr/opt/rpm/lib/librpmio.so
             /usr/opt/rpm/lib/libnss3.so
             /usr/opt/rpm/lib/libintl.a(libintl.so.8)
             /usr/opt/rpm/lib/libpopt.so
             /lib/libc.a(shr.o)
             /usr/opt/rpm/lib/liblua.a(liblua-5.1.so)
             /usr/opt/rpm/lib/libdb.so
             /lib/libpthread.a(shr_xpg5.o)
             /usr/opt/rpm/lib/libbz2.a(libbz2.so.1)
             /usr/opt/rpm/lib/libz.a(libz.so.1)
             /usr/opt/rpm/lib/libnssutil3.so
             /usr/opt/rpm/lib/libplc4.so
             /usr/opt/rpm/lib/libplds4.so
             /usr/opt/rpm/lib/libnspr4.so
             /lib/libpthreads.a(shr_xpg5.o)
             /lib/libiconv.a(shr4.o)
             /unix
             /lib/libcrypt.a(shr.o)
             /lib/libpthreads.a(shr_comm.o)
             /lib/libc.a(shr_64.o)
             /lib/libodm.a(shr.o)
             /lib/libcfg.a(shr.o)
             /lib/libcrypt.a(shr_64.o)
    amra4985:/var/tmp#



  • 8.  Re: yum update fails after seemingly successful install

    Posted Tue September 18, 2018 11:43 AM

    Originally posted by: AyappanP


    Here it is clearly showing that it is linking to /usr/opt/rpm/lib/libpopt.so but not sure why it is looking into /usr/lib/libpopt.so

    Run slibclean command and try again.



  • 9.  Re: yum update fails after seemingly successful install

    Posted Tue September 18, 2018 12:10 PM

    Originally posted by: jstephenyee


    amra4985:/var/tmp# echo $LIBPATH

    amra4985:/var/tmp# echo $LD_LIBRARY_PATH

    amra4985:/var/tmp# slibclean
    amra4985:/var/tmp# yum update
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-130 Symbol resolution failed for /usr/opt/rpm/lib/librpm.so because:
            0509-136   Symbol poptSaveInt (number 266) is not exported from
                       dependent module /usr/lib/libpopt.so.
            0509-136   Symbol poptSaveLong (number 267) is not exported from
                       dependent module /usr/lib/libpopt.so.
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.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.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq


    amra4985:/var/tmp# ls -l /usr/lib/libpopt.so
    lrwxrwxrwx    1 root     system           38 Feb 15 2018  /usr/lib/libpopt.so -> /usr/opt/freeware/lib/libpopt.so.0.0.0
    amra4985:/var/tmp# ls -l /usr/opt/freeware/lib/libpopt.so.0.0.0
    -rwxr-xr-x    1 root     system        46789 Sep 17 18:07 /usr/opt/freeware/lib/libpopt.so.0.0.0
    amra4985:/var/tmp#



  • 10.  Re: yum update fails after seemingly successful install

    Posted Wed September 19, 2018 01:31 AM

    Originally posted by: sanket


     

    The libpopt.so in your system is not the one that is shipped with rpm.rte.

    Do you know from where it was installed ? Following commands can provide that information. 

    Please share the output of the following commands.

    # rpm -qf /usr/lib/libpopt.so

    # rpm -qf /usr/opt/freeware/lib/libpopt.so.0.0.0

    if above does not work then 

    # lslpp -w /usr/lib/libpopt.so

    # lslpp -w /usr/opt/freeware/lib/libpopt.so.0.0.0

     

    The sum and size of libpopt.so is not matching with what is provided by rpm.rte.

    It is possible that there was already a libpopt.so in your system and rpm did not overwrite /usr/lib but would have installed in /usr/opt/rpm/lib/

    We want to know from where that libpopt was installed.

    Also can you check if there are libpopt libraries in /usr/opt/rpm/lib/

    # ls -l /usr/opt/rpm/lib/libpopt*

     

    Anyway one thing you can try is to install correct libpopt.so

    Install popt-1.16-3.aix6.1.ppc.rpm from AIX toolbox manually using rpm command.

    This should install the libraries correctly. 

    But we would still want to know what happened in your system and why /usr/lib/libpopt* is not the correct library.

     

     

     



  • 11.  Re: yum update fails after seemingly successful install

    Posted Wed September 19, 2018 08:20 AM

    Originally posted by: AyappanP


    After some checking,  it seems like the libpopt in /usr/lib is actually from the older rpm.rte fileset. 

    The new rpm.rte fileset installation should have created the proper symbolic links. /usr/lib/libpopt.so --> /usr/opt/rpm/lib/libpopt.so . But not sure what went wrong here.

    As mentioned above, you can install popt rpm manually and overcome this issue.



  • 12.  Re: yum update fails after seemingly successful install

    Posted Wed September 19, 2018 11:58 AM

    Originally posted by: jstephenyee


    Thanks all for the help. I really don't know where the old libpopt.so came from, but installing the popt rpm seems to have fixed the issue!

    amra4985:/# rpm -qf /usr/lib/libpopt.so
    file /usr/lib/libpopt.so is not owned by any package
    file /usr/opt/freeware/lib/libpopt.so.0.0.0 is not owned by any package
    amra4985:/# lslpp -w /usr/lib/libpopt.so
    amra4985:/# lslpp -w /usr/opt/freeware/lib/libpopt.so.0.0.0
    amra4985:/# ls -l /usr/opt/rpm/lib/libpopt*
    -rwxr-xr-x    1 root     system       257585 Apr 12 13:18 /usr/opt/rpm/lib/libpopt.a
    lrwxrwxrwx    1 root     system           29 Sep 17 18:07 /usr/opt/rpm/lib/libpopt.so -> /usr/opt/rpm/lib/libpopt.so.0
    -rwxr-xr-x    1 root     system       157503 Apr 12 13:18 /usr/opt/rpm/lib/libpopt.so.0
    lrwxrwxrwx    1 root     system           29 Sep 17 18:07 /usr/opt/rpm/lib/libpopt.so.0.0.0 -> /usr/opt/rpm/lib/libpopt.so.0
    amra4985:/# cd /sap/remote/aix/rpm_LHSP
    amra4985:/sap/remote/aix/rpm_LHSP# rpm -ivh popt-1.16-3.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:popt-1.16-3                      ################################# [100%]
    amra4985:/sap/remote/aix/rpm_LHSP#
    amra4985:/sap/remote/aix/rpm_LHSP# rpm -qf /usr/lib/libpopt.so
    popt-1.16-3.ppc
    amra4985:/sap/remote/aix/rpm_LHSP# rpm -qf /usr/opt/freeware/lib/libpopt.so.0.0.0
    popt-1.16-3.ppc
    amra4985:/sap/remote/aix/rpm_LHSP#
    amra4985:/sap/remote/aix/rpm_LHSP# yum update
    AIX_Toolbox                                                                                                | 2.9 kB  00:00:00
    AIX_Toolbox/primary_db                                                                                     | 1.0 MB  00:00:00
    AIX_Toolbox_71                                                                                             | 2.9 kB  00:00:00
    AIX_Toolbox_71/primary_db                                                                                  | 9.8 kB  00:00:00
    AIX_Toolbox_noarch                                                                                         | 2.9 kB  00:00:00
    AIX_Toolbox_noarch/primary_db                                                                              |  51 kB  00:00:00
    Setting up Update Process

    ...

     



  • 13.  RE: Re: yum update fails after seemingly successful install

    Posted Mon March 22, 2021 04:57 AM

    I am facing similar situation - aimed to install SAMBA on AIX 7.2.  When, i type yum ...

    It returns:
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-130 Symbol resolution failed for /usr/lib/libz.a(libz.so.1) 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 2) is not exported from
    dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
    0509-136 Symbol _GLOBAL__AIXD_shr_o (number 3) is not exported from
    dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.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.

    My steps:
    1. install rpm.rte -> looks successful
    2. rpm -ivh (all rpm in the yum_bundle.tar) 

    Actually, I have installed rpm.rte from http://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/

    However, my output doesn't look good.

    # ls -l /usr/lib/libpopt.so
    lrwxrwxrwx 1 root system 38 Apr 25 2014 /usr/lib/libpopt.so -> /usr/opt/freeware/lib/libpopt.so.0.0.0
    # sum /usr/lib/libpopt.so
    sum: 0653-690 Cannot open /usr/lib/libpopt.so.

    # dump -Tv /usr/lib/libpopt.so | grep popt
    dump: /usr/lib/libpopt.so: dump: 0654-106 Cannot open the specified file.



    ------------------------------
    Samuel SUM
    ------------------------------



  • 14.  RE: Re: yum update fails after seemingly successful install

    Posted Mon March 22, 2021 06:06 AM

    After updating a number of RPM, the error message is now changed as below

    The popt / libiconv are being installed already.  It looks like not able to reach the libraries.


    # yum update
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-022 Cannot load module /usr/lib/libpopt.so.
    0509-150 Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
    0509-152 Member libiconv.so.2 is not found in archive
    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
    0509-150 Dependent module /usr/lib/libpopt.so could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq


    #



    ------------------------------
    Samuel SUM
    ------------------------------



  • 15.  RE: Re: yum update fails after seemingly successful install

    Posted Mon March 22, 2021 02:37 PM
    Hi Samuel,

    Please let me know the output of below commands.

    ls -l /usr/lib/libpopt.so
    dump -Hov /usr/lib/libpopt.so
    rpm -qa | grep libiconv
    rpm -qa | grep post

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



  • 16.  RE: Re: yum update fails after seemingly successful install

    Posted Mon March 22, 2021 09:50 PM

    Thanks so much SANGAMESH!  Please see the result below.

    # ls -l /usr/lib/libpopt.so
    lrwxrwxrwx 1 root system 38 Apr 25 2014 /usr/lib/libpopt.so -> /usr/opt/freeware/lib/libpopt.so.0.0.0
    # dump -Hov /usr/lib/libpopt.so

    /usr/lib/libpopt.so:

    ***Object Module Header***
    # Sections Symbol Ptr # Symbols Opt Hdr Len Flags
    5 0x0001c4e8 5829 72 0x3002
    Flags=( EXEC DYNLOAD SHROBJ DEP_SYSTEM )
    Timestamp = "Apr 21 00:03:38 2020"
    Magic = 0x1df (32-bit XCOFF)

    ***Optional Header***
    Tsize Dsize Bsize Tstart Dstart
    0x0000a15b 0x000005b9 0x00000004 0x10000150 0x200002ab

    SNloader SNentry SNtext SNtoc SNdata
    0x0004 0x0000 0x0001 0x0002 0x0002

    TXTalign DATAalign TOC vstamp entry
    0x0007 0x0004 0x20000740 0x0001 0xffffffff

    maxSTACK maxDATA SNbss magic modtype
    0x00000000 0x80000000 0x0003 0x010b RE

    ***Loader Section***
    Loader Header Information
    VERSION# #SYMtableENT #RELOCent LENidSTR
    0x00000001 0x00000076 0x000000d0 0x00000081

    #IMPfilID OFFidSTR LENstrTBL OFFstrTBL
    0x00000005 0x000014f0 0x0000050b 0x00001571


    ***Import File Strings***
    INDEX PATH BASE MEMBER
    0 /opt/freeware/lib:/usr/vac/lib:/usr/lib:/lib
    1 libgcc_s.a shr.o
    2 libintl.a libintl.so.8
    3 libiconv.a libiconv.so.2
    4 libc.a shr.o
    # rpm -qa | grep libiconv
    libiconv-1.16-5.ppc
    # rpm -qa | grep post
    # rpm -qa | grep popt
    popt-1.16-4.ppc



    ------------------------------
    Samuel SUM
    ------------------------------



  • 17.  RE: Re: yum update fails after seemingly successful install

    Posted Mon March 22, 2021 09:53 PM
    Thanks so much SANGAMESH!  Please find the result below.

    # ls -l /usr/lib/libpopt.so
    lrwxrwxrwx 1 root system 38 Apr 25 2014 /usr/lib/libpopt.so -> /usr/opt/freeware/lib/libpopt.so.0.0 .0
    # dump -Hov /usr/lib/libpopt.so

    /usr/lib/libpopt.so:

    ***Object Module Header***
    # Sections Symbol Ptr # Symbols Opt Hdr Len Flags
    5 0x0001c4e8 5829 72 0x3002
    Flags=( EXEC DYNLOAD SHROBJ DEP_SYSTEM )
    Timestamp = "Apr 21 00:03:38 2020"
    Magic = 0x1df (32-bit XCOFF)

    ***Optional Header***
    Tsize Dsize Bsize Tstart Dstart
    0x0000a15b 0x000005b9 0x00000004 0x10000150 0x200002ab

    SNloader SNentry SNtext SNtoc SNdata
    0x0004 0x0000 0x0001 0x0002 0x0002

    TXTalign DATAalign TOC vstamp entry
    0x0007 0x0004 0x20000740 0x0001 0xffffffff

    maxSTACK maxDATA SNbss magic modtype
    0x00000000 0x80000000 0x0003 0x010b RE

    ***Loader Section***
    Loader Header Information
    VERSION# #SYMtableENT #RELOCent LENidSTR
    0x00000001 0x00000076 0x000000d0 0x00000081

    #IMPfilID OFFidSTR LENstrTBL OFFstrTBL
    0x00000005 0x000014f0 0x0000050b 0x00001571


    ***Import File Strings***
    INDEX PATH BASE MEMBER
    0 /opt/freeware/lib:/usr/vac/lib:/usr/lib:/lib
    1 libgcc_s.a shr.o
    2 libintl.a libintl.so.8
    3 libiconv.a libiconv.so.2
    4 libc.a shr.o
    # rpm -qa | grep libiconv
    libiconv-1.16-5.ppc
    # rpm -qa | grep post
    # rpm -qa | grep popt
    popt-1.16-4.ppc

    ------------------------------
    Samuel SUM
    ------------------------------



  • 18.  RE: Re: yum update fails after seemingly successful install

    Posted Tue March 23, 2021 08:28 AM
    Hi Samuel,

    Is there any LIBPATH is set ?

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



  • 19.  RE: Re: yum update fails after seemingly successful install

    Posted Fri March 26, 2021 12:38 AM

    Do you mean I should add?

    export LIBPATH=/opt/freeware/lib:/usr/lib

    Please suggest.  Actually, I am still thinking about the recovery on the machine.  I am trying to install rpm one-by-one, such as glib2, gtk2, etc.  Unfortunately, it is not okay.

    One of the thing is that I can't erase it

    rpm -e yum (no yum is being installed)



    ------------------------------
    Samuel SUM
    ------------------------------



  • 20.  RE: Re: yum update fails after seemingly successful install

    Posted Mon March 22, 2021 01:18 PM
    How did you install yum ? 
    Were there any other rpm packages / open source software installed before from other repositories?
    Could you please share the output of following command

    # rpm -qa ​

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 21.  RE: Re: yum update fails after seemingly successful install

    Posted Mon March 22, 2021 09:58 PM

    I installed all the yum_bundle.tar.

    http://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/

    Then, I have found missed rpm.rte.  Then, install it by smit.

    After this, I have upgraded the related rpm again.  Then, erase the yum and re-install the yum.

    ---> rpm -qa (result below)

    # rpm -qa | grep yum
    yum-3.4.3-8.noarch
    yum-metadata-parser-1.1.4-2.ppc
    # rpm -qa
    expect-5.42.1-3.ppc
    libstdc++-devel-4.6.4-1.ppc
    tk-8.4.7-3.ppc
    zlib-1.2.11-5.ppc
    xz-libs-5.2.5-1.ppc
    gdbm-1.8.3-5.ppc
    readline-6.1-2.ppc
    ca-certificates-2016.10.7-2.ppc
    db-4.8.24-3.ppc
    python-iniparse-0.4-1.noarch
    python-urlgrabber-3.10.1-1.noarch
    python-tools-2.7.10-1.ppc
    yum-3.4.3-8.noarch
    popt-1.16-4.ppc
    libgcc-8-1.ppc
    libstdc++-8-1.ppc
    glib2-2.56.1-2.ppc
    libgomp-8-1.ppc
    ncurses-devel-6.2-2.ppc
    libtextstyle-devel-0.20.2-1.ppc
    libunistring-0.9.10-1.ppc
    libxml2-2.9.10-1.ppc
    tcl-8.4.7-3.ppc
    bash-4.2-1.ppc
    libiconv-1.16-5.ppc
    compat-getopt-1.2-1.ppc
    python-2.7.10-1.ppc
    sqlite-3.15.2-1.ppc
    curl-7.52.1-1.ppc
    pysqlite-1.1.7-2.ppc
    python-pycurl-7.19.3-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    python-devel-2.7.10-1.ppc
    AIX-rpm-7.2.5.0-7.ppc
    libgcc8-8.3.0-4.ppc
    libstdc++8-8.3.0-4.ppc
    libffi-3.2.1-3.ppc
    libgomp8-8.3.0-4.ppc
    ncurses-6.2-2.ppc
    libtextstyle-0.20.2-1.ppc
    info-6.7-4.ppc
    libunistring-devel-0.9.10-1.ppc
    gettext-0.20.2-1.ppc



    ------------------------------
    Samuel SUM
    ------------------------------



  • 22.  RE: Re: yum update fails after seemingly successful install

    Posted Tue March 23, 2021 07:13 AM
    The steps should be reversed. First you need to install rpm.rte and then yum_bundle.tar
    Can you try this way. First install rpm.rte and then yum_bundle on a clean machine ?

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 23.  RE: Re: yum update fails after seemingly successful install

    Posted Fri March 26, 2021 12:46 AM

    Yes, I have done it fine on a LPAR without any software only.

    A New Big Problem Introduced

    Unfortunately, I tried to do the same thing in a LPAR with a SAMBA 3 (by rpms from perzl.org many years ago NOT installp).  It was just upgraded from AIX 7.1.3 to AIX 7.2.5 with DB2 v11.5.5.  This is a very vital testing machine. 

    Then, I repeated the same steps as suggested (succeed in a clean LPAR).
    It shows the same error after installation of rpms.  It makes me shocked.  I did exactly the same stuff.

    ********************************************************************************************************************

    root@tvbcsveis97p9:/> yum
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-022 Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).
    0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded.
    0509-022 Cannot load module libgcc_s.a(shr.o).
    0509-026 System error: A file or directory in the path name does not exi st.
    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/_s qlitecache.so.
    0509-150 Dependent module /usr/lib/libglib-2.0.a(libglib-2.0.so.0) cou ld not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq



    ------------------------------
    Samuel SUM
    ------------------------------



  • 24.  RE: Re: yum update fails after seemingly successful install

    Posted Fri March 26, 2021 03:09 PM
    I found the issue was caused by having openssl rpm installed previously and it conflicted with the AIX supplied openssl.base 1.0.2.2100 after the yum update. This required the old ssl rpm to be removed an then a reinstall of the AIX supplied openssl.base 1.0.2.2100.

    rpm -e openssl-0.9.7l-2.ppc

    After removing the openssl-0.9.7l-2.ppc

    Running the lppchk -c showed missing files
    lppchk: 0504-206 File /var/ssl/misc/CA.pl could not be located.
    lppchk: 0504-206 File /var/ssl/misc/CA.sh could not be located.
    lppchk: 0504-206 File /var/ssl/misc/c_name could not be located.
    lppchk: 0504-206 File /var/ssl/misc/c_hash could not be located.
    lppchk: 0504-206 File /var/ssl/openssl.cnf could not be located.
    lppchk: 0504-206 File /var/ssl/misc/c_info could not be located.
    lppchk: 0504-206 File /var/ssl/misc/c_issuer could not be located.

    geninstall -I "a -cNQqwXY -J" -F -Z -d /nim/openssl/openssl-1.0.2.2100 -f File 2>&1

    -rw------- 1 root system 54542336 Jun 15 2020 openssl.base
    -rw------- 1 root system 98304 Jun 15 2020 openssl.license
    -rw------- 1 root system 3290112 Jun 15 2020 openssl.man.en_US

    lslpp -l | grep open
    openssl.base 1.0.2.2100 COMMITTED Open Secure Socket Layer
    openssl.license 1.0.2.2100 COMMITTED Open Secure Socket License
    openssl.man.en_US 1.0.2.2100 COMMITTED Open Secure Socket Layer

    After these steps now yum is working.

    I hope this helps!

    Stan

    ------------------------------
    Stanley Speegle
    ------------------------------



  • 25.  RE: Re: yum update fails after seemingly successful install

    Posted Sat March 27, 2021 02:09 AM

    Thanks everyone's clues.  Unfortunately, it is still not working.  I have compared a clean machine with Yum running and the old machine with lots of previous installation (before taking over).  I think it should be related to libgcc_s.a and I don't know why the rpm.rte was installed successfully (same version) - but with different results.

    Working Machine

    # find . -name libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/ppc64/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/pthread/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/pthread/ppc64/libgcc_s.a
    ./opt/freeware/lib/libgcc_s.a
    ./opt/freeware/lib/pthread/libgcc_s.a
    ./opt/freeware/lib/pthread/ppc64/libgcc_s.a
    ./opt/freeware/lib64/libgcc_s.a
    find: 0652-023 Cannot open file ./proc/3015008.
    # ls -l /usr/lib/libglib-2.0.a
    lrwxrwxrwx 1 root system 36 Mar 24 17:01 /usr/lib/libglib-2.0.a -> ../../opt/freeware/lib/libglib-2.0.a
    # yum
    You need to give some command
    Usage: yum [options] COMMAND


    Machine not Working
    # find . -name libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/6/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/6/ppc64/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/6/pthread/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/6/pthread/ppc64/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/7/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/7/ppc64/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/7/pthread/libgcc_s.a
    ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/7/pthread/ppc64/libgcc_s.a
    ./opt/freeware/lib/libgcc_s.a
    ./opt/freeware/lib/pthread/libgcc_s.a
    ./opt/freeware/lib/pthread/ppc64/libgcc_s.a
    ./opt/freeware/lib64/libgcc_s.a

    # ls -l /usr/lib/libglib-2.0.a
    lrwxrwxrwx 1 root system 36 Mar 27 12:14 /usr/lib/libglib-2.0.a -> ../../opt/freeware/lib/libglib-2.0.a

    # yum
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-022 Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).
    0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded.
    0509-022 Cannot load module libgcc_s.a(shr.o).
    0509-026 System error: A file or directory in the path name does not exist.
    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
    0509-150 Dependent module /usr/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq


    ===================
    Should I install ./opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8/*.* ?  Actually, I am still thinking how...  

    For me, my strengthen is data but never system...  Thanks again for everyone for your help and contribution.



    ------------------------------
    Samuel SUM
    ------------------------------



  • 26.  RE: Re: yum update fails after seemingly successful install

    Posted Sat March 27, 2021 07:02 AM
    I have fixed the issue after manually copying the missing files.

    I can find the folder /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8
    but the related files like libgcc_s.a are being missed.

    So, I go to the "Good" machine and tar the "8" subfolder; then copy & paste missing drivers.
    It is working with the yum and the yum install samba.

    Thanks again for everyone helped.

    ------------------------------
    Samuel SUM
    ------------------------------