AIX Open Source

 View Only
Expand all | Collapse all

dnf update failed

  • 1.  dnf update failed

    Posted Thu May 19, 2022 12:33 AM
    Hi, 
    Tried to install dnf as we do not have yum installed in the server.
    DNF installed successfully but after that, dnf update shows 'dnf: not found'

    hdatwastst02:/tmp/dnf-20220517093932 # ./install_dnf.sh -d

    Installing rpm.rte at the latest version ...
    This may take several minutes depending on the number of rpms installed...
    +-----------------------------------------------------------------------------+
    Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    WARNINGS
    --------
    Problems described in this section are not likely to be the source of any
    immediate or serious failures, but further actions may be necessary or
    desired.

    Already Installed
    -----------------
    The number of selected filesets that are either already installed
    or effectively installed through superseding filesets is 1. See
    the summaries at the end of this installation for details.

    NOTE: Base level filesets may be reinstalled using the "Force"
    option (-F flag), or they may be removed, using the deinstall or
    "Remove Software Products" facility (-u flag), and then reinstalled.

    << End of Warning Section >>

    +-----------------------------------------------------------------------------+
    BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
    1 Selected to be installed, of which:
    1 Already installed (directly or via superseding filesets)
    ----
    0 Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name Level Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    rpm.rte 4.15.1.3 Already installed



    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.

    ca-certificates-2020.06.01-0 will be installed
    dnf-4.2.17-32_2 will be installed
    dnf-automatic-4.2.17-32_2 will be installed
    dnf-data-4.2.17-32_2 will be installed
    libcomps-0.1.11-32_1 will be installed
    libdnf-0.39.1-32_2 will be installed
    libmodulemd-1.5.2-32_2 will be installed
    librepo-1.11.0-32_1 will be installed
    libsmartcols-2.34-32_1 will be installed
    libsolv-0.7.9-32_1 will be installed
    libzstd-1.4.4-32_1 will be installed
    p11-kit-0.23.16-0 will be installed
    p11-kit-tools-0.23.16-0 will be installed
    python3-3.7.9-0 will be installed
    python3-dnf-4.2.17-32_2 will be installed
    python3-gpgme-1.13.1-32_1 will be installed
    python3-hawkey-0.39.1-32_2 will be installed
    python3-libcomps-0.1.11-32_1 will be installed
    python3-libdnf-0.39.1-32_2 will be installed
    python3-librepo-1.11.0-32_1 will be installed
    rpm-python3-4.15.1-32_1 will be installed
    zchunk-libs-1.1.4-32_1 will be installed

    Installing the packages...

    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python3-3.7.9-0 ################################# [ 5%]
    2:libzstd-1.4.4-32_1 ################################# [ 9%]
    3:libmodulemd-1.5.2-32_2 ################################# [ 14%]
    4:libsolv-0.7.9-32_1 ################################# [ 18%]
    5:libsmartcols-2.34-32_1 ################################# [ 23%]
    6:zchunk-libs-1.1.4-32_1 ################################# [ 27%]
    7:librepo-1.11.0-32_1 ################################# [ 32%]
    8:rpm-python3-4.15.1-32_1 ################################# [ 36%]
    9:libdnf-0.39.1-32_2 ################################# [ 41%]
    10:python3-libdnf-0.39.1-32_2 ################################# [ 45%]
    11:python3-hawkey-0.39.1-32_2 ################################# [ 50%]
    12:libcomps-0.1.11-32_1 ################################# [ 55%]
    13:python3-libcomps-0.1.11-32_1 ################################# [ 59%]
    14:python3-gpgme-1.13.1-32_1 ################################# [ 64%]
    15:p11-kit-0.23.16-0 ################################# [ 68%]
    16:p11-kit-tools-0.23.16-0 ################################# [ 73%]
    17:dnf-data-4.2.17-32_2 ################################# [ 77%]
    18:python3-dnf-4.2.17-32_2 ################################# [ 82%]
    19:dnf-4.2.17-32_2 ################################# [ 86%]
    20:dnf-automatic-4.2.17-32_2 ################################# [ 91%]
    21:ca-certificates-2020.06.01-0 ################################# [ 95%]
    22:python3-librepo-1.11.0-32_1 ################################# [100%]

    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.

    Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    RPM packages install files go under the path /opt.
    Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    to avoid any download and installation/update failures.

    hdatwastst02:/tmp/dnf-20220517093932 # dnf update
    ksh: dnf: not found
    hdatwastst02:/tmp/dnf-20220517093932 # ls -la
    total 687280
    drwxr-xr-x 2 aixmon prodsup 4096 May 18 15:06 .
    drwxrwxrwt 26 bin bin 28672 May 18 21:02 ..
    -rw-r----- 1 aixmon prodsup 952182 May 18 15:06 ca-certificates-2020.06.01-0.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 10981 May 18 15:06 dnf-4.2.17-32_2.aix7.1.noarch.rpm
    -rw------- 1 aixmon prodsup 12288 May 18 15:06 dnf-automatic-4.2.17-32_2.aix7.1.noarch.rpm
    -rw------- 1 aixmon prodsup 23516 May 18 15:06 dnf-data-4.2.17-32_2.aix7.1.noarch.rpm
    -rw-r--r-- 1 aixmon prodsup 175902720 May 18 15:06 dnf_bundle_aix_71_72.tar
    -rw-r--r-- 1 aixmon prodsup 218 May 18 15:06 extra_list
    -rwx------ 1 aixmon prodsup 11878 May 18 15:06 install_dnf.sh
    -rw------- 1 aixmon prodsup 1273338 May 18 15:06 libcomps-0.1.11-32_1.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 15810655 May 18 15:06 libdnf-0.39.1-32_2.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 3433754 May 18 15:06 libmodulemd-1.5.2-32_2.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 3650338 May 18 15:06 librepo-1.11.0-32_1.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 183412 May 18 15:06 libsmartcols-2.34-32_1.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 1533403 May 18 15:06 libsolv-0.7.9-32_1.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 469194 May 18 15:06 libzstd-1.4.4-32_1.aix7.1.ppc.rpm
    -rw-r----- 1 aixmon prodsup 1047702 May 18 15:06 p11-kit-0.23.16-0.aix7.1.ppc.rpm
    -rw-r----- 1 aixmon prodsup 39777 May 18 15:06 p11-kit-tools-0.23.16-0.aix7.1.ppc.rpm
    -rw-r----- 1 aixmon prodsup 43168080 May 18 15:06 python3-3.7.9-0.aix7.1.ppc.rpm
    -rw-r--r-- 1 aixmon prodsup 363137 May 18 15:06 python3-dateutil-2.8.0-1.aix6.1.noarch.rpm
    -rw-r----- 1 aixmon prodsup 237244 May 18 15:06 python3-devel-3.7.9-0.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 197205 May 18 15:06 python3-dnf-4.2.17-32_2.aix7.1.noarch.rpm
    -rw------- 1 aixmon prodsup 8546 May 18 15:06 python3-dnf-plugin-migrate-4.0.16-32_1.aix7.1.noarch.rpm
    -rw------- 1 aixmon prodsup 49763 May 18 15:06 python3-dnf-plugins-core-4.0.16-32_1.aix7.1.noarch.rpm
    -rw-r----- 1 aixmon prodsup 2993180 May 18 15:06 python3-docs-3.7.9-0.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 682308 May 18 15:06 python3-gpgme-1.13.1-32_1.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 3113865 May 18 15:06 python3-hawkey-0.39.1-32_2.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 1020925 May 18 15:06 python3-libcomps-0.1.11-32_1.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 22549836 May 18 15:06 python3-libdnf-0.39.1-32_2.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 2292962 May 18 15:06 python3-librepo-1.11.0-32_1.aix7.1.ppc.rpm
    -rw-r--r-- 1 aixmon prodsup 514483 May 18 15:06 python3-six-1.13.0-1.aix6.1.noarch.rpm
    -rw-r----- 1 aixmon prodsup 28383122 May 18 15:06 python3-test-3.7.9-0.aix7.1.ppc.rpm
    -rw-r----- 1 aixmon prodsup 12734 May 18 15:06 python3-tools-3.7.9-0.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 100168 May 18 15:06 rpm-python3-4.15.1-32_1.aix7.1.ppc.rpm
    -rw-r--r-- 1 aixmon prodsup 40620032 May 18 15:06 rpm.rte
    -rw------- 1 aixmon prodsup 8466 May 18 15:06 yum-4.2.17-32_2.aix7.1.noarch.rpm
    -rw------- 1 aixmon prodsup 552363 May 18 15:06 zchunk-1.1.4-32_1.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 19487 May 18 15:06 zchunk-devel-1.1.4-32_1.aix7.1.ppc.rpm
    -rw------- 1 aixmon prodsup 534328 May 18 15:06 zchunk-libs-1.1.4-32_1.aix7.1.ppc.rpm
    hdatwastst02:/tmp/dnf-20220517093932 # cd
    hdatwastst02:/root # dnf update
    ksh: dnf: not found

    hdatwastst02:/opt/freeware/bin # oslevel -s
    7200-05-03-2148

    HD aix taeam

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


  • 2.  RE: dnf update failed

    Posted Thu May 19, 2022 12:57 AM
    Did you add /opt/freeware/bin to your PATH?

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



  • 3.  RE: dnf update failed

    Posted Thu May 19, 2022 11:21 AM
    Hi ,
    I added it to path,

    hdatwastst02:/root # echo $PATH
    /usr/java14_64/bin:/oracle/X01/112_64/lib:/oracle/X01/112_64/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/local/bin:/usr/local/sysadmin/bin:/usr/local/sysadmin/perftools/nmon/NMON12:/opt/csm/bin:/usr/sbin:/usr/bin:/usr/local/bin:/opt/freeware/bin:/opt/LicenseUseManagement/bin:/usr/opt/ifor/ls/os/aix/bin

    hdatwastst02:/root # which python3
    /opt/freeware/bin/python3

    hdatwastst02:/opt/freeware/bin # dnf update
    Traceback (most recent call last):
    File "/opt/freeware/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/librepo.a(librepo.so.0).
    Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.2) could not be loaded.
    Member libcrypto.so.1.0.2 is not found in archive
    Could not load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
    Dependent module /opt/freeware/lib/librepo.a(librepo.so.0) could not be loaded.
    hdatwastst02:/opt/freeware/bin #

    still getting errors

    Thanks for your help.

    HD team


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



  • 4.  RE: dnf update failed

    Posted Thu May 19, 2022 12:48 PM
    Looks like you have openssl rpm installed. 
    openssl rpm is not provided by AIX neither by AIX toolbox.
    It is from some other different source. Please remove openssl rpm if you can and then try.

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



  • 5.  RE: dnf update failed

    Posted Thu May 19, 2022 12:54 PM
    Hi, 
    We have below installed..

    hdatwastst02:/opt/freeware/bin # lslpp -l |grep openssl*
    openssl.base 1.1.1.1200 COMMITTED Open Secure Socket Layer
    openssl.license 1.1.1.1200 COMMITTED Open Secure Socket License
    openssl.man.en_US 1.1.1.1200 COMMITTED Open Secure Socket Layer
    openssl.base 1.1.1.1200 COMMITTED Open Secure Socket Layer
    hdatwastst02:/opt/freeware/bin #
    hdatwastst02:/opt/freeware/bin #
    hdatwastst02:/opt/freeware/bin # rpm -qa openssl*
    openssl-1.0.0d-3.ppc
    hdatwastst02:/opt/freeware/bin #

    hdatwastst02:/opt/freeware/bin # oslevel -s
    7200-05-03-2148


    let me know what to do and if possible steps to do it and where to download require openssl if needed.

    Thanks,
    HD team

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



  • 6.  RE: dnf update failed

    Posted Thu May 19, 2022 01:13 PM
    You need to remove openssl rpm (openssl-1.0.0d-3.ppc).
    I am not sure for what reason you have installed this. Please check if you can remove this.
    Until openssl rpm is there AIX toolbox packages may not work. 


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



  • 7.  RE: dnf update failed

    Posted Thu May 19, 2022 01:27 PM
    Hi, 
    Is there any way to know which openssl is system using, the openssl-1.0.0d-3.ppc   or 
    openssl.base 1.1.1.1200  

    So that it will help to remove the un-use  openssl  from the system.

    Thanks,
    HD team

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



  • 8.  RE: dnf update failed

    Posted Thu May 19, 2022 04:44 PM
    1) openssl.base 1.1.1.1200  
    This is the IBM AIX file set. You should not remove this, since the Toolbox packages (and many other applications) depend on OpenSSL.

    2) openssl-1.0.0d-3.ppc
    This is not provided by IBM, either through AIX file sets or the AIX Toolbox.  This package can cause conflicts with AIX Toolbox applications.

    You should remove this, if possible.
    The following might provide useful information about dependencies:
    # rpm -e --test openssl-1.0.0d-3.ppc | grep needed | awk '{print $6}' | sort | uniq




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



  • 9.  RE: dnf update failed

    Posted Thu May 19, 2022 04:50 PM
    Hi,
    Here is the output..

    hdatwastst02:/opt/freeware/bin # rpm -e --test openssl-1.0.0d-3.ppc | grep needed | awk '{print $6}' | sort | uniq
    error: Failed dependencies:
    openssl >= 0.9.8 is needed by (installed) openldap-2.4.23-0.3.ppc
    openssl is needed by (installed) openssl-devel-0.9.7d-2.ppc
    openssl is needed by (installed) openssl-doc-0.9.7d-2.ppc
    hdatwastst02:/opt/freeware/bin #

    Thanks,
    HD Team

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



  • 10.  RE: dnf update failed

    Posted Thu May 19, 2022 08:45 PM
    You will need to make the decision that you can remove the package.
    I suspect the openldap is also from a non-AIX Toolbox source, so you will probably need to update that package.

    I would recommend that you install the latest openssl.base
    • Downloading and Installing or Upgrading OpenSSL and OpenSSH
      • https://www.ibm.com/support/pages/node/720655

    After you update openssl, run /usr/sbin/updtvpkg.
    Then DNF should know about the latest openssl files.
    Next, you can update the openldap package from the Toolbox.

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



  • 11.  RE: dnf update failed

    Posted Mon July 04, 2022 03:51 PM
    Hi, 
    Getting below error when run, updtvpkg..

    # updtvpkg
    Please wait...rpm_share: 0645-007 ATTENTION: whichfs() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: get_rpm_inst_root_list() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.
    warning: line 8: It's not recommended to have unversioned Obsoletes: Obsoletes: SysProvides
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GA7aea
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.GA7aeb
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.GA7aec
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Processing files: AIX-rpm-7.2.5.101-24.ppc
    Wrote: /opt/freeware/src/packages/SRPMS/AIX-rpm-7.2.5.101-24.src.rpm
    Wrote: /opt/freeware/src/packages/RPMS/ppc/AIX-rpm-7.2.5.101-24.aix7.2.ppc.rpm
    Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.GI7aed
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0

    Let me know how to fix it.
    Thanks,
    HD Team


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



  • 12.  RE: dnf update failed

    Posted Tue July 05, 2022 02:05 AM
    Hi,
    Any update?
    Thanks,
    HD Team

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



  • 13.  RE: dnf update failed

    Posted Tue July 05, 2022 02:20 AM
    You can ignore rpm_share errors. updtvpkg ran successfully.

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