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.  yum update

    Posted Thu August 31, 2017 03:25 AM

    Originally posted by: AndreasPaulat


    After successful installation of yum with yum.sh the first yum update takes yum even to a not operating condition.

     

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


    root:/install/aix/rpm/yum# yum check
    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.12 (default, Feb 20 2017, 03:58:51) [C]

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

     

    What is wrong?

     

    Best regards,

    Andreas



  • 2.  Re: yum update

    Posted Fri September 01, 2017 11:21 AM

    Originally posted by: Timofey_D


    Hello Andreas,

     

    Is expat installed? If not install it and try again.

    Here's a link to AIX Toolbox build: ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/expat/

     



  • 3.  Re: yum update

    Posted Mon September 04, 2017 02:39 AM

    Originally posted by: AndreasPaulat


    I have installed the latest versio of expat.

    expat-2.2.0-1.ppc

     

    Thanks and regards,

    Andreas



  • 4.  Re: yum update

    Posted Mon September 04, 2017 01:23 AM

    Originally posted by: sanket


    Looks like the issue is due to older version of openssl on your system. 

    'yum update' updates the packages those are built with newer openssl and looks in your system you still have older openssl.

    Please update to latest openssl as the new RPMs are compiled with latest openssl of AIX. 

    You can find the latest openssl for AIX @ https://www-01.ibm.com/marketing/iwm/iwm/web/reg/pick.do?source=aixbp&lang=en_US

      

    Thanks 

    Sanket



  • 5.  Re: yum update

    Posted Mon September 04, 2017 02:40 AM

    Originally posted by: AndreasPaulat


    I have already installed openssl v1.0.2.1100.

     

    Thanks and regards,

    Andreas



  • 6.  Re: yum update

    Posted Mon September 04, 2017 03:55 AM

    Originally posted by: AyappanP


    I think you have installed openssl or/and curl rpms from other source. 

    From the error message, i see "/opt/freeware/lib/python2.7/site-packages/pycurl.so" is linking to "/opt/freeware/lib/libcrypto.a(libcrypto.so)". That is not going to be the case with AIX toolbox curl. It will link to /usr/lib/libcrypto.a

    Make sure python-pycurl rpm is from AIX toolbox and openssl filesets are installed properly. We won't provide rpms for openssl but one can download the filesets from AIX web download pack as mentioned by @sanket cbe53685-ee70-42e6-aed9-d174561da6e9 .​ And also make sure you ran "updtvpkg" command after installing the openssl filesets. 



  • 7.  Re: yum update

    Posted Mon September 04, 2017 04:52 AM

    Originally posted by: AndreasPaulat


    Sorry, but this wasn't the problem. I have installed curl, openssl, openldap and sudo from AIX Toolbox again. I had also to re-install sudo with an older version because of a dependency to openldap. the rpm package for openssl isn't available on https://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html, so I have used the version from http://www.perzl.org/aix/index.php?n=Main.Openssl.

     

    Then I have installed resp. updated the following packages from yum_bundle.tar with --force...

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

     

    ...and after them yum was working again.

    # yum check
    check all

     

    Then I have carried out a yum update again and I run in the same problem.

    # yum update
    AIX_Toolbox                                                                                                                             | 2.9 kB  00:00:00
    AIX_Toolbox_71                                                                                                                          | 2.9 kB  00:00:00
    AIX_Toolbox_noarch                                                                                                                      | 2.9 kB  00:00:00
    Setting up Update Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package curl.ppc 0:7.52.1-1 will be updated
    ---> Package curl.ppc 0:7.54.1-2 will be an update
    ---> Package glib2.ppc 0:2.14.6-2 will be updated
    ---> Package glib2.ppc 0:2.48.0-1 will be an update
    ---> Package openldap.ppc 0:2.4.40-1 will be updated
    ---> Package openldap.ppc 0:2.4.40-2 will be an update
    ---> Package python.ppc 0:2.7.10-1 will be updated
    ---> Package python.ppc 0:2.7.12-2 will be an update
    ---> Package python-devel.ppc 0:2.7.10-1 will be updated
    ---> Package python-devel.ppc 0:2.7.12-2 will be an update
    ---> Package python-tools.ppc 0:2.7.10-1 will be updated
    ---> Package python-tools.ppc 0:2.7.12-2 will be an update
    ---> Package sudo.ppc 0:1.8.15-2 will be updated
    ---> Package sudo.ppc 0:1.8.20p2-3 will be an update
    --> Finished Dependency Resolution

    Dependencies Resolved

    ===============================================================================================================================================================
     Package                                  Arch                            Version                                Repository                               Size
    ===============================================================================================================================================================
    Updating:
     curl                                     ppc                             7.54.1-2                               AIX_Toolbox                             534 k
     glib2                                    ppc                             2.48.0-1                               AIX_Toolbox                              16 M
     openldap                                 ppc                             2.4.40-2                               AIX_Toolbox                             4.4 M
     python                                   ppc                             2.7.12-2                               AIX_Toolbox                              20 M
     python-devel                             ppc                             2.7.12-2                               AIX_Toolbox                              11 k
     python-tools                             ppc                             2.7.12-2                               AIX_Toolbox                              12 k
     sudo                                     ppc                             1.8.20p2-3                             AIX_Toolbox                             1.0 M

    Transaction Summary
    ===============================================================================================================================================================
    Upgrade       7 Packages

    Total size: 41 M
    Total download size: 4.4 M
    Is this ok [y/N]: y
    Downloading Packages:
    openldap-2.4.40-2.aix6.1.ppc.rpm                                                                                                        | 4.4 MB  00:00:00
    Running Transaction Check
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Warning: RPMDB altered outside of yum.
      Updating   : python-2.7.12-2.ppc                                                                                                                        1/14
      Updating   : openldap-2.4.40-2.ppc                                                                                                                      2/14
    Group "ldap" does not exist.
      Updating   : sudo-1.8.20p2-3.ppc                                                                                                                        3/14
      Updating   : python-devel-2.7.12-2.ppc                                                                                                                  4/14
      Updating   : python-tools-2.7.12-2.ppc                                                                                                                  5/14
      Updating   : glib2-2.48.0-1.ppc                                                                                                                         6/14
      Updating   : curl-7.54.1-2.ppc                                                                                                                          7/14
      Cleanup    : sudo-1.8.15-2.ppc                                                                                                                          8/14
      Cleanup    : python-tools-2.7.10-1.ppc                                                                                                                  9/14
      Cleanup    : python-devel-2.7.10-1.ppc                                                                                                                 10/14
      Cleanup    : python-2.7.10-1.ppc                                                                                                                       11/14
      Cleanup    : openldap-2.4.40-1.ppc                                                                                                                     12/14
      Cleanup    : glib2-2.14.6-2.ppc                                                                                                                        13/14
      Cleanup    : curl-7.52.1-1.ppc                                                                                                                         14/14

    Updated:
      curl.ppc 0:7.54.1-2     glib2.ppc 0:2.48.0-1   openldap.ppc 0:2.4.40-2   python.ppc 0:2.7.12-2   python-devel.ppc 0:2.7.12-2   python-tools.ppc 0:2.7.12-2
      sudo.ppc 0:1.8.20p2-3

    Complete!

     

    Thanks and regards,

    Andreas

     



  • 8.  Re: yum update

    Posted Mon September 04, 2017 05:39 AM

    Originally posted by: AndreasPaulat


    I have after yum update, which is installing the following version of python...

    python-2.7.12-2.ppc
    python-tools-2.7.12-2.ppc

     

    ...only downgraded python to the following version...

    python-2.7.10-1.aix6.1.ppc.rpm
    python-tools-2.7.10-1.aix6.1.ppc.rpm

    ...and yum is working again.

     

    But on an other LPAR I have the following constallation of packages installed and yum is also working.

    ca-certificates-2016.10.7-2.ppc
    curl-7.54.1-2.ppc
    db-4.8.24-3.ppc
    gdbm-1.8.3-5.ppc
    gettext-0.19.8-1.ppc
    glib2-2.48.0-1.ppc
    pysqlite-1.1.7-2.ppc
    python-2.7.12-2.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.19.3-1.ppc
    python-tools-2.7.12-2.ppc
    python-urlgrabber-3.10.1-1.noarch
    readline-6.3-5.ppc
    sqlite-3.15.2-1.ppc
    yum-3.4.3-5.noarch
    yum-metadata-parser-1.1.4-2.ppc

     

    ...and yum wants to update nothing:

    # yum update
    AIX_Toolbox                                                                                                                             | 2.9 kB  00:00:00
    AIX_Toolbox/primary_db                                                                                                                  | 243 kB  00:00:00
    AIX_Toolbox_71                                                                                                                          | 2.9 kB  00:00:00
    AIX_Toolbox_noarch                                                                                                                      | 2.9 kB  00:00:00
    Setting up Update Process
    No Packages marked for Update

     

    What is wrong with yum update or with the packages at AIX Toolbox?

     

    Thanks and regards,

    Andreas



  • 9.  Re: yum update

    Posted Tue September 12, 2017 03:26 AM

    Originally posted by: AndreasPaulat


    I think the version 2.7.12-2 of python in the AIX Toolbox is not compatible for AIX. Please can you provide a python version in the AIX Toolbox which is valid for AIX?!

     

    Thanks and regards,

    Andreas



  • 10.  Re: yum update

    Posted Mon January 15, 2018 12:04 PM

    Originally posted by: sxa


    I hit this today and it was caused by an openssl RPM package on my system. Removing it (not really sure why or how it got there) made things work again.

    However, if @Ayappan is reading this it's worth pointing out that the libcurl.so on the toolbox appears to have /opt/freeware/lib at the start of it's embedded library search PATH:

     

    # dump -Hv /opt/freeware/lib/python2.7/site-packages/pycurl.so

    /opt/freeware/lib/python2.7/site-packages/pycurl.so:

                            ***Loader Section***
                          Loader Header Information
    VERSION#         #SYMtableENT     #RELOCent        LENidSTR
    0x00000001       0x0000007b       0x0000015c       0x00000083       

    #IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
    0x00000006       0x00001bf8       0x000008e3       0x00001c7b       


                            ***Import File Strings***
    INDEX  PATH                          BASE                MEMBER              
    0      /opt/freeware/lib:/usr/vac/lib:/usr/lib:/lib                                         
    1                                    libcurl.a           libcurl.so.4        
    2                                    libcrypto.a         libcrypto.so        
    3                                    libc.a              shr.o               
    4                                    librtl.a            shr.o               
    5                                    .                               

    # rpm -qf /opt/freeware/lib/python2.7/site-packages/pycurl.so
    python-pycurl-7.19.3-1.ppc
    # rpm -qi python-pycurl-7.19.3-1.ppc
    Name        : python-pycurl
    Version     : 7.19.3
    Release     : 1
    Architecture: ppc
    Install Date: Mon Jan 15 10:45:10 EST 2018
    Group       : Development/Languages
    Size        : 529412
    License     : LGPLv2+
    Signature   : (none)
    Source RPM  : python-pycurl-7.19.3-1.src.rpm
    Build Date  : Mon Jun 13 07:31:00 EDT 2016
    Build Host  : green52.in.ibm.com
    Relocations : (not relocatable)
    URL         : http://pycurl.sourceforge.net/
    Summary     : A Python interface to libcurl
    Description :
    PycURL is a Python interface to libcurl. PycURL can be used to fetch
    objects identified by a URL from a Python program, similar to the
    urllib Python module. PycURL is mature, very fast, and supports a lot
    of features.
    #


    Locating the offending openssl rpm and removing it resolves the problem (it's unclear where it actually came from on my machine, but removing it has so far not caused any problems as no other rpm is claiming to depend on it). After doing this yum works again:

     

    # rpm -qf /opt/freeware/lib/libssl.so
    openssl-1.0.1g-1.ppc
    # rpm -e openssl-1.0.1g-1.ppc
    #

     

    Perhaps we should have a check at the start of yum.sh and abort if /opt/freeware/lib/libcrypto.so is present?