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 fails with pycurl error message

    Posted Tue March 10, 2020 09:16 AM

    Originally posted by: jldimock


    Installed "yum" on an AIX 7.2 without issue then wnet to run "yum update" and get this error message:

     

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

       pycurl: libcurl link-time version (7.52.1) is older than compile-time version (7.56.1)

    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.15 (default, Sep 19 2018, 13:47:10)
    [GCC 7.1.0]

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

    =============================

    # rpm -qa | grep curl
    curl-7.52.1-1.ppc
    python-pycurl-7.19.3-1.ppc
    ======================================

    Any ideas will be greatly appreciated.

    John

     



  • 2.  Re: yum update fails with pycurl error message

    Posted Tue March 10, 2020 10:50 AM

    Originally posted by: AyappanP


    Paste the output of below commands.

    curl --version 

    ls -l /opt/freeware/lib | grep curl

     



  • 3.  Re: yum update fails with pycurl error message

    Posted Tue March 10, 2020 12:02 PM

    Originally posted by: jldimock


     

    # curl --version

    curl 7.52.1 (powerpc-ibm-aix6.1.8.0) libcurl/7.52.1 OpenSSL/1.0.2o zlib/1.2.11

    Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp

    Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy

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

    # ls -l /opt/freeware/lib | grep curl

    -rwxr-xr-x 1 root system 838532 Jan 24 2017 libcurl.a

     

     

     

     



  • 4.  Re: yum update fails with pycurl error message

    Posted Tue March 10, 2020 12:10 PM

    Originally posted by: AyappanP


    Suggest you to reinstall curl & pycurl ( the same versions you already have ) 



  • 5.  Re: yum update fails with pycurl error message

    Posted Tue March 10, 2020 01:19 PM

    Originally posted by: jldimock


    # rpm -e curl-7.52.1-1.ppc
    error: Failed dependencies:
            curl >= 7.44.0 is needed by (installed) python-pycurl-7.19.3-1.ppc
            libcurl.a(libcurl.so.4) is needed by (installed) python-pycurl-7.19.3-1.ppc
    root@tcucad1044:/tmp/downloads/rpm
    # rpm -e curl-7.52.1-1.ppc --nodeps
    root@tcucad1044:/tmp/downloads/rpm
    # rpm -ivh curl-7.67.0-1.aix6.1.ppc.rpm
    error: Failed dependencies:
            liblber.a(liblber-2.4.so.2) is needed by curl-7.67.0-1.ppc
            libldap.a(libldap-2.4.so.2) is needed by curl-7.67.0-1.ppc
            libssh2 >= 1.8.0-3 is needed by curl-7.67.0-1.ppc
            libssh2.a(libssh2.so.1) is needed by curl-7.67.0-1.ppc
            openldap >= 2.4.45-1 is needed by curl-7.67.0-1.ppc
    root@tcucad1044:/tmp/downloads/rpm
    # rpm -Uvh curl-7.67.0-1.aix6.1.ppc.rpm
    error: Failed dependencies:
            liblber.a(liblber-2.4.so.2) is needed by curl-7.67.0-1.ppc
            libldap.a(libldap-2.4.so.2) is needed by curl-7.67.0-1.ppc
            libssh2 >= 1.8.0-3 is needed by curl-7.67.0-1.ppc
            libssh2.a(libssh2.so.1) is needed by curl-7.67.0-1.ppc
            openldap >= 2.4.45-1 is needed by curl-7.67.0-1.ppc
     



  • 6.  Re: yum update fails with pycurl error message

    Posted Tue March 10, 2020 01:25 PM

    Originally posted by: jldimock


    sudo is now broken.

     

    $sudo -i
    sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
    sudo: unable to load /opt/freeware/libexec/sudo/sudoers.so:     0509-022 Cannot load module /opt/freeware/l                                            ibexec/sudo/sudoers.so.
            0509-150   Dependent module libldap.a(libldap-2.4.so.2) could not be loaded.
            0509-022 Cannot load module libldap.a(libldap-2.4.so.2).
            0509-026 System error: A file or directory in the path name does not exist.
            0509-022 Cannot load module /opt/freeware/libexec/sudo/sudoers.so.
            0509-150   Dependent module /opt/freeware/libexec/sudo/sudoers.so could not be loaded.
    sudo: fatal error, unable to load plugins
     



  • 7.  Re: yum update fails with pycurl error message

    Posted Wed March 11, 2020 03:17 AM

    Originally posted by: AyappanP


    Share the output of "rpm -qa".

    You can better run the "yum.sh" script once again to bring yum back to the working state. 



  • 8.  Re: yum update fails with pycurl error message

    Posted Wed March 11, 2020 08:47 AM

    Originally posted by: jldimock


    Able to repair the yum script with your suggestions.  Get a warning message when I do a yum install - yum install bash-docs: (it did install successfully)

    Output of "rpm -qa" below this output of the 'yum install bash-doc'

    Warning: RPMDB altered outside of yum.
    ** Found 87 pre-existing rpmdb problem(s), 'yum check' output follows:
    gettext-devel-0.19.7-1.ppc has missing requires of gettext = ('0', '0.19.7', '1')
    libsmbclient-4.10.6-1.ppc has missing requires of libCHARSET3-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libMESSAGING-SEND-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libaddns-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libasn1-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libasn1util-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libauthkrb5-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libcli-cldap-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libcli-ldap-common-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libcli-ldap-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libcli-nbt-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libcli-smb-common-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libcliauth-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libclidns-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libcluster-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libcom_err-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libcommon-auth-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libdbwrap-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libdcerpc-binding.so
    libsmbclient-4.10.6-1.ppc has missing requires of libdcerpc-samba-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libevents-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libflag-mapping-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libgenrand-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libgensec-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libgse-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libgssapi-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libhcrypto-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libheimbase-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libhx509-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libinterfaces-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libiov-buf-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libkrb5-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libkrb5samba-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libldb.so
    libsmbclient-4.10.6-1.ppc has missing requires of libldbsamba-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of liblibcli-lsa3-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of liblibsmb-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libmessages-dgm-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libmessages-util-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libmsghdr-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libmsrpc3-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libndr-krb5pac.so
    libsmbclient-4.10.6-1.ppc has missing requires of libndr-nbt.so
    libsmbclient-4.10.6-1.ppc has missing requires of libndr-samba-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libndr-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libndr-standard.so
    libsmbclient-4.10.6-1.ppc has missing requires of libndr.so
    libsmbclient-4.10.6-1.ppc has missing requires of libnetif-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libreplace-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libroken-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba-cluster-support-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba-credentials.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba-debug-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba-errors.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba-hostconfig.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba-modules-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba-security-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba-sockets-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba-util.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamba3-util-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamdb-common-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsamdb.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsecrets3-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libserver-id-db-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libserver-role-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsmb-transport-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsmbconf.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsmbd-shim-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsocket-blocking-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libsys-rw-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libtalloc-report-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libtalloc.so
    libsmbclient-4.10.6-1.ppc has missing requires of libtdb-wrap-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libtdb.so
    libsmbclient-4.10.6-1.ppc has missing requires of libtevent-util.so
    libsmbclient-4.10.6-1.ppc has missing requires of libtevent.so
    libsmbclient-4.10.6-1.ppc has missing requires of libtime-basic-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libutil-cmdline-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libutil-reg-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libutil-setid-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libutil-tdb-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libwbclient.so
    libsmbclient-4.10.6-1.ppc has missing requires of libwinbind-client-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of libwind-samba4.so
    libsmbclient-4.10.6-1.ppc has missing requires of samba-common = ('0', '4.10.6', '1')
    libstdc++-9.1.0-1.ppc has missing requires of AIX-rpm < ('0', '6.2.0.0', None)
    python3-3.7.4-1.ppc has missing requires of ncurses >= ('0', '6.1', '2')
      Installing : bash-doc-4.3.30-1.ppc                                                                                           1/1

    Installed:
      bash-doc.ppc 0:4.3.30-1

    Complete!

    =================================================

    # rpm -qa
    vim-common-7.4-1.ppc
    bzip2-1.0.6-2.ppc
    gettext-devel-0.19.7-1.ppc
    python-2.7.10-1.ppc
    rsync-3.1.2-1.ppc
    unzip-6.0-3.ppc
    bash-4.4-4.ppc
    info-6.4-1.ppc
    libdbi-devel-0.8.4-1.ppc
    popt-1.16-3.ppc
    libffi-20170516-1.ppc
    gmp-6.1.1-1.ppc
    libmpc-1.0.3-2.ppc
    coreutils-8.25-1.ppc
    logrotate-3.8.3-1.ppc
    less-487-1.ppc
    libjpeg-9b-2.ppc
    libpng-1.6.27-2.ppc
    libtiff-4.0.6-2.ppc
    libgcrypt-1.8.3-1.ppc
    gettext-0.19.8-1.ppc
    nettle-3.2-5.ppc
    libidn-1.35-1.ppc
    apr-1.5.2-1.ppc
    openldap-2.4.46-1.ppc
    readline-8.0-1.ppc
    sqlite-3.28.0-1.ppc
    libstdc++-9.1.0-1.ppc
    httpd-2.4.39-1.ppc
    pkg-config-0.25-3.ppc
    expat-devel-2.2.6-1.ppc
    gdbm-devel-1.18.1-2.ppc
    python-paramiko-1.11.0-1.noarch
    python-iniparse-0.4-1.noarch
    python-tools-2.7.10-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    jansson-2.11-2.ppc
    libxml2-2.9.9-1.ppc
    emacs-26.1-1.ppc
    xz-libs-5.2.4-1.ppc
    python3-tkinter-3.7.4-1.ppc
    libsmbclient-4.10.6-1.ppc
    tcl-8.6.8-3.ppc
    metamail-2.7-2.ppc
    curl-7.67.0-1.ppc
    freetype2-2.8-1.ppc
    glib2-2.56.1-2.ppc
    AIX-rpm-7.2.3.15-16.ppc
    krb5-libs-1.16.1-3.ppc
    cups-libs-2.2.3-3.ppc
    perl-5.28.1-2.ppc
    bash-doc-4.3.30-1.ppc
    bzip2-devel-1.0.6-2.ppc
    vim-enhanced-7.4-1.ppc
    zip-3.0-2.ppc
    sudo-1.8.15-2.ppc
    libdbi-0.8.4-1.ppc
    gzip-1.8-1.ppc
    zlib-devel-1.2.8-1.ppc
    mpfr-3.1.4-1.ppc
    zlib-1.2.11-1.ppc
    libpaper-1.1.24-2.ppc
    jbigkit-libs-2.0-3.ppc
    libgpg-error-1.31-1.ppc
    gnutls-3.5.10-1.ppc
    libunistring-0.9.6-2.ppc
    libtasn1-4.10-1.ppc
    p11-kit-0.23.15-1.ppc
    cyrus-sasl-2.1.26-3.ppc
    ncurses-6.1-1.ppc
    readline-devel-8.0-1.ppc
    libtool-ltdl-2.4.6-2.ppc
    libgcc-9.1.0-1.ppc
    libiconv-1.16-2.ppc
    apr-util-1.5.4-1.ppc
    pcre-8.42-1.ppc
    expat-2.2.6-1.ppc
    gdbm-1.18.1-2.ppc
    gdbm-libs-1.18.1-2.ppc
    python-pycrypto-2.6.1-1.ppc
    ca-certificates-2016.10.7-2.ppc
    pysqlite-1.1.7-2.ppc
    python-pycurl-7.19.3-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    yum-3.4.3-7.noarch
    glib-1.2.10-2.ppc
    libssh2-1.8.2-1.ppc
    wget-1.20.3-1.ppc
    unixODBC-2.3.6-3.ppc
    dbus-1.12.10-1.ppc
    emacs-nox-26.1-1.ppc
    python3-3.7.4-1.ppc
    zsh-5.4.1-1.ppc
    tk-8.6.8-2.ppc
    python-devel-2.7.10-1.ppc
    expect-5.45.4-1.ppc
    elm-2.5.6-2.ppc
    fontconfig-2.11.95-4.ppc
    db-6.2.38-1.ppc
    krb5-pkinit-openssl-1.16.1-3.ppc
    cups-2.2.3-3.ppc
    libgcc7-7.2.0-1.ppc
    ======================================

     

    Thanks for your help