Power

 View Only
  • 1.  DNF Update Failure

    Posted 09/21/22 11:12 AM
    This server in question is running AIX 7300-00-01-2148 and did not have any previous version of YUM installed on it.  The install_dnf.sh -d was used to install DNF successfully.

    After installing DNF on a server, we have encountered the following problem with trying to use dnf update.

    # /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.7/site-packages/dnf/__init__.py", line 30, 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/lib64/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
    from . import common_types
    File "/opt/freeware/lib64/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
    from . import _common_types
    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.1.0.2) could not be loaded.
    0509-152 Member libcrypto.so.1.0.2 is not found in archive
    0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/libdnf/_common_types.so.
    0509-150 Dependent module /opt/freeware/lib64/librepo.a(librepo.so.0) could not be loaded.
    #

    Anyone have any ideas on how to resolve this?

    Dave


    ------------------------------
    David Benvie
    ------------------------------


  • 2.  RE: DNF Update Failure

    Posted 09/22/22 12:56 PM
    Hi Dave,

    Where's libcrypto? Does the .a file exist? If so, use 'ar' to look inside the archive. Does so.1.0.2 exist?

    Maybe you just need to apply a fixpack to your AIX install?

    M.

    ------------------------------
    Mario Stargard
    ------------------------------



  • 3.  RE: DNF Update Failure

    Posted 09/28/22 10:06 AM
    Hi Mario:

    I looked at your suggestions and all the part are in place.  I then played a hunch.  The environment variable of LIBPATH wasn't set so I set it to LIBPATH=/usr/lib:/opt/freeware/lib:/opt/freeware/lib64:/opt/freeware/64/lib which is all the directories on the system that have libcrypto in them.  Then tried the dnf update command again.  Result below.

    # /opt/freeware/bin/dnf update
    AIX generic repository 0.0 B/s | 0 B 00:00
    Errors during downloading metadata for repository 'AIX_Toolbox':
    - Curl error (7): Couldn't connect to server for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml [Failed to connect to public.dhe.ibm.com port 443: A remote host refused an attempted connect operation.]
    Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    AIX noarch repository 0.0 B/s | 0 B 00:00
    Errors during downloading metadata for repository 'AIX_Toolbox_noarch':
    - Curl error (7): Couldn't connect to server for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml [Failed to connect to public.dhe.ibm.com port 443: A remote host refused an attempted connect operation.]
    Error: Failed to download metadata for repo 'AIX_Toolbox_noarch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    AIX 7.3 specific repository 0.0 B/s | 0 B 00:00
    Errors during downloading metadata for repository 'AIX_Toolbox_73':
    - Curl error (7): Couldn't connect to server for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.3/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.3/repodata/repomd.xml [Failed to connect to public.dhe.ibm.com port 443: A remote host refused an attempted connect operation.]
    Error: Failed to download metadata for repo 'AIX_Toolbox_73': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    Ignoring repositories: AIX_Toolbox, AIX_Toolbox_noarch, AIX_Toolbox_73
    Dependencies resolved.
    Nothing to do.
    Complete!
    #

    Setting the LIBPATH worked.  Now sadly I believe I have to get our firewall gang to allow this traffic.  Nothing is easy.  However, a big thanks for getting my memory molecules in order.

    Dave Benvie


    ​​

    ------------------------------
    David Benvie
    ------------------------------