AIX Open Source

AIX Open Source

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

 View Only
  • 1.  problem with libpopt ... after saying yum upgrade samba*

    Posted Tue February 23, 2021 05:23 PM
    Edited by Michael Metts Wed February 24, 2021 01:19 AM
    We are getting the following from yum:

    [root@crcoaixdev ~]# yum check-update
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    Could not load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
    Dependent module libpopt.so could not be loaded.
    Could not load module libpopt.so.
    System error: No such file or directory
    Could not load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
    Dependent module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.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.16 (default, Mar 12 2019, 21:23:24)
    [GCC 6.3.0]

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

    I don't really understand what this is about.  How do I fix this?  This is the OS level:
    [root@crcoaixdev ~]# oslevel -s
    Could not load program /usr/opt/freeware/bin/rpm:
    Dependent module libpopt.so could not be loaded.
    Could not load module libpopt.so.
    System error: No such file or directory
    7100-05-05-1939

    Note that this issue is interfering with system commands as well.  Please advise.  Thanks.

    ------------------------------
    Michael Metts
    ------------------------------


  • 2.  RE: problem with libpopt ... after saying yum upgrade samba*

    Posted Tue February 23, 2021 06:04 PM
    This problem is rather serious.  rpm and yum are essentially broken now.  It looks like libpopt is there but I guess it's the wrong version.  How do I fix this?

    [root@crcoaixdev ~]# locate libpopt.so
    /opt/freeware/lib/libpopt.so
    /opt/freeware/lib/libpopt.so.0
    /opt/freeware/lib/libpopt.so.0.0.0
    /usr/lib/libpopt.so
    /usr/lib/libpopt.so.0
    /usr/lib/libpopt.so.0.0.0

    [root@crcoaixdev ~]# ll /usr/lib/libpopt*
    lrwxrwxrwx 1 root system 32 Feb 23 14:49 /usr/lib/libpopt.a@ -> ../../opt/freeware/lib/libpopt.a*

    ------------------------------
    Michael Metts
    ------------------------------



  • 3.  RE: problem with libpopt ... after saying yum upgrade samba*

    Posted Tue February 23, 2021 07:10 PM
    Edited by Michael Metts Tue February 23, 2021 07:12 PM
    it appears the updating samba* also had the effect of upgrading popt ... so before the upgrade we had:

    [root@crcoaixdev lib]# locate libpopt
    /opt/freeware/lib/libpopt.a
    /opt/freeware/lib/libpopt.la
    /opt/freeware/lib/libpopt.so
    /opt/freeware/lib/libpopt.so.0
    /opt/freeware/lib/libpopt.so.0.0.0
    /opt/freeware/lib/samba/libpopt-samba3-cmdline-samba4.so
    /opt/freeware/lib/samba/libpopt-samba3-samba4.so
    /usr/lib/libpopt.a
    /usr/lib/libpopt.la
    /usr/lib/libpopt.so
    /usr/lib/libpopt.so.0
    /usr/lib/libpopt.so.0.0.0

    but now we have:
    [root@crcoaixdev lib]# locate libpopt
    /opt/freeware/lib/libpopt.a
    /opt/freeware/lib/samba/libpopt-samba3-cmdline-samba4.so
    /opt/freeware/lib/samba/libpopt-samba3-samba4.so
    /opt/freeware/lib64/libpopt.a
    /usr/lib/libpopt.a

    With RPM and YUM both broken, it seems I'm screwed at the moment.  I would really appreciate some help fixing this.  Thanks.


    ------------------------------
    Michael Metts
    ------------------------------



  • 4.  RE: problem with libpopt ... after saying yum upgrade samba*
    Best Answer

    Posted Wed February 24, 2021 01:20 AM
    I'm still hoping for some help with this problem.  Is this here part of the solution? https://www.ibm.com/support/pages/update-rpmrte-latest-version-resolve-rpm-errors-and-core-dumps

    ------------------------------
    Michael Metts
    ------------------------------



  • 5.  RE: problem with libpopt ... after saying yum upgrade samba*

    Posted Wed February 24, 2021 02:08 AM
    I guess your rpm.rte version is old. Please update to the recent rpm.rte versions.
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/

    ------------------------------
    Ayappan P
    ------------------------------



  • 6.  RE: problem with libpopt ... after saying yum upgrade samba*

    Posted Wed February 24, 2021 11:13 AM
    Yes.  That seems to have fixed it.  Thanks.

    ------------------------------
    Michael Metts
    ------------------------------