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.  AIX 7.2 TL4 (7200_04_01_1939): rpm.rte 4.13.0.10 Already superseded by 4.13.0.11

    Posted Thu August 20, 2020 07:49 AM
    Edited by C- -T Thu August 20, 2020 07:57 AM
    hi,

    after upgrading AIX to the mentioned TL and running yum.sh the following error appears and the script stops.

    Pre-installation Failure/Warning Summary Name Level Pre-installation Failure/Warning rpm.rte 4.13.0.10 Already superseded by 4.13.0.11 /usr/sbin/rpm_share[470]:
    /usr/opt/freeware/bin/rpm: not found /usr/sbin/rpm_share[470]:
    /usr/opt/freeware/bin/rpm: not found /usr/sbin/rpm_share[470]:
    /usr/opt/freeware/bin/rpm: not found​​

     
    the reason is that in the lpp_source is a newer version than what you provide on your servers, which is a little bit odd...
     

    version on ibm server:
    rw-r--r-- 1 205 staff 49034240 Jun 21 2019 rpm.rte.4.13.0.10
    -rw-r--r-- 1 205 staff 12724 Apr 17 11:03 README_rpm.rte.4.13.0.10

    version in lpp_source if AIX 7.2 TL4:
    root@nimmsag: /export/lpp_source/aix72 # find 7200_04_01_1939 -name rpm.rte*
    7200_04_01_1939/installp/ppc/rpm.rte.4.13.0.11.
    I root@nimmsag: /export/lpp_source/aix72 # ls -l 7200_04_01_1939/installp/ppc/rpm.rte.4.13.0.11.I



    for now i copied the newer rpm.rte fileset over  to avoid furhter interruptions in our migration routine and disabled sync of "INSTALLP/ppc".
    please fix up your files on the server.


     



    ------------------------------
    I regret starting this entire conversation
    ------------------------------
    #AIXOpenSource


  • 2.  RE: AIX 7.2 TL4 (7200_04_01_1939): rpm.rte 4.13.0.10 Already superseded by 4.13.0.11

    Posted Thu August 20, 2020 09:05 AM
    Edited by C- -T Thu August 20, 2020 09:06 AM
    update:

    using the newer rpm.rte from the lpp_source does not work either, as the yum.sh script has no working version check  and bails out with "already installed".

    #Update rpm.rte to version.
    # From AIX 7.1 TL5 & 7.2 TL2 rpm.rte shipped is 4.13.0.1.
    # Installation will be skipped if either 4.9.1.3 or 4.13.0.1 is installed.
    echo "Installing rpm.rte at the latest version ..."
    echo "This may take several minutes depending on the number of rpms installed..."
    installp -qacXYd rpm.rte all
    #lslpp -L | grep rpm.rte | grep 4.9.1.3
    lslpp -Lc rpm.rte >/dev/null 2>&1
    if [[ $? -eq 0 ]]
    then
    rpm_ver=`lslpp -Lc rpm.rte | awk 'FNR==2' | awk -F':' '{print $3}' | cut -d'.' -f1`
    #One more check to see if rpm.rte is version4 or higher.
    #We mayn't come to this part at all.
    if [[ $rpm_ver -lt 4 ]]
    then
    rpm_inst=`lslpp -Lc rpm.rte | awk 'FNR==2' | awk -F':' '{print $2, $3}'`
    echo "rpm.rte version required is 4.9.1.3 or higher, but the installed version is ${rpm_inst}"
    cd -
    rm -rf $tmppath
    exit 1
    fi
    else
    echo "rpm.rte update to latest version failed."
    echo "Please check the /smit.log file and retry the install."
    cd -
    rm -rf $tmppath
    exit 1
    fi


    so still no luck on this front...

    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 3.  RE: AIX 7.2 TL4 (7200_04_01_1939): rpm.rte 4.13.0.10 Already superseded by 4.13.0.11

    Posted Fri August 21, 2020 01:30 AM
    script won't fail even if higher version of rpm.rte is already installed. Please paste the complete yum.sh outputs.
    I guess the actual problem is with the error "/usr/opt/freeware/bin/rpm: not found /usr/sbin/rpm_share"

    Also we have uploaded rpm.rte-4.13.0.11 https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/

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



  • 4.  RE: AIX 7.2 TL4 (7200_04_01_1939): rpm.rte 4.13.0.10 Already superseded by 4.13.0.11

    Posted Thu August 20, 2020 12:17 PM
    This should not be a problem. 
    The script only check for a minimum level but if a higher version is there then it should continue without installing rpm.rte.
    If the error message is coming that is fine but it should still continue to install yum packages.
    Are you saying that script is failing when it finds a higher version is available ? 
    Could you please run the script with set -x and provide the output. 
    There is no need to downgrade or update rpm.rte in server if higher version is there then it will not install.

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



  • 5.  RE: AIX 7.2 TL4 (7200_04_01_1939): rpm.rte 4.13.0.10 Already superseded by 4.13.0.11

    Posted Fri August 21, 2020 05:38 AM
    hmm...strange, the whole migration task perzl -> ibm is automated with ansible, and the "yum_sh" step definitly returns with returncode 1 hence error.
    what i do is, a clean up the whole /opt/freeware/* with rm -rf after running  the destroy rpm script, and it seems the script somehow assumes the existence of the /usr/opt/freeware/bin/rpm -> /opt/freewarebin/rpm link, but i'm not really sure about that...
    any insights?

    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 6.  RE: AIX 7.2 TL4 (7200_04_01_1939): rpm.rte 4.13.0.10 Already superseded by 4.13.0.11

    Posted Fri August 21, 2020 06:15 AM
    Yes. yum.sh script runs the rpm command and /usr/bin/rpm is a script which runs /opt/freeware/bin/rpm.
    Maybe you can add one more ansible task for reinstalling rpm.rte after clearing files from /opt/freeware

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