AIX Open Source

 View Only
  • 1.  yum command not working

    Posted Mon May 09, 2022 02:46 AM
    #yum
    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 /usr/lib/libglib-2.0.a(libglib-2.0.so.0).
    Dependent module /usr/lib/libintl.a(libintl.so.1) could not be loaded.
    Member libintl.so.1 is not found in archive
    Could not load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
    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

    # export LIBPATH=/opt/freeware/lib

    # yum
    ERROR:root:code for hash md5 was not found.
    Traceback (most recent call last):
    File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
    File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type md5
    ERROR:root:code for hash sha1 was not found.
    Traceback (most recent call last):
    File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
    File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha1
    ERROR:root:code for hash sha224 was not found.
    Traceback (most recent call last):
    File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
    File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha224
    ERROR:root:code for hash sha256 was not found.
    Traceback (most recent call last):
    File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
    File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha256
    ERROR:root:code for hash sha384 was not found.
    Traceback (most recent call last):
    File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
    File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha384
    ERROR:root:code for hash sha512 was not found.
    Traceback (most recent call last):
    File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
    File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha512
    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/pycurl.so.
    Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.
    Member libcrypto.so is not found in archive
    Could not load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
    Dependent module /opt/freeware/lib/python2.7/site-packages/pycurl.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

    #

    ​Could you please guide on this​

    ------------------------------
    Vijaya Baskar Jayapalan
    ------------------------------


  • 2.  RE: yum command not working

    Posted Mon May 09, 2022 04:14 AM
    To run yum you do not need to set any LIBPATH, it should work without that.
    Also AIX toolbox is moving to dnf and that is now recommended package manager. 

    Please provide us some background. 
    Was yum working before and stopped recently or you installed fresh and not working ?
    When you first saw error was any LIBPATH set that time ? Can you try running after unsetting LIBPATH (nothing to be set in LIBPATH)
    Also provide the output of "rpm -qa" and output of yum command after unsetting LIBPATH 

    $ unset LIBPATH
    $ yum​

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



  • 3.  RE: yum command not working

    Posted Mon May 09, 2022 12:27 PM

    Hi Sanket,

    Thank you for looking into this.

    Was yum working before and stopped recently or you installed fresh and not working ?

    No. Yum was not working properly. Here is the initial error which I got. So I reinstalled the yum but no luck still getting errors only.

    yum reporlist
    ERROR:root:code for hash md5 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type md5
    ERROR:root:code for hash sha1 was not found.

    When you first saw error was any LIBPATH set that time ? Can you try running after unsetting LIBPATH (nothing to be set in LIBPATH)

    i was not noticed the LIBPATH initially. Here are the command output to help further.

    # echo $LIBPATH

    # unset LIBPATH
    # echo $LIBPATH

    # yum
    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 /usr/lib/libglib-2.0.a(libglib-2.0.so.0).
    Dependent module /usr/lib/libintl.a(libintl.so.1) could not be loaded.
    Member libintl.so.1 is not found in archive
    Could not load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
    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


    #rpm -qa
    openssl-doc-0.9.6g-3.ppc
    libffi-3.2.1-3.ppc
    cyrus-sasl-2.1.26-3.ppc
    expat-2.2.9-1.ppc
    info-6.6-2.ppc
    p11-kit-tools-0.23.16-1.ppc
    krb5-libs-1.16.1-3.ppc
    libstdc++-8.3.0-1.ppc
    openldap-2.4.48-1.ppc
    xz-libs-5.2.4-1.ppc
    bash-5.0-1.ppc
    sqlite-3.15.2-1.ppc
    glib2-2.14.6-2.ppc
    gdbm-1.8.3-5.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
    python-2.7.10-1.ppc
    unzip-6.0-3.ppc
    openssl-0.9.7d-2.ppc
    libgcc-8.3.0-1.ppc
    ncurses-6.1-2.ppc
    libssh2-1.8.2-1.ppc
    libxml2-2.9.9-1.ppc
    libiconv-1.14-2.ppc
    openssl-devel-0.9.6g-3.ppc
    zlib-1.2.11-1.ppc
    bzip2-1.0.8-2.ppc
    libunistring-0.9.9-2.ppc
    p11-kit-0.23.16-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-8.noarch
    python-tools-2.7.10-1.ppc
    AIX-rpm-7.1.5.33-2.ppc
    #



    ------------------------------
    Vijaya Baskar Jayapalan
    ------------------------------



  • 4.  RE: yum command not working

    Posted Tue May 10, 2022 11:41 AM
    Hi Vijay,

    The presence of openssl rpm is causing the issue.
    Check if you can remove the openssl rpm and try run yum with LIBPATH as /opt/freeware/lib:/usr/lib:/lib

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