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
Expand all | Collapse all

dnf update failed with libpopt.a error

  • 1.  dnf update failed with libpopt.a error

    Posted Mon October 10, 2022 03:18 AM
    Hi, 
    Tried to update dnf and getting below error. Dnf install went okay with script.

    # 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: Could not load module /usr/opt/rpm/lib/libpopt.a(libpopt.so.0).
    Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
    Member libintl.so.8 is not found in archive
    Could not load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
    Dependent module /usr/opt/rpm/lib/libpopt.a(libpopt.so.0) could not be loaded.

    # rpm -qa |sort
    AIX-rpm-7.2.5.103-19.ppc
    atk-1.12.3-2.ppc
    bash-5.0-1.ppc
    ca-certificates-2020.06.01-0.ppc
    cairo-1.8.8-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-1.ppc
    fontconfig-2.4.2-1.ppc
    freetype2-2.3.9-1.ppc
    gettext-0.10.40-6.ppc
    glib2-2.12.4-2.ppc
    gtk2-2.10.6-4.ppc
    libcomps-0.1.11-32_1.ppc
    libdnf-0.39.1-32_2.ppc
    libiconv-1.14-1.ppc
    libjpeg-6b-6.ppc
    libmodulemd-1.5.2-32_2.ppc
    libpng-1.2.32-2.ppc
    librepo-1.11.0-32_1.ppc
    libsmartcols-2.34-32_1.ppc
    libsolv-0.7.9-32_1.ppc
    libstdc++-8-1.ppc
    libtiff-3.8.2-1.ppc
    libzstd-1.4.4-32_1.ppc
    p11-kit-0.23.16-0.ppc
    p11-kit-tools-0.23.16-0.ppc
    pango-1.14.5-4.ppc
    pixman-0.12.0-3.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
    rpm-python3-4.15.1-32_1.ppc
    rsync-3.0.6-1.ppc
    swiagent-2020.2.6.20131-b5170e0.ppc
    xcursor-1.1.7-3.ppc
    xft-2.1.6-5.ppc
    xrender-0.9.1-3.ppc
    zchunk-libs-1.1.4-32_1.ppc
    zlib-1.2.3-3.ppc


    # oslevel -s
    7200-05-04-2220

    # lslpp -f rpm.rte | grep libpopt
    /usr/opt/rpm/lib/libpopt.a

    # ls -l /usr/lib/libpopt.so
    /usr/lib/libpopt.so not found

    # sum /usr/lib/libpopt.so
    sum: Can't open /usr/lib/libpopt.so

    # dump -Tv /usr/lib/libpopt.so | grep popt
    dump: /usr/lib/libpopt.so: 0654-106 Cannot open the specified file.

    # echo $LIBPATH

    # ldd /usr/opt/rpm/lib/librpm.so
    /usr/opt/rpm/lib/librpm.so needs:
    /usr/opt/rpm/lib/librpmio.so
    /usr/opt/rpm/lib/libpopt.a(libpopt.so.0)
    /usr/opt/rpm/lib/libintl.a(libintl.so.8)
    /usr/opt/rpm/lib/liblua.a(liblua-5.3.so)
    /usr/opt/rpm/lib/libdb-4.8.a(libdb-4.8.so)
    /usr/lib/libpthread.a(shr_xpg5.o)
    /usr/lib/libc.a(shr.o)
    /usr/opt/rpm/lib/libnss3.a(libnss3.so)
    /usr/opt/rpm/lib/libbz2.a(libbz2.so.1)
    /usr/opt/rpm/lib/libz.a(libz.so.1)
    /usr/lib/libpthreads.a(shr_xpg5.o)
    /unix
    /usr/lib/libpthreads.a(shr_comm.o)
    /usr/lib/libcrypt.a(shr.o)
    /usr/opt/rpm/lib/libnspr4.so
    /usr/opt/rpm/lib/libnssutil3.so
    /usr/opt/rpm/lib/libplc4.so
    /usr/opt/rpm/lib/libplds4.so
    /usr/lib/libodm.a(shr.o)
    /usr/lib/libcfg.a(shr.o)

    # rpm -q --whatprovides /opt/freeware/lib/libintl.a
    gettext-0.10.40-6.ppc

    # rpm -q --whatprovides /usr/opt/rpm/lib/libpopt.a
    file /usr/opt/rpm/lib/libpopt.a is not owned by any package

    Let me know how to fix the issue.

    Thanks,



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


  • 2.  RE: dnf update failed with libpopt.a error

    Posted Mon October 10, 2022 07:22 AM
    The gettext version 0.10.40 is very old. It provides libintl.so.1 and not libintl.so.8. Update it and check.

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



  • 3.  RE: dnf update failed with libpopt.a error

    Posted Mon October 10, 2022 10:05 AM
    Tried to update it but got many dependency error.

    # rpm -U gettext-0.21-1.aix7.1.ppc.rpm
    error: Failed dependencies:
    glib2 >= 2.56.1 is needed by gettext-0.21-1.ppc
    libgcc >= 8.3.0 is needed by gettext-0.21-1.ppc
    libgomp >= 8.3.0 is needed by gettext-0.21-1.ppc
    libgomp.a(libgomp.so.1) is needed by gettext-0.21-1.ppc
    libiconv >= 1.16 is needed by gettext-0.21-1.ppc
    libncurses.a(libncurses.so.6) is needed by gettext-0.21-1.ppc
    libtextstyle = 0.21-1 is needed by gettext-0.21-1.ppc
    libtextstyle.a(libtextstyle.so.0) is needed by gettext-0.21-1.ppc
    libunistring >= 0.9.9-2 is needed by gettext-0.21-1.ppc
    libunistring.a(libunistring.so.2) is needed by gettext-0.21-1.ppc
    libxml2 >= 2.9.9 is needed by gettext-0.21-1.ppc
    ncurses >= 6.2 is needed by gettext-0.21-1.ppc

    dnf isntalled but dnf update not working. so not sure how to fix it.

    Thanks,


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



  • 4.  RE: dnf update failed with libpopt.a error

    Posted Tue October 11, 2022 09:58 AM
    Hi, 
    Below gettext is not from aix tools box. Should I remove it? How to install it after remove? Will it ask dependencies again if we remove and install the new gettext from aix tools box?

    # rpm -qi gettext-0.10.40-6.ppc
    Name : gettext
    Version : 0.10.40
    Release : 6
    Architecture: ppc
    Install Date: Fri Sep 18 13:39:33 2020
    Group : Gnome2/Tools
    Size : 2509359
    License : GPL/LGPL
    Signature : (none)
    Source RPM : gettext-0.10.40-6.src.rpm
    Build Date : Fri Dec 23 06:47:55 2005
    Build Host : fermi.frec.bull.fr
    URL : http://www.gnu.org/software/gettext/
    Summary : GNU libraries and utilities for producing multi-lingual messages.
    Description :
    The GNU gettext package provides a set of tools and documentation for
    producing multi-lingual messages in programs. Tools include a set of
    conventions about how programs should be written to support message
    catalogs, a directory and file naming organization for the message
    catalogs, a runtime library which supports the retrieval of translated
    messages, and stand-alone programs for handling the translatable and
    the already translated strings. Gettext provides an easy to use
    library and tools for creating, using, and modifying natural language
    catalogs and is a powerful and simple method for internationalizing
    programs.

    Please let me know. Also let me know if any other ways to fix this.

    Thanks,

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



  • 5.  RE: dnf update failed with libpopt.a error

    Posted Tue October 11, 2022 03:39 PM
    As you probably know, mixing non-Toolbox packages with AIX packages will cause problems.

    I re-created the dnf errors, by installing perzl gettext-0.10.40-6.aix5.1.ppc.rpm

    Perzl symlinks libintl.a in /usr/lib 
    /usr/lib/libintl.a -> ../../opt/freeware/lib/libintl.a

    AIX rpm.rte symlinks libpopt.a
    /usr/lib/libpopt.a -> /usr/opt/rpm/lib/libpopt.a

    Then I did the following to workaround:

    I needed to get perzl's out of my path.
    (I assume bull creates the same symlink)

    # unlink /usr/lib/libintl.a

    Then I needed to move their libintl.a since something still found this while loading...
    # mv /opt/freeware/lib/libintl.a /opt/freeware/lib/libintl.a.save

    Then, I used the /usr/lib LIBPATH first:
    # export LIBPATH=/usr/lib:$LIBPATH

    Then I could run dnf update




    ​​​

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 6.  RE: dnf update failed with libpopt.a error

    Posted Wed October 12, 2022 01:55 PM
    Hi, 
    I followed above steps, but now getting below error..

    # dnf update
    AIX generic repository 5.9 MB/s | 19 MB 00:03
    AIX noarch repository 358 kB/s | 1.8 MB 00:05
    AIX 7.2 specific repository 2.0 MB/s | 1.2 MB 00:00
    Last metadata expiration check: 0:00:01 ago on Wed Oct 12 12:13:52 2022.
    Error:
    Problem 1: package cairo-1.14.6-2waixX11.ppc requires libpng16.a(libpng16.so.16), but none of the providers can be installed
    - cannot install both libpng-1.6.21-1.ppc and libpng-2:1.2.32-2.ppc
    - cannot install both libpng-1.6.27-2.ppc and libpng-2:1.2.32-2.ppc
    - cannot install both libpng-1.6.27-3.ppc and libpng-2:1.2.32-2.ppc
    - cannot install both libpng-1.6.37-1.ppc and libpng-2:1.2.32-2.ppc
    - cannot install the best update candidate for package cairo-1.8.8-1.ppc
    - problem with installed package libpng-2:1.2.32-2.ppc
    Problem 2: package cairo-1.14.6-2waixX11.ppc requires libpng16.a(libpng16.so.16), but none of the providers can be installed
    - cannot install both libpng-1.6.21-1.ppc and libpng-2:1.2.32-2.ppc
    - cannot install both libpng-1.6.27-2.ppc and libpng-2:1.2.32-2.ppc
    - cannot install both libpng-1.6.27-3.ppc and libpng-2:1.2.32-2.ppc
    - cannot install both libpng-1.6.37-1.ppc and libpng-2:1.2.32-2.ppc
    - package gtk2-2.24.30-3waixX11.ppc requires cairo >= 1.14.6-2, but none of the providers can be installed
    - cannot install the best update candidate for package libpng-2:1.2.32-2.ppc
    - cannot install the best update candidate for package gtk2-2.10.6-4.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)

    Thanks,


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



  • 7.  RE: dnf update failed with libpopt.a error

    Posted Thu October 13, 2022 10:37 AM
    Hi,
    Trying to update gtk2 but getting below error

    # 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: Could not load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
    Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
    Could not load module libstdc++.a(libstdc++.so.6).
    System error: No such file or directory
    Could not load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
    Dependent module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so could not be loaded.


    # 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: Could not load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
    Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
    Could not load module libstdc++.a(libstdc++.so.6).
    System error: No such file or directory
    Could not load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
    Dependent module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so could not be loaded.

    Let me know how to fix.

    Thanks,

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