Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  dnf udpate failed...

    Posted Thu July 07, 2022 10:24 PM
    Hi,
    dnf update failed with below errors..


    :/tmp # dnf update
    Traceback (most recent call last):
    File "/usr/bin/dnf", line 57, in <module>
    from dnf.cli import main
    File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 32, in <module>
    import dnf.base
    File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
    import libdnf.transaction
    File "/opt/freeware/lib/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
    from . import common_types
    File "/opt/freeware/lib/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
    from . import _common_types
    ImportError: Symbol resolution failed for /opt/freeware/libdnfdeps/libstdc++.a(libstdc++.so.6) because:
    Symbol __cxa_finalize (number 1) is not exported from dependent
    module /opt/freeware/lib/libgcc_s.a(shr.o).
    Symbol _GLOBAL__AIXI_shr_o (number 4) is not exported from dependent
    module /opt/freeware/lib/libgcc_s.a(shr.o).
    Symbol _GLOBAL__AIXD_shr_o (number 5) is not exported from dependent
    module /opt/freeware/lib/libgcc_s.a(shr.o).
    Symbol __cxa_atexit (number 19) is not exported from dependent
    module /opt/freeware/lib/libgcc_s.a(shr.o).
    Could not load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
    System error: Exec format error
    Examine .loader section symbols with the 'dump -Tv' command.


    :/tmp # LIBPATH=/opt/freeware/libdnfdeps:/opt/freeware/lib:usr/lib:/lib dnf update
    Last metadata expiration check: 0:02:19 ago on Thu Jul 7 19:18:58 2022.
    Error:
    Problem: cannot install both readline-8.1-1.ppc and readline-6.2-3.ppc
    - package gnupg-1.4.12-1.ppc requires libreadline.a(libreadline.so.5), but none of the providers can be installed
    - cannot install the best update candidate for package readline-6.2-3.ppc
    - problem with installed package gnupg-1.4.12-1.ppc
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

    :/tmp #
    :/tmp # rpm -qa |sort
    AIX-rpm-7.2.5.101-17.ppc
    a2ps-4.13-2.ppc
    bash-5.0-1.ppc
    binutils-2.14-3.ppc
    bzip2-1.0.6-1.ppc
    ca-certificates-2020.06.01-0.ppc
    coreutils-5.2.1-1.ppc
    cpio-2.5-1.ppc
    curl-7.26.0-1.ppc
    dnf-4.2.17-32_2.noarch
    dnf-automatic-4.2.17-32_2.noarch
    dnf-data-4.2.17-32_2.noarch
    expat-2.0.1-3.ppc
    gettext-0.17-1.ppc
    gettext-devel-0.17-1.ppc
    glib2-2.30.3-1.ppc
    gnupg-1.4.12-1.ppc
    gnutls-2.6.6-2.ppc
    indent-2.2.7-2.ppc
    info-4.13a-2.ppc
    intltool-0.27.2-1.ppc
    less-382-1.ppc
    lftp-4.2.3-1.ppc
    libcomps-0.1.11-32_1.ppc
    libdnf-0.39.1-32_2.ppc
    libffi-3.0.10-1.ppc
    libgcc-4.6.3-2.ppc
    libgcrypt-1.5.4-1.ppc
    libgpg-error-1.15-1.ppc
    libiconv-1.14-2.ppc
    libmodulemd-1.5.2-32_2.ppc
    librepo-1.11.0-32_1.ppc
    libsmartcols-2.34-32_1.ppc
    libsolv-0.7.9-32_1.ppc
    libssh2-1.4.2-1.ppc
    libssh2-docs-1.4.2-1.ppc
    libstdc++-4.2.3-2.ppc
    libtasn1-3.3-1.ppc
    libtiff-3.6.1-2.ppc
    libtiff-devel-3.6.1-2.ppc
    libxml2-2.6.8-2.ppc
    libxml2-devel-2.6.8-2.ppc
    libzstd-1.4.4-32_1.ppc
    lpar2rrd-agent-5.05-2.ppc
    lsof-4.61-3.ppc
    lynx-2.8.4-1ssl.ppc
    lzo-2.06-2.ppc
    make-3.80-1.ppc
    ncftp-3.1.1-3.ppc
    openldap-2.4.23-0.3.ppc
    p11-kit-0.23.16-0.ppc
    p11-kit-tools-0.23.16-0.ppc
    perl-5.8.2-1.ppc
    pkg-config-0.25-2.ppc
    python3-3.7.9-0.ppc
    python3-dnf-4.2.17-32_2.noarch
    python3-gpgme-1.13.1-32_1.ppc
    python3-hawkey-0.39.1-32_2.ppc
    python3-libcomps-0.1.11-32_1.ppc
    python3-libdnf-0.39.1-32_2.ppc
    python3-librepo-1.11.0-32_1.ppc
    rdist-6.1.5-2.ppc
    readline-6.2-3.ppc
    readline-devel-6.2-3.ppc
    rpm-python3-4.15.1-32_1.ppc
    rsync-2.6.2-1.ppc
    sed-4.1.1-1.ppc
    sudo-1.6.7p5-3.ppc
    swiagent-2020.2.6.20131-b5170e0.ppc
    tar-1.14-1.ppc
    tcl-8.3.3-8.ppc
    tk-8.3.3-8.ppc
    traceroute-1.4a12-2.ppc
    unzip-6.0-3.ppc
    vim-common-6.3-1.ppc
    vim-enhanced-6.3-1.ppc
    vnc-3.3.3r2-6.ppc
    wget-1.9.1-1ssl.ppc
    which-2.14-1.ppc
    ytalk-3.1.1-2.ppc
    zchunk-libs-1.1.4-32_1.ppc
    zip-2.3-3.ppc
    zlib-1.2.7-1.ppc
    zlib-devel-1.2.2-4.ppc
    /tmp #

    Thanks for your help.
    HD Team

    ------------------------------
    Harley AIX
    ------------------------------

    #AIXOpenSource


  • 2.  RE: dnf udpate failed...

    Posted Fri July 08, 2022 02:59 AM

    " package gnupg-1.4.12-1.ppc requires libreadline.a(libreadline.so.5), but none of the providers can be installed "

    AIX Toolbox readline doesn't provide libreadline.so.5. I am not sure what is the source of gnupg-1.4.12-1 (perhaps perzl ?) 
    " rpm -qi gnupg "

    One option here would be to replace gnupg with gnupg2 if that is acceptable. 



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



  • 3.  RE: dnf udpate failed...

    Posted Fri July 08, 2022 03:52 AM
    You are having older version of libgcc. Also probably it is not from AIX toolbox.

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



  • 4.  RE: dnf udpate failed...

    Posted Fri July 08, 2022 11:04 AM
    Hi, 

    / # rpm -qi libgcc-4.6.3-2.ppc
    Name : libgcc
    Version : 4.6.3
    Release : 2
    Architecture: ppc
    Install Date: Fri Jun 8 20:38:05 2018
    Group : Development/Libraries
    Size : 4075787
    License : GPL
    Signature : (none)
    Source RPM : libgcc-4.6.3-2.src.rpm
    Build Date : Fri Jun 8 20:32:43 2018
    Build Host : rcdapp2jdc
    URL : http://gcc.gnu.org/
    Summary : GCC version 4.6.3 shared support library
    Description :
    This package contains GCC shared support library which is needed
    e.g. for exception handling support.
    hdasdba01:/ # LIBPATH=/opt/freeware/libdnfdeps:/opt/freeware/lib:usr/lib:/lib dnf update
    Last metadata expiration check: 10:53:47 ago on Thu Jul 7 21:03:06 2022.
    Error:
    Problem: cannot install both readline-8.1-1.ppc and readline-6.2-3.ppc
    - package gnupg-1.4.12-1.ppc requires libreadline.a(libreadline.so.5), but none of the providers can be installed
    - cannot install the best update candidate for package readline-6.2-3.ppc
    - problem with installed package gnupg-1.4.12-1.ppc
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


    :/ # rpm -qi gnupg-1.4.12-1.ppc
    Name : gnupg
    Version : 1.4.12
    Release : 1
    Architecture: ppc
    Install Date: Fri Jun 8 20:37:30 2018
    Group : Productivity/Security
    Size : 5528229
    License : GPL
    Signature : (none)
    Source RPM : gnupg-1.4.12-1.src.rpm
    Build Date : Fri Jun 8 20:32:08 2018
    Build Host : rcdapp2jdc
    URL : http://www.gnupg.org
    Summary : A GNU utility for secure communication and data storage.
    Description :
    GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and
    creating digital signatures. GnuPG has advanced key management
    capabilities and is compliant with the proposed OpenPGP Internet
    standard described in RFC2440. Since GnuPG doesn't use any patented
    algorithm, it is not compatible with any version of PGP2 (PGP2.x uses
    only IDEA for symmetric-key encryption, which is patented worldwide).
    :/ #


    How to replace gnupg with gnupg2 ? 
    How to fix it.

    Thanks,
    HD Team


    ------------------------------
    Harley AIX
    ------------------------------