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

DNF repolist error

  • 1.  DNF repolist error

    Posted 05/14/26 01:04 AM

    I am getting below error.

    root@AIXHostname:/# /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.12/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.12/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.12/site-packages/libdnf/__init__.py", line 8, in <module>
        from . import error
      File "/opt/freeware/lib64/python3.12/site-packages/libdnf/error.py", line 10, in <module>
        from . import _error
    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/librepo.a(librepo.so.0).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.3) could not be loaded.
            0509-152   Member libcrypto.so.3 is not found in archive
    root@AIXHostname:/# /opt/freeware/bin/dnf update
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.12/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.12/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.12/site-packages/libdnf/__init__.py", line 8, in <module>
        from . import error
      File "/opt/freeware/lib64/python3.12/site-packages/libdnf/error.py", line 10, in <module>
        from . import _error
    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/librepo.a(librepo.so.0).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.3) could not be loaded.
            0509-152   Member libcrypto.so.3 is not found in archive
    root@AIXHostname:/# rpm -qa | grep openssl
    openssl-1.0.1g-1.ppc
    root@AIXHostname:/# rpm -e openssl-1.0.1g-1.ppc
    error: Failed dependencies:
            libcrypto.a(libcrypto.so.0.9.8) is needed by (installed) git-1.7.8.1-1.ppc
            libcrypto.a(libcrypto.so.0.9.8) is needed by (installed) libssh-0.5.2-1.ppc
            libcrypto.a(libcrypto.so.0.9.8) is needed by (installed) libssh2-1.3.0-1.ppc
            libcrypto.a(libcrypto.so.0.9.8) is needed by (installed) tcpdump-4.1.1-1.ppc
            libssl.a(libssl.so.0.9.8) is needed by (installed) git-1.7.8.1-1.ppc
            openssl >= 0.9.8 is needed by (installed) git-1.7.8.1-1.ppc
            openssl >= 0.9.8 is needed by (installed) libssh-0.5.2-1.ppc
            openssl >= 0.9.8 is needed by (installed) libssh2-1.3.0-1.ppc
            openssl >= 0.9.8 is needed by (installed) tcpdump-4.1.1-1.ppc
    root@AIXHostname:/#



    ------------------------------
    Shahir Ali FR
    ------------------------------


  • 2.  RE: DNF repolist error

    Posted 05/14/26 02:42 AM

    Hi Shahir,

    You system has  many third party packages.

    1. Remove the third-party OpenSSL package:
         rpm -e openssl-1.0.1g-1.ppc --nodeps
    2. Verify the system has base OpenSSL:
         lslpp -l | grep openssl
    3. Run this script to install the latest dnf:
        dnf_aixtoolbox.sh
         



    ------------------------------
    Lakshmi Surekha Kovvuri
    ------------------------------



  • 3.  RE: DNF repolist error

    Posted 05/14/26 06:12 AM
    Laxmi.

    Please check my post

    I have tried to remove openssl and getting error message.






  • 4.  RE: DNF repolist error

    Posted 05/15/26 12:30 AM
    You did not specify --nodeps
    Paul





  • 5.  RE: DNF repolist error

    Posted 05/15/26 03:20 AM

    root@Host:/# /opt/freeware/bin/dnf repolist --nodeps
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.12/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.12/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.12/site-packages/libdnf/__init__.py", line 8, in <module>
        from . import error
      File "/opt/freeware/lib64/python3.12/site-packages/libdnf/error.py", line 10, in <module>
        from . import _error
    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/librepo.a(librepo.so.0).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.3) could not be loaded.
            0509-152   Member libcrypto.so.3 is not found in archive
    root@Host:/#

    Hello  Team

    Can you try to fix this as soon as possible please?

    Thanks



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 6.  RE: DNF repolist error

    Posted 05/17/26 10:51 PM

    Any update on this please?

    I am using  ESD-Toolbox_for_Linux_Apps_Common_7.2-7.3_122025_LCD4107742,iso as the opensource team recommended. 



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 7.  RE: DNF repolist error

    Posted 05/19/26 02:56 AM

    Hi Shahir,

    1. Pls remove the third-party OpenSSL package with --nodeps option:
        rpm -e openssl-1.0.1g-1.ppc --nodeps

    2. Verify the system has base OpenSSL :
         lslpp -l | grep openssl

    3. There will be a local DNF installation script available in the path where the ISO image is mounted. Run the script from that location to install DNF locally on the system without internet access.
         Detailed steps on how to install, prerequisites, and post-installation instructions are available in the below IBM blog:
         Creating Local Repo with DNF and AIX Toolbox Media



    ------------------------------
    Lakshmi Surekha Kovvuri
    ------------------------------



  • 8.  RE: DNF repolist error

    Posted 06/02/26 02:26 AM

    Hi Team,

    Getting below error now.

    root@AIXHost003:/# /opt/freeware/bin/dnf repolist
    repo id                                                                                    repo name
    Local_AIX_Toolbox                                                                          Local AIX generic repository
    Local_AIX_Toolbox_73                                                                       Local AIX 7.3 specific repository
    Local_AIX_Toolbox_noarch                                                                   Local AIX noarch repository
    root@AIXHost003:/# /opt/freeware/bin/dnf update
    Local AIX generic repository                                                                                                                                   22 MB/s | 1.6 MB     00:00
    Local AIX noarch repository                                                                                                                                    25 MB/s | 859 kB     00:00
    Local AIX 7.3 specific repository                                                                                                                              17 MB/s | 323 kB     00:00
    Error:
     Problem 1: cannot install both ncurses-6.5-1.ppc from Local_AIX_Toolbox and ncurses-5.6-1.ppc from @System
      - package multitail-5.2.8-1.ppc from @System requires libncurses.a(libncurses.so.5), but none of the providers can be installed
      - package multitail-5.2.8-1.ppc from @System requires libpanel.a(libpanel.so.5), but none of the providers can be installed
      - cannot install the best update candidate for package ncurses-5.6-1.ppc
      - problem with installed package multitail-5.2.8-1.ppc
     Problem 2: cannot install both ncurses-6.5-1.ppc from Local_AIX_Toolbox and ncurses-5.6-1.ppc from @System
      - package gettext-0.21-2.ppc from Local_AIX_Toolbox requires libncurses.a(libncurses.so.6), but none of the providers can be installed
      - package gettext-0.21-2.ppc from Local_AIX_Toolbox requires ncurses >= 6.2, but none of the providers can be installed
      - package watch-3.2.8-1.ppc from @System requires libncurses.a(libncurses.so.5), but none of the providers can be installed
      - cannot install the best update candidate for package gettext-0.17-1.ppc
      - problem with installed package watch-3.2.8-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)
    root@AIXHost003:/#

    @Parth Patel @Lakshmi Priya Suri



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 9.  RE: DNF repolist error

    Posted 06/02/26 02:57 AM

    Hi Shahir,

    The update is failing because the installed packages multitail-5.2.8-1 and watch-3.2.8-1 depend on ncurses 5.x libraries, which is very old. DNF is attempting to upgrade to ncurses 6.5, which provides ncurses 6.x libraries, resulting in a dependency conflict.

    Could you please check whether multitail and watch are still required on this server? If they are not needed, kindly remove them and retry the update:

    1. rpm -e watch multitail

    2. /opt/freeware/bin/dnf update



    ------------------------------
    Lakshmi Surekha Kovvuri
    ------------------------------



  • 10.  RE: DNF repolist error

    Posted 06/04/26 01:35 AM

    Hi Lakshmi,

    I am getting below error now when I run dnf update

    Transaction Summary
    ==============================================================================================================================================================================================
    Install  44 Packages
    Upgrade  73 Packages

    Total size: 391 M
    Is this ok [y/N]:
    Operation aborted.
    root@Host003:/#



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 11.  RE: DNF repolist error

    Posted 06/04/26 06:36 AM

    Hi Shahir,

    From the output you shared, I can see that the dnf update operation was aborted at the prompt, so I don't see any actual error in the output provided.

    Could you please share the exact error or issue you're encountering when running dnf update?



    ------------------------------
    Lakshmi Surekha Kovvuri
    ------------------------------



  • 12.  RE: DNF repolist error

    Posted 06/11/26 01:51 AM

    Hi Lakhmi,

    Sorry my last post was not posted properly, see below for the error

     pcre2                ppc     10.45-2           Local_AIX_Toolbox         1.5 M
     perl                 ppc     1:5.38.5-1        Local_AIX_Toolbox          29 M
     pixman               ppc     0.42.2-1          Local_AIX_Toolbox         1.6 M
     xz-libs              ppc     5.8.1-1           Local_AIX_Toolbox         585 k

    Transaction Summary
    ================================================================================
    Install  44 Packages
    Upgrade  73 Packages

    Total size: 391 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Error: Transaction test error:
      file /opt/freeware/lib/libdb.a from install of db-1:5.3.28-1.ppc conflicts with file from package db4-4.7.25-2.ppc

    root@AIXHost003:/#

    Thank you.



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 13.  RE: DNF repolist error

    Posted 06/11/26 05:25 AM
    Hi Shahir,
     
    Could you please check whether db4 is still required on this server? If this is not needed, kindly remove it and retry the update:
    1. rpm -e db4
    2. /opt/freeware/bin/dnf update


    ------------------------------
    Lakshmi Surekha Kovvuri
    ------------------------------



  • 14.  RE: DNF repolist error

    Posted 06/11/26 11:30 PM

    Hi Lakshmi,

    Thank you.

    Kind regards

    Shahir



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 15.  RE: DNF repolist error

    Posted 06/18/26 01:25 AM

    Hi Lakshmi

     nettle                                             ppc                                3.10.1-1                                     Local_AIX_Toolbox                                   3.1 M
     npth                                               ppc                                1.5-1                                        Local_AIX_Toolbox                                   220 k
     pcre2                                              ppc                                10.45-2                                      Local_AIX_Toolbox                                   1.5 M
     xz-libs                                            ppc                                5.8.1-1                                      Local_AIX_Toolbox                                   585 k
    Removing dependent packages:
     watch                                              ppc                                3.2.8-1                                      @System                                              80 k

    Transaction Summary
    ==============================================================================================================================================================================================
    Install  28 Packages
    Upgrade  71 Packages
    Remove    1 Package

    Total size: 345 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Error: Transaction test error:
      file /opt/freeware/lib/libdb.a from install of db-1:5.3.28-1.ppc conflicts with file from package db4-4.7.25-2.ppc
      file /opt/freeware/bin/db_archive from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_archive_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_checkpoint from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_checkpoint_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_deadlock from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_deadlock_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_dump from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_dump_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_hotbackup from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_hotbackup_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_load from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_load_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_printlog from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_printlog_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_recover from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_recover_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_stat from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_stat_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_upgrade from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_upgrade_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_verify from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc
      file /opt/freeware/bin/db_verify_64 from install of db-1:5.3.28-1.ppc conflicts with file from package db4-utils-4.7.25-2.ppc

    root@Host:/>>



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 16.  RE: DNF repolist error

    Posted 06/18/26 10:35 AM
    Hi Shahir,
     
    Could you please check whether db4 and db4-utils is still required on this server? If this is not needed, kindly remove it and retry the update:
    1. rpm -e db4 db4-utils
    2. /opt/freeware/bin/dnf update


    ------------------------------
    Lakshmi Surekha Kovvuri
    ------------------------------



  • 17.  RE: DNF repolist error

    Posted 06/21/26 03:38 AM

    Hi Lakhsmi,

    These are needed please.

    Thank you



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 18.  RE: DNF repolist error

    Posted 06/22/26 05:00 AM

    Hi Shahir,

    The Toolbox package db and db4 installed on your system cannot coexist because they use the same file paths. To proceed with the DNF setup/update, you will need to remove the db4 and db4-utils packages first, and then rerun the DNF update.



    ------------------------------
    Lakshmi Surekha Kovvuri
    ------------------------------