Power

 View Only
  • 1.  aixtoolbox dnf aix 7.3 TL1 SP2

    Posted Sun June 25, 2023 01:54 PM
      |   view attached

    Dnf clean all , dnf update worked long time on aix 7.3 TL1 SP2 without problem. Last week ago failed .I attached txt file with error description. I tried optipn --nobest butno good idea. cannot install the best update candidate for package after --nobest 

    Failed:
      python3-3.9.16-2.ppc                   python3-3.7.15-2.ppc
     
    Error: Transaction failed
    dnf clean all
    libcomps.PACKAGE_TYPE_CONDITIONAL : CONDITIONAL,
    AttributeError: module 'libcomps' has no attribute 'PACKAGE_TYPE_CONDITIONAL'


    ------------------------------
    Juraj Petráš
    ------------------------------

    Attachment(s)

    txt
    dnf-update-problem.txt   52 KB 1 version


  • 2.  RE: aixtoolbox dnf aix 7.3 TL1 SP2

    Posted Tue June 27, 2023 01:13 PM

    I have exactly the same problems for a freshly installed AIX 7.3 upgraded to 7300-01-01-2246

    My virtual machine is on the IBM internal network - ask me if direct access would help.
    Until this is fixed, my project is stuck.
    I need to get the GCC C compiler installed to get going.



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 3.  RE: aixtoolbox dnf aix 7.3 TL1 SP2

    Posted Thu June 29, 2023 07:10 AM

    Tried again but did not install AIX 7.2 TL1 sp2 (stopped at sp1) and installed the "dnf" bundle new version v8.
    This seemed to have worked.
    Afraid to try the "dnf upgrade" command and not installing sp2 for now.



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 4.  RE: aixtoolbox dnf aix 7.3 TL1 SP2

    Posted Fri June 30, 2023 11:54 AM

    Hi Nigel,

    I guess you mean 7.3 TL1 SP2.

    I don't think it is specific to 7.3TL1SP2.

    The initial problem @Juraj Petráš mentioned is happening when we do dnf update without updating rpm.rte to the latest one.

    Here is the corresponding post https://community.ibm.com/community/user/power/discussion/preparing-for-python39-migration-dnf-already-busted?ReturnUrl=%2fcommunity%2fuser%2fpower%2fcommunities%2fcommunity-home%2fdigestviewer%3fListKey%3daf5415f8-d8d8-4ac4-b3cb-08a8da184054

    The required packages aren't in sync.

    The  libcomps would have been updated to python3-libcomps-0.1.15-101 but failed to update python3-3.9.16-2.ppc.

    python3-libcomps-0.1.15-101 isn't compatible with python3-3.7.x.

    Hence it's necessary to update both python3.9 and python3-libcomps.

    When we try installing freshly from the bundle it takes care of updating rpm.rte to latest level and  installing the required packages.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 5.  RE: aixtoolbox dnf aix 7.3 TL1 SP2

    Posted Fri June 30, 2023 05:04 AM

    Hello

    Problem was solved

    1, rpm -e libcomps python3.9-libcomps python3-libcomps python3-dnf dnf dnf-automatic dnf-data libdnf python3-hawkey python3-libdnf

    2, last  dnf_aixtoolbox.sh script  with -d option

    3, dnf update

    Thank you very much SANGAMESH MALLAYYA



    ------------------------------
    Juraj Petráš
    ------------------------------



  • 6.  RE: aixtoolbox dnf aix 7.3 TL1 SP2

    Posted Wed November 22, 2023 06:01 PM

    Hi all, I faced similar issues on a freshly installed 7200-05-06-2320 LPAR. dnf (installed with dnf_bundle from around 1 year ago) worked fine with AIX_Toolbox from ~1 year ago. When I re-froze the repos to get the latest RPMs (we freeze our local copy of AIX_Toolbox before each patching cycle, depending on the environment), I faced the followin eror:

    Error:
     Problem: The operation would result in removing the following protected packages: dnf
    (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)

    Using '--nobest' was a very bad idea, dnf was throwing the 'AttributeError: module 'libcomps' has no attribute 'PACKAGE_TYPE_CONDITIONAL'' erro after the 'dnf update'. Had to delete few RPMs and retun 'dnf_aixtoolbox.sh script  with -d option' to fix it

    On the next LPAR I just updated rpm.rte (from latest dnf_bundle.tar) and the dnf update worked perfectly fine. No issues with dnf afterwards nor unmet dependancies,

    Lesson learned -> keep rpm.rte up-to-date from latest dnf_bundle.tar before attempting dnf update



    ------------------------------
    Lionel Widmer
    ------------------------------