AIX Open Source

 View Only
  • 1.  repo-client error - YUM on AIX

    Posted Wed May 20, 2020 12:50 PM

    Originally posted by: soporteunix


    Hi; we are configuring YUM on AIX.
    So far we've got:
    A repo server running AIX 7200-04-01-1939. It syncs the internet repos and serves them internally using httpserver.
    A replo client running AIX 7100-05-04-1914. We've installed and configured the repo-client and it ends up ok. but as soon as we run "yum update" it updates 19 packages, installs 13 packages and it start to fails displaying the following errors:

     

    ---------------------------------------------------------

    prueba_v9000:/tmp/yum_bundle# yum repolist
    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.17 (default, Feb 24 2020, 10:57:43)
    [GCC 8.3.0]

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


    ---------------------------------------------------------------------------------

    If we remove the fileset sqlite-3.28.0-1.ppc, then reinstal rpm.rte and cdrtools.base we are able to run the script "yum.sh", it install the yum filesets again and everything works fine untill you run "yum update" or install a new version of python.

    It looks like some python component is messing up the installation.

    We are following this article to configure YUM:
    https://developer.ibm.com/articles/configure-yum-on-aix/

    This is the content of the /opt/freeware/etc/yum/yum.conf:
    prueba_v9000:/tmp/yum_bundle# cat /opt/freeware/etc/yum/yum.conf
    [main]
    cachedir=/var/cache/yum
    keepcache=1
    debuglevel=2
    logfile=/var/log/yum.log
    exactarch=1
    obsoletes=1
    plugins=1

    [AIX_Toolbox]
    name=AIX generic repository
    baseurl=http://pruebanpiv/repo_sync/AIX_Toolbox/
    enabled=1
    gpgcheck=0

    [AIX_Toolbox_noarch]
    name=AIX noarch repository
    baseurl=http://pruebanpiv/repo_sync/AIX_Toolbox_noarch/
    enabled=1
    gpgcheck=0

    [AIX_Toolbox_61]
    name=AIX 6.1 specific repository
    baseurl=http://pruebanpiv/repo_sync/AIX_Toolbox_61/
    enabled=1
    gpgcheck=0

    [AIX_Toolbox_71]
    name=AIX 7.1 specific repository
    baseurl=http://pruebanpiv/repo_sync/AIX_Toolbox_71/
    enabled=1
    gpgcheck=0



    Regards and thanks in advance.



  • 2.  Re: repo-client error - YUM on AIX

    Posted Thu May 21, 2020 01:56 AM

    Originally posted by: sangameshm


    Please check this https://www.ibm.com/developerworks/community/forums/html/topic?id=ac3ada02-c604-46a5-bb19-63558ae52ce7&ps=25

    It's mostly due to the openssl rpm installed in a machine.

     

    Thanks,

    Sangamesh

     



  • 3.  RE: Re: repo-client error - YUM on AIX

    Posted Fri January 29, 2021 06:45 AM
    Hello,

    same error. Unfortunetaly, the link you provided is broken by now.
    Concerning oppenssl - well, uninstalling openssl certainly is not an option, is has dependencies to ... everything.

    ------------------------------
    Jan van Beers
    ------------------------------



  • 4.  RE: Re: repo-client error - YUM on AIX

    Posted Fri January 29, 2021 07:40 AM
    Edited by Ayappan P Fri January 29, 2021 07:40 AM
    I would recommend to uninstall openssl rpm forcefully and install openssl fileset from AIX web download pack programs.
    https://www-01.ibm.com/marketing/iwm/iwm/web/pickUrxNew.do?source=aixbp

    After openssl fileset installation, run "updtvpkg" command to update rpm database.

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



  • 5.  RE: Re: repo-client error - YUM on AIX

    Posted Fri January 29, 2021 08:01 AM
    Hello,

    no change.

    Greetings

    ------------------------------
    Jan van Beers
    ------------------------------



  • 6.  RE: Re: repo-client error - YUM on AIX

    Posted Fri January 29, 2021 08:11 AM
    Share the below outputs.
    rpm -qa 
    ls /opt/freeware/lib | egrep "crypto|ssl"

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



  • 7.  RE: Re: repo-client error - YUM on AIX

    Posted Mon February 01, 2021 01:52 AM
    root@LPM46AIX:/root # rpm -qa
    expect-5.42.1-3.ppc
    db-4.8.24-4.ppc
    pcre-8.35-1.ppc
    wget-1.16-1.ppc
    file-5.11-1.ppc
    neon-0.29.6-1.ppc
    subversion-1.8.0-1.ppc
    libiconv-1.14-2.ppc
    lzo-2.06-1.ppc
    dejavu-sans-mono-fonts-2.34-1.noarch
    libffi-3.0.13-1.ppc
    pango-1.24.5-1.ppc
    xz-libs-5.0.5-1.ppc
    gtk2-immodules-2.20.1-2.ppc
    libdbi-0.8.4-1.ppc
    perl-Crypt-SSLeay-0.57-2.ppc
    perl-XML-LibXML-2.0012-1.ppc
    perl-XML-SAX-Base-1.08-1.noarch
    lynx-2.8.3.rel1-1.ppc
    unzip-6.0-3.ppc
    info-5.2-1.ppc
    gmp-5.1.3-1.ppc
    readline-6.2-3.ppc
    apr-util-1.5.1-1.ppc
    krb5-libs-1.9.4-2.ppc
    serf-1.2.1-2.ppc
    atk-1.32.0-1.ppc
    libxcb-1.7-1.ppc
    dejavu-lgc-sans-mono-fonts-2.34-1.noarch
    jbigkit-libs-2.0-2.ppc
    gtk2-2.20.1-2.ppc
    libcroco-0.6.5-1.ppc
    perl-5.8.8-2.ppc
    perl-URI-1.58-1.noarch
    perl-XML-SAX-0.99-1.noarch
    rrdtool-perl-1.4.8-2.ppc
    cpio-2.11-2.ppc
    pysqlite-1.1.7-2.ppc
    python-iniparse-0.4-1.noarch
    curl-7.52.1-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    gettext-0.19.7-1.ppc
    tcl-8.6.10-1.ppc
    expat-2.2.9-1.ppc
    libstdc++-8.1.0-1.ppc
    python-2.7.13-1.ppc
    libXft-2.3.3-1.ppc
    tkinter-2.7.13-1.ppc
    python-docs-2.7.13-1.ppc
    python-pycurl-7.43.0-1.ppc
    python-crypto-2.6-1.ppc
    apr-1.4.6-1.ppc
    libidn-1.29-1.ppc
    lsof-4.84-1.ppc
    httpd-2.2.25-1.ppc
    openldap-devel-2.4.24-2.ppc
    gzip-1.2.4a-10.ppc
    lpar2rrd-agent-5.05-3.ppc
    cairo-1.12.14-1.ppc
    libthai-0.1.18-1.ppc
    libpng-1.6.9-1.ppc
    jasper-1.900.1-2.ppc
    libart_lgpl-2.3.21-1.ppc
    libxml2-2.9.1-1.ppc
    perl-TimeDate-1.20-1.noarch
    perl-XML-Parser-2.41-1.ppc
    rrdtool-1.4.8-2.ppc
    bzip2-1.0.6-2.ppc
    gdbm-1.10-1.ppc
    libdatrie-0.2.4-1.ppc
    zlib-1.2.5-6.ppc
    file-libs-5.11-1.ppc
    openldap-2.4.24-2.ppc
    subversion-tools-1.8.0-1.ppc
    pixman-0.28.2-1.ppc
    glib2-2.30.3-2.ppc
    libjpeg-9a-1.ppc
    libtiff-4.0.3-1.ppc
    jbigkit-2.0-2.ppc
    librsvg2-2.34.2-1.ppc
    perl-Net_SSLeay.pm-1.55-3.ppc
    perl-XML-NamespaceSupport-1.11-1.noarch
    perl-XML-Simple-2.18-1.noarch
    perl-Compress-Raw-Zlib-2.020-1.ppc
    bash-4.4-4.ppc
    sqlite-3.15.2-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    ca-certificates-2016.10.7-2.ppc
    yum-3.4.3-8.noarch
    libgcc-8.1.0-1.ppc
    freetype2-2.10.2-1.ppc
    fontconfig-2.12.6-2.ppc
    ncurses-6.1-1.ppc
    libXrender-0.9.10-1.ppc
    tk-8.6.10-1.ppc
    python-tools-2.7.13-1.ppc
    libssh2-1.8.2-1.ppc
    AIX-rpm-7.2.4.1-19.ppc
    root@LPM46AIX:/root # ls /opt/freeware/lib | egrep "crypto|ssl"
    libk5crypto.a
    libk5crypto.so
    libk5crypto.so.3.1
    libssl3.a
    libssl3.so
    root@LPM46AIX:/root #

    ------------------------------
    Jan van BeersJan van Beers
    ------------------------------



  • 8.  RE: Re: repo-client error - YUM on AIX

    Posted Mon February 01, 2021 06:18 AM
    Then your error is something else.
    Share your error here.

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



  • 9.  RE: Re: repo-client error - YUM on AIX

    Posted Mon February 01, 2021 10:33 AM
    Greetings.
    Yes, obviously, though the message given was exactly the same as the OP had. I did not keep it, unfortunetaly. Alas, this has been corrected now by removing and reinstalling phython. version 2.7.13-1. So probably, the original installation was somehow broken.

    THX.

    ------------------------------
    Jan van Beers
    ------------------------------