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

 View Only
  • 1.  python 3.9.18 upgrade issue

    Posted Tue December 12, 2023 03:34 PM
    Edited by SANGAMESH MALLAYYA Tue December 12, 2023 11:22 PM

    Hello ,

    We recently installed python3.9-3.9.17 on our AIX boxes.

    We have to upgrade it to python3.9-3.9.18

    Getting below error while upgrade:

    # /opt/freeware/bin/dnf update python3.9

    Last metadata expiration check: 4:57:37 ago on Tue Dec 12 11:58:58 PST 2023.

    Error: 

     Problem: package python3.9-3.9.18-1.ppc requires /opt/freeware/libexec/python3.9_32, but none of the providers can be installed

      - cannot install both python3.9-3.9.18-1.ppc and python3.9-3.9.17-1.ppc

      - cannot install the best update candidate for package python3.9-3.9.17-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)

    I tried adding allowerasing but still getting below error:

    /opt/freeware/bin/dnf update python3.9 --allowerasing

    Last metadata expiration check: 4:56:52 ago on Tue Dec 12 11:58:58 PST 2023.

    Error: 

     Problem: problem with installed package python3.9-3.9.17-1.ppc

      - cannot install the best update candidate for package python3.9-3.9.17-1.ppc

      - package python3.9-3.9.18-1.ppc requires /opt/freeware/libexec/python3.9_32, but none of the providers can be installed

      - cannot install both python3.9-3.9.18-1.ppc and python3.9-3.9.17-1.ppc

    (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

    /opt/freeware/libexec/python3.9_32 reporting error seems to be part of python3.9-3.9.17 package itself which we are trying to upgrade.

    # rpm -qf /opt/freeware/libexec/python3.9_32

    python3.9-3.9.17-1.ppc

    Running at below rpm.rte version:

    lslpp -l rpm.rte

      Fileset                      Level  State      Description         

      ----------------------------------------------------------------------------

    Path: /usr/lib/objrepos

      rpm.rte                4.15.1.1011  COMMITTED  RPM Package Manager

    Path: /etc/objrepos

      rpm.rte                4.15.1.1011  COMMITTED  RPM Package Manager

    /opt/freeware/bin/dnf --version

    4.2.17

      Installed: dnf-0:4.2.17-32_51.ppc at Tue Nov 28 19:02:26 PST 2023

      Built    :  at Fri Apr 28 12:17:59 PST 2023

    rpm -qa |grep ^dnf

    dnf-4.2.17-32_51.ppc

    Any suggestion or resolution is highly appreciated.

    Thanks,

    Ankur Das



    ------------------------------
    Ankur Das
    ------------------------------


    #AIXOpenSource


  • 2.  RE: python 3.9.18 upgrade issue

    Posted Thu December 14, 2023 08:50 AM

    This looks like a very weird problem. /opt/freeware/libexec/python3.9_32 is provided by python3.9-3.9.18 rpm as well. Not sure why dnf is throwing that error. 
    Is the dnf repo configured here is a mirror of public.dhe.ibm.com site ? If so, you can re-check if there is any problem with mirroring. If not, then you can rebuild rpm database, clean the dnf cache and try again. 
    rpm --rebuilddb
    dnf clean all 
    dnf update 



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



  • 3.  RE: python 3.9.18 upgrade issue

    Posted Thu December 14, 2023 07:39 PM

    Thanks much Ayappan for the pointer , Let me try out the steps noted above.

    Will share the results.



    ------------------------------
    Ankur Das
    ------------------------------