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


#Servers
#Opensource
 View Only
  • 1.  DNF update broke DNF

    Posted 09/17/24 03:39 PM

    All,

    I installed DNF, installed python for the developers and then did a "dnf update" - after that when I run dnf I get:

    bash-5.2# ./dnf

    Traceback (most recent call last):

      File "/opt/freeware/bin/./dnf", line 57, in <module>

        from dnf.cli import main

      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 32, in <module>

        import dnf.base

      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>

        import libdnf.transaction

      File "/opt/freeware/lib/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>

        from . import common_types

      File "/opt/freeware/lib/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>

        from . import _common_types

    ImportError:    0509-130 Symbol resolution failed for /opt/freeware/lib/libgio-2.0.a(libgio-2.0.so.0) because:

            0509-136   Symbol recvmmsg (number 822) is not exported from

                       dependent module /usr/lib/libc.a(shr.o).

            0509-192 Examine .loader section symbols with the

                     'dump -Tv' command.

    Any ideas? 

    Thanks,

    Bruce



    ------------------------------
    Bruce Leggett
    ------------------------------

    #AIXOpenSource


  • 2.  RE: DNF update broke DNF

    Posted 09/18/24 06:34 AM

    What is the AIX level here ? 



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



  • 3.  RE: DNF update broke DNF

    Posted 09/18/24 10:07 AM

    I fixed this issue by downgrading DNF. I think the issue is that DNF doesn't check AIX level dependencies as part of its update process. Dnf update will move the software beyond what the OS can support.  

     

    Bruce A Leggett

    Senior Vice President, IT Operations

    Amscot Financial

    813-637-6283

     






  • 4.  RE: DNF update broke DNF

    Posted 09/19/24 08:15 AM

    We don't have TL level check for Toolbox packages. Can you share what is the AIX level in this case ? (oslevel -s) 



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



  • 5.  RE: DNF update broke DNF

    Posted 10/03/24 01:07 PM

    I have same issue I am looking for solution too.
    Myserver1[/opt/freeware/bin]# ./dnf repolist
    Traceback (most recent call last):
      File "/opt/freeware/bin/./dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError: Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module /opt/freeware/lib/pthread/libgcc_s.a(shr.o) could not be loaded.
            The module has an invalid magic number.

     oslevel -s
    7300-00-01-2148



    ------------------------------
    arun kumar nampally
    ------------------------------



  • 6.  RE: DNF update broke DNF

    Posted 10/03/24 01:09 PM

    Hello, Arun

    This looks like a different error message.



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



  • 7.  RE: DNF update broke DNF

    Posted 10/03/24 02:08 PM

    Ah ok. I got it.
    any solution available for this issue or should I post this in a new thread?



    ------------------------------
    arun kumar nampally
    ------------------------------



  • 8.  RE: DNF update broke DNF

    Posted 10/03/24 02:52 PM

    Yes, I would suggest a new thread

    Include:

    Did DNF work previously? If so, what actions triggered this failure? (An AIX update? a DNF update?)

    Output from:

    # rpm -qa

    #  dump -Hv -X32_64  /opt/freeware/lib/pthread/libgcc_s.a

    #  dump -Hv -X32_64  /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so



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



  • 9.  RE: DNF update broke DNF

    Posted 10/07/24 12:53 PM

    Hi Jan,
    I started a new thread on the issue that I have. I also provided the output of the dumps you asked. can you please look into it and advice.

    thanks in advance

    https://community.ibm.com/community/user/power/discussion/dnf-setup-errors?ReturnUrl=%2fcommunity%2fuser%2fpower%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3d10c1d831-47ee-4d92-a138-b03f7896f7c9



    ------------------------------
    arun kumar nampally
    ------------------------------