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

Getting error during dnf update

  • 1.  Getting error during dnf update

    Posted Mon November 20, 2023 06:59 AM

    Hello Team,

    I am getting error when trying to update python3 with dnf. Error is given below. Do anyone have any thoughts or suggestions on this?

    Let me know in case you need any logs from the servers.

     /opt/freeware/bin/dnf update python3 -y
    Last metadata expiration check: 0:08:13 ago on Mon Nov 20 06:44:05 EST 2023.
    Error:
     Problem: problem with installed package python3-dnf-4.2.17-32_3.noarch
      - package python3-dnf-4.2.17-32_3.noarch requires /opt/freeware/bin/python3_32, but none of the providers can be installed
      - package python3-dnf-4.2.17-32_50.ppc requires /opt/freeware/bin/python3_32, but none of the providers can be installed
      - package python3.7-3.7.16-1.ppc obsoletes python3 < 3.7.16 provided by python3-3.7.15-2.ppc
      - package python3.7-3.7.16-1.ppc obsoletes python3 < 3.7.16 provided by python3-3.7.11-1.ppc
      - package python3.7-3.7.16-1.ppc obsoletes python3 < 3.7.16 provided by python3-3.7.12-1.ppc
      - package python3.7-3.7.16-1.ppc obsoletes python3 < 3.7.16 provided by python3-3.7.15-1.ppc
      - cannot install the best update candidate for package python3-3.7.15-2.ppc
      - cannot install both python3-3.9.18-1.ppc and python3-3.7.15-2.ppc
      - cannot install both python3-3.9.18-1.ppc and python3-3.7.11-1.ppc
      - cannot install both python3-3.9.18-1.ppc and python3-3.7.12-1.ppc
      - cannot install both python3-3.9.18-1.ppc and python3-3.7.15-1.ppc
      - package python3-dnf-4.2.17-32_51.ppc requires python3.9-dnf = 4.2.17-32_51, but none of the providers can be installed
      - package python3.9-dnf-4.2.17-32_51.ppc requires rpm-python3.9 >= 4.15.1-32_2, but none of the providers can be installed
      - nothing provides librpm.a(librpm.so.9) needed by rpm-python3.9-4.15.1-32_2.ppc
      - nothing provides librpmio.a(librpmio.so.9) needed by rpm-python3.9-4.15.1-32_2.ppc
      - nothing provides librpmbuild.a(librpmbuild.so.9) needed by rpm-python3.9-4.15.1-32_2.ppc
      - nothing provides librpmsign.a(librpmsign.so.9) needed by rpm-python3.9-4.15.1-32_2.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@dsmmna71img:/# rpm -qa|grep -i python3
    python3-gpg-1.13.1-32_2.ppc
    python3-librepo-1.11.0-32_1.ppc
    python3-3.7.15-2.ppc
    rpm-python3-4.15.1-32_1.ppc
    python3-libdnf-0.39.1-32_2.ppc
    python3-hawkey-0.39.1-32_2.ppc
    python3-libcomps-0.1.11-32_1.ppc
    python3-dnf-4.2.17-32_3.noarch



    ------------------------------
    Manoj Kumar
    ------------------------------


  • 2.  RE: Getting error during dnf update

    Posted Tue November 21, 2023 09:22 AM

    What is your oslevel -s

    and lslpp -l rpm.rte?



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



  • 3.  RE: Getting error during dnf update

    Posted Tue November 21, 2023 10:13 AM

    Hello Jan,

    Please find the output below. We are getting this error only on few servers. Most of them are upgraded to latest python version.

    root@:/# oslevel -s
    7200-05-06-2320
    root@:/# lslpp -l rpm.rte
      Fileset                      Level  State      Description
      ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
      rpm.rte                4.15.1.1007  COMMITTED  RPM Package Manager
     
    Path: /etc/objrepos
      rpm.rte                4.15.1.1007  COMMITTED  RPM Package Manager



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 4.  RE: Getting error during dnf update

    Posted Wed November 22, 2023 07:54 AM

    I recommend that you do a "dnf update" first.

    Based on your other post, you might have some packages that are out-of-sync

    https://community.ibm.com/community/user/power/discussion/getting-dump-tv-error-when-trying-to-update-python3-with-dnf?ReplyInline=e68ddc12-8fd5-464a-bfdb-d1c69d42d72e



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



  • 5.  RE: Getting error during dnf update

    Posted Wed November 22, 2023 12:07 PM
    Edited by Andres Cordoba Wed November 22, 2023 12:07 PM

    Hi Manoj,

    we got the same errors and the only solution we found was to remove dnf and python, then reinstall dnf via dnf_aixtoolbox.sh.

    Afterwards dnf update ran clean.

    rpm -e dnf-data libdnf dnf python3-dnf-plugin-migrate python3-libdnf python3-dnf python3-dnf-plugins-core dnf-automatic python3-hawkey zchunk-libs python3-librepo librepo libsolv python3-libcomps python3-six python3-gpg rpm-python3 python3-dateutil python3 libgcrypt gnupg2 libksba gpgme p11-kit p11-kit-tools gnutls ca-certificates curl libzstd libsmartcols libmodulemd libcomps

    ------------------------------
    Andres Cordoba
    Unix Specialist
    Dia Corporate
    Madrid
    +34 676934659
    ------------------------------



  • 6.  RE: Getting error during dnf update

    Posted Wed November 22, 2023 12:55 PM

    Hi Andres - did you try to run the dnf install script before you did the uninstall?   I'm curious because I have recommended this to a few customers that had not updated DNF before they updated AIX TL.  It seems to fix their issues (the issue being their old python 3.7 had failures due to some missing libraries since newer rpm.rte has removed  nss, nspr and db)



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



  • 7.  RE: Getting error during dnf update

    Posted Wed November 22, 2023 01:17 PM

    Hi Jan,


    it didn't work. We are already at 7200-05-06-2320, and found problems trying to update open source packages from the toolbox.

    I tried right now on another system in order to copy here the results:

    estsm2a@root:/>/mnt/dnf/dnf_aixtoolbox.sh -d
    Attempting download of dnf_bundle_aix_71_72.tar ...
    Saving to 'dnf_bundle_aix_71_72.tar'...
    208 MB received in 3 seconds (69.5 MB/sec)

    Extracting dnf_bundle_aix_71_72.tar ...
    x ca-certificates-2023.2.60-0.aix7.1.ppc.rpm, 991206 bytes, 1936 tape blocks
    x dnf-4.2.17-32_4.aix7.1.noarch.rpm, 11135 bytes, 22 tape blocks
    x dnf-automatic-4.2.17-32_4.aix7.1.noarch.rpm, 12450 bytes, 25 tape blocks
    x dnf-data-4.2.17-32_4.aix7.1.noarch.rpm, 23693 bytes, 47 tape blocks
    x extra_list, 384 bytes, 1 tape blocks
    x install_dnf.sh, 13552 bytes, 27 tape blocks
    x libcomps-0.1.15-32_1.aix7.1.ppc.rpm, 1273688 bytes, 2488 tape blocks
    x libdnf-0.39.1-32_3.aix7.1.ppc.rpm, 15816971 bytes, 30893 tape blocks
    x libmodulemd-1.5.2-32_2.aix7.1.ppc.rpm, 3433754 bytes, 6707 tape blocks
    x librepo-1.11.0-32_2.aix7.1.ppc.rpm, 3653390 bytes, 7136 tape blocks
    x libsmartcols-2.34-32_1.aix7.1.ppc.rpm, 183412 bytes, 359 tape blocks
    x libsolv-0.7.9-32_3.aix7.1.ppc.rpm, 1533540 bytes, 2996 tape blocks
    x libzstd-1.4.4-32_1.aix7.1.ppc.rpm, 469194 bytes, 917 tape blocks
    x p11-kit-0.23.22-0.aix7.1.ppc.rpm, 2148539 bytes, 4197 tape blocks
    x p11-kit-tools-0.23.22-0.aix7.1.ppc.rpm, 274086 bytes, 536 tape blocks
    x python3-3.9.16-0.aix7.1.ppc.rpm, 8920 bytes, 18 tape blocks
    x python3-dateutil-2.8.0-2.aix7.1.noarch.rpm, 6128 bytes, 12 tape blocks
    x python3-devel-3.9.16-0.aix7.1.ppc.rpm, 7699 bytes, 16 tape blocks
    x python3-dnf-4.2.17-32_4.aix7.1.noarch.rpm, 7598 bytes, 15 tape blocks
    x python3-dnf-plugin-migrate-4.0.16-32_2.aix7.1.noarch.rpm, 6568 bytes, 13 tape blocks
    x python3-dnf-plugins-core-4.0.16-32_2.aix7.1.noarch.rpm, 6776 bytes, 14 tape blocks
    x python3-gpg-1.13.1-32_3.aix7.1.ppc.rpm, 7040 bytes, 14 tape blocks
    x python3-hawkey-0.39.1-32_3.aix7.1.ppc.rpm, 23264 bytes, 46 tape blocks
    x python3-idle-3.9.16-0.aix7.1.ppc.rpm, 7283 bytes, 15 tape blocks
    x python3-libcomps-0.1.15-32_1.aix7.1.ppc.rpm, 13360 bytes, 27 tape blocks
    x python3-libdnf-0.39.1-32_3.aix7.1.ppc.rpm, 23264 bytes, 46 tape blocks
    x python3-librepo-1.11.0-32_2.aix7.1.ppc.rpm, 12860 bytes, 26 tape blocks
    x python3-six-1.13.0-2.aix7.1.noarch.rpm, 5820 bytes, 12 tape blocks
    x python3-test-3.9.16-0.aix7.1.ppc.rpm, 6228 bytes, 13 tape blocks
    x python3-tkinter-3.9.16-0.aix7.1.ppc.rpm, 6120 bytes, 12 tape blocks
    x python3.9-3.9.16-0.aix7.1.ppc.rpm, 56782290 bytes, 110903 tape blocks
    x python3.9-dateutil-2.8.0-2.aix7.1.noarch.rpm, 310485 bytes, 607 tape blocks
    x python3.9-devel-3.9.16-0.aix7.1.ppc.rpm, 19947643 bytes, 38961 tape blocks
    x python3.9-dnf-4.2.17-32_4.aix7.1.noarch.rpm, 196779 bytes, 385 tape blocks
    x python3.9-dnf-plugin-migrate-4.0.16-32_2.aix7.1.noarch.rpm, 8242 bytes, 17 tape blocks
    x python3.9-dnf-plugins-core-4.0.16-32_2.aix7.1.noarch.rpm, 33639 bytes, 66 tape blocks
    x python3.9-gpg-1.13.1-32_3.aix7.1.ppc.rpm, 1192531 bytes, 2330 tape blocks
    x python3.9-hawkey-0.39.1-32_3.aix7.1.ppc.rpm, 3116653 bytes, 6088 tape blocks
    x python3.9-idle-3.9.16-0.aix7.1.ppc.rpm, 2328852 bytes, 4549 tape blocks
    x python3.9-libcomps-0.1.15-32_1.aix7.1.ppc.rpm, 1049812 bytes, 2051 tape blocks
    x python3.9-libdnf-0.39.1-32_3.aix7.1.ppc.rpm, 22550948 bytes, 44045 tape blocks
    x python3.9-librepo-1.11.0-32_2.aix7.1.ppc.rpm, 2293000 bytes, 4479 tape blocks
    x python3.9-six-1.13.0-2.aix7.1.noarch.rpm, 45630 bytes, 90 tape blocks
    x python3.9-test-3.9.16-0.aix7.1.ppc.rpm, 33159212 bytes, 64765 tape blocks
    x python3.9-tkinter-3.9.16-0.aix7.1.ppc.rpm, 1162787 bytes, 2272 tape blocks
    x rpm-python3-4.15.1-32_2.aix7.1.ppc.rpm, 9496 bytes, 19 tape blocks
    x rpm-python3.9-4.15.1-32_2.aix7.1.ppc.rpm, 98982 bytes, 194 tape blocks
    x rpm.rte, 43051008 bytes, 84084 tape blocks
    x yum-4.2.17-32_4.aix7.1.noarch.rpm, 8634 bytes, 17 tape blocks
    x zchunk-1.1.4-32_2.aix7.1.ppc.rpm, 554294 bytes, 1083 tape blocks
    x zchunk-devel-1.1.4-32_2.aix7.1.ppc.rpm, 19256 bytes, 38 tape blocks
    x zchunk-libs-1.1.4-32_2.aix7.1.ppc.rpm, 534032 bytes, 1044 tape blocks

    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...

    SUCCESSES
    ---------
      Filesets listed in this section passed pre-installation verification
      and will be installed.

      Selected Filesets
      -----------------
      rpm.rte 4.15.1.1011                         # RPM Package Manager

      << End of Success Section >>

    +-----------------------------------------------------------------------------+
                       BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
        1  Selected to be installed, of which:
            1  Passed pre-installation verification
      ----
        1  Total to be installed

    +-----------------------------------------------------------------------------+
                             Installing Software...
    +-----------------------------------------------------------------------------+

    installp: APPLYING software for:
            rpm.rte 4.15.1.1011

    Checking if rpm package is already owning
      some of the libraries and binaries..

    . . . . . << Copyright notice for rpm.rte >> . . . . . . .
     Licensed Materials - Property of IBM

     5765H4000
       Copyright International Business Machines Corp. 2014, 2020-2023.
       Copyright "Cowboy" Ben Alman, 2010.
       Copyright Steven Benner (http://stevenbenner.com/), 2013.
       Copyright The Regents of the University of California, 1990, 1993, 1994.
       Copyright Ralf Corsepius <corsepiu@fedoraproject.org>, 2007.
       Copyright Vasil Dinkov, Vadikom Web Ltd., 2016.
       Copyright The Dojo Foundation, 2011.
       Copyright Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995-1997, 2000-2006.
       Copyright Tom Dyas <tdyas@eden.rutgers.edu>, 1998.
       Copyright W. L. Estes <wlestes@uncg.edu>, 1998.
       Copyright Free Software Foundation, Inc., 1989, 1991-2018.
       Copyright Dave Furfero, 2011-2014.
       Copyright Neal Gompa <ngompa13@gmail.com>, 2015.
       Copyright Dimitri van Heesch, 1997-2017.
       Copyright The Internet Society (1998).
       Copyright Per Oeyvind Karlsen <proyvind@moondrake.org>, 2010.
       Copyright Dmitry V. Levin <ldv@altlinux.org>, 2019.
       Copyright Dan Nicholson <dbn.lists@gmail.com>, 2012-2015.
       Copyright Red Hat, Inc., 1998-2003, 2005, 2007, 2009-2011, 2016-2017.
       Copyright Red Hat Software, 1995-2002.
       Copyright Scott James Remnant <scott@netsplit.com>, 2004.
       Copyright John Resig, 2011.
       Copyright Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>, 2004.
       Copyright System Design and Research, 2003.
       Copyright Julian Seward et al., 2002-2015.
       Copyright Mark J. Wielaard <mark@klomp.org>, 2016, 2019.
       Copyright X Consortium, 1994.

     All rights reserved.
     US Government Users Restricted Rights - Use, duplication or disclosure
     restricted by GSA ADP Schedule Contract with IBM Corp.
    . . . . . << End of copyright notice for rpm.rte >>. . . .

    ##################################################################
      This version of rpm installs files under the path /usr/opt/rpm.
      More detailed information on new changes can be found in
      /usr/opt/rpm/README file.
    ##################################################################

    Please wait...
    Successfully updated the Kernel Authorization Table.
    Successfully updated the Kernel Role Table.
    Successfully updated the Kernel Command Table.
    Successfully updated the Kernel Device Table.
    Successfully updated the Kernel Object Domain Table.
    Successfully updated the Kernel  Domains Table.
    Successfully updated the Kernel RBAC log level.
    Successfully updated the Kernel Authorization Table.
    Successfully updated the Kernel Role Table.
    Successfully updated the Kernel Command Table.
    Successfully updated the Kernel Device Table.
    Successfully updated the Kernel Object Domain Table.
    Successfully updated the Kernel  Domains Table.
    Successfully updated the Kernel RBAC log level.
    Finished processing all filesets.  (Total time:  23 secs).

    +-----------------------------------------------------------------------------+
                                    Summaries:
    +-----------------------------------------------------------------------------+

    Installation Summary
    --------------------
    Name                        Level           Part        Event       Result
    -------------------------------------------------------------------------------
    rpm.rte                     4.15.1.1011     USR         APPLY       SUCCESS
    rpm.rte                     4.15.1.1011     ROOT        APPLY       SUCCESS


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

    ca-certificates-2021.2.52-3.ppc will be updated to ca-certificates-2023.2.60-0
    Skipping dnf-4.2.17-32_4 as higher version dnf-4.2.17-32_50.ppc is installed.
    Skipping dnf-automatic-4.2.17-32_4 as higher version dnf-automatic-4.2.17-32_50.ppc is installed.
    Skipping dnf-data-4.2.17-32_4 as higher version dnf-data-4.2.17-32_50.ppc is installed.
    libcomps-0.1.11-101.ppc will be updated to libcomps-0.1.15-32_1
    Skipping libdnf-0.39.1-32_3 as higher version libdnf-0.39.1-32_51.ppc is installed.
    Skipping libmodulemd-1.5.2-32_2 as higher version libmodulemd-1.5.2-100.ppc is installed.
    Skipping librepo-1.11.0-32_2 as higher version librepo-1.11.0-101.ppc is installed.
    Skipping libsmartcols-2.34-32_1 as higher version libsmartcols-2.34-100.ppc is installed.
    Skipping libsolv-0.7.9-32_3 as higher version libsolv-0.7.9-32_51.ppc is installed.
    Skipping libzstd-1.4.4-32_1 as higher version libzstd-1.5.2-1.ppc is installed.
    Skipping p11-kit-0.23.22-0 as higher version p11-kit-0.23.22-1.ppc is installed.
    Skipping p11-kit-tools-0.23.22-0 as higher version p11-kit-tools-0.23.22-1.ppc is installed.
    python3-3.7.15-2.ppc will be updated to python3-3.9.16-0
    Skipping python3-dnf-4.2.17-32_4 as higher version python3-dnf-4.2.17-32_50.ppc is installed.
    Skipping python3-gpg-1.13.1-32_3 as higher version python3-gpg-1.13.1-100.ppc is installed.
    Skipping python3-hawkey-0.39.1-32_3 as higher version python3-hawkey-0.39.1-32_51.ppc is installed.
    python3-libcomps-0.1.11-101.ppc will be updated to python3-libcomps-0.1.15-32_1
    Skipping python3-libdnf-0.39.1-32_3 as higher version python3-libdnf-0.39.1-32_51.ppc is installed.
    Skipping python3-librepo-1.11.0-32_2 as higher version python3-librepo-1.11.0-101.ppc is installed.
    python3.9-3.9.16-0 will be installed
    python3.9-dnf-4.2.17-32_4 will be installed
    python3.9-gpg-1.13.1-32_3 will be installed
    python3.9-hawkey-0.39.1-32_3 will be installed
    python3.9-libcomps-0.1.15-32_1 will be installed
    python3.9-libdnf-0.39.1-32_3 will be installed
    python3.9-librepo-1.11.0-32_2 will be installed
    rpm-python3-4.15.1-32_1.ppc will be updated to rpm-python3-4.15.1-32_2
    rpm-python3.9-4.15.1-32_2 will be installed
    Skipping zchunk-libs-1.1.4-32_2 as higher version zchunk-libs-1.1.4-102.ppc is installed.

    Installing the packages...

    error: Failed dependencies:
            libpython3.7m.so is needed by (installed) python3-libdnf-0.39.1-32_51.ppc
            libpython3.7m.so is needed by (installed) python3-hawkey-0.39.1-32_51.ppc
            libpython3.7m.so is needed by (installed) python3-librepo-1.11.0-101.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) python3-dnf-4.2.17-32_50.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) dnf-4.2.17-32_50.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) dnf-automatic-4.2.17-32_50.ppc
            dnf-data = 4.2.17-32_4 is needed by python3.9-dnf-4.2.17-32_4.noarch
            libdnf = 0.39.1-32_3 is needed by python3.9-hawkey-0.39.1-32_3.ppc
            libdnf = 0.39.1-32_3 is needed by python3.9-libdnf-0.39.1-32_3.ppc
            librepo = 1.11.0-32_2 is needed by python3.9-librepo-1.11.0-32_2.ppc

    dnf installation failed.
    If the failure was due to a space issue, increase the size of /opt and re-run script again.
    Another reason for failure could be mixing of Toolbox packages and packages from other sources.

    You can try installing the downloaded dnf packages from /tmp/dnf-20231122190010 manually.



    ------------------------------
    Andres Cordoba
    Unix Specialist
    Dia Corporate
    Madrid
    +34 676934659
    ------------------------------



  • 8.  RE: Getting error during dnf update

    Posted Mon November 27, 2023 05:00 AM

    Thanks Jan and Anress.

    Which method should we use to remove the packages? Through destroy rpm tool or manually as mentioned by Anress? dnf update also is not working in my case.



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 9.  RE: Getting error during dnf update

    Posted Mon November 27, 2023 01:32 PM

    Hello

    See my blog on this:

    https://community.ibm.com/community/user/power/blogs/jan-harris1/2022/05/25/destroyrpms



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



  • 10.  RE: Getting error during dnf update

    Posted Tue November 28, 2023 03:09 AM

    Thanks Jan.

    I always follow these steps. I will try those steps. Just wanted to check whether it can be fixed without removing all packages.



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 11.  RE: Getting error during dnf update

    Posted Tue November 28, 2023 03:16 AM

    Hi Manoj,

    in this case, removing dnf and python manually is enough to solve the problem. 

    Choice is yours.



    ------------------------------
    Andres Cordoba
    Power Infrastructure Manager
    Dia Corporate
    Madrid
    +34 676934659
    ------------------------------



  • 12.  RE: Getting error during dnf update

    Posted Wed November 29, 2023 05:50 AM

    Thanks Jan and Andres. We have removed and reinstalled the dnf and python packages.



    ------------------------------
    Manoj Kumar
    ------------------------------