AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

updtvpkg error

  • 1.  updtvpkg error

    Posted Mon October 24, 2022 09:49 AM
    Hi team I am getting below verbose output when I run updtvpkg in AIX. How can I find what/if any links are missing?

    root@xxxxxx:/ # 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.Pqzaea
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Puzaeb
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Puzaec
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Processing files: AIX-rpm-7.2.5.101-11.ppc
    Wrote: /opt/freeware/src/packages/SRPMS/AIX-rpm-7.2.5.101-11.src.rpm
    Wrote: /opt/freeware/src/packages/RPMS/ppc/AIX-rpm-7.2.5.101-11.aix7.2.ppc.rpm
    Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Pyzaed
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0

    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.

    ------------------------------
    Rizwan Khaliq
    ------------------------------


  • 2.  RE: updtvpkg error

    Posted Thu October 27, 2022 07:16 AM
    Hi 
    Any update? 
    Please help us to resolve the issue?
    Thanks

    ------------------------------
    Rizwan Khaliq
    ------------------------------



  • 3.  RE: updtvpkg error

    Posted Fri October 28, 2022 03:48 AM
    Hi Rizwan,

    I think Open Source forum would be a better place to ask the question. Which version of AIX and rpm.rte do you have? Did you try to update rpm.rte?

    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 4.  RE: updtvpkg error

    Posted Fri October 28, 2022 08:25 AM

    Hi Andrey

    We have 7200-05-03 (rpm.rte 4.15.1.3). We upgraded the rpm.rte to 4.15.1.1006, but no luck.
    Thanks



    ------------------------------
    Rizwan Khaliq
    ------------------------------



  • 5.  RE: updtvpkg error

    Posted Fri October 28, 2022 06:53 AM
    Hi Rizwan,

    we had a similar problem with a wrong link in one of the installed third-party rpms.
    With the description in this link:
    https://www.ibm.com/support/pages/aix-open-source-troubleshooting-rpmshare-0645-007-whichfs-errors
    we were able to identify the missing Link (the creator of the rpm linked a file with a wrong name).
    Hope that would help.

    Greetings
    Stefan

    ------------------------------
    Stefan Kirchberg
    ------------------------------



  • 6.  RE: updtvpkg error

    Posted Fri October 28, 2022 08:31 AM
    Hi Stefan
    looks like the link you shared will be helpful if we know which rpm caused the issue so that we can remove and re-install it with debug option. We don't know which rpm is causing this issue.

    Thanks

    ------------------------------
    Rizwan Khaliq
    ------------------------------



  • 7.  RE: updtvpkg error

    Posted Fri October 28, 2022 09:30 AM
    Hi Rizwan,

    have you tried to (re-)install a rpm-Package? We got the whichfs-error on every rpm-install.
    In a test we could see the missing link also with updtvpkg:

    # script /tmp/rpm.debug (begin script logging)
    # export RPM_SHARE_DEBUG=true
    # updtvpkg
    # exit (exit the script logging)

    then we can find an error in the logfile /tmp/rpm.debug  (search for "ATTENTION"):

    + [[ -z /etc/rc.d/rc2.d/Kslapd ]]^M
    + [[ 1 -gt 0 ]]^M
    + /usr/lib/instl/libinst_whichfs /etc/rc.d/rc2.d/Kslapd^M
    + eval pmerror "whichfs()"; return 1^M
    + pmerror whichfs()^M
    + perror 26 whichfs()^M
    + ISERROR=1^M
    + print_msg 26 whichfs()^M
    + 1>& 2^M
    + [ -ne 1 ]^M
    rpm_share: 0645-007 ATTENTION: whichfs() returned an unexpected result.^M

    In this example the link /etc/rc.d/rc2.d/Ksladap points to an non existing file. So we could reinstall the package containing this link (rpm -q --whatprovides /etc/rc.d/rc2.d/Ksladap).

    Greetings
    Stefan


    ------------------------------
    Stefan Kirchberg
    ------------------------------



  • 8.  RE: updtvpkg error

    Posted Fri October 28, 2022 11:03 AM
    Hi Stefan
    Here is the output
    + [[ -z /var ]]
    + return 0
    + echo /var/ssl/64/certs
    + read NODE
    + check_node /var/ssl/cert.pem
    + typeset NODE=/var/ssl/cert.pem
    + typeset ERROR=eval pmerror "check_node()" ; return 1
    + [[ -z /var/ssl/cert.pem ]]
    + [[ ! -L /var/ssl/cert.pem ]]
    + return 0
    + + whichfs /var/ssl/cert.pem
    + typeset NODE=/var/ssl/cert.pem
    + typeset BUF=
    + typeset ERROR=eval pmerror "whichfs()"; return 1
    + typeset DEV
    + typeset FS
    + typeset ISDEV=0
    + typeset LOOPMAXHARD=256
    + typeset LOOPMAXSOFT=128
    + typeset LOOPC=0
    + [[ -z /var/ssl/cert.pem ]]
    + [[ 1 -gt 0 ]]
    + /usr/lib/instl/libinst_whichfs /var/ssl/cert.pem
    + eval pmerror "whichfs()"; return 1
    + pmerror whichfs()
    + perror 26 whichfs()
    + ISERROR=1
    + print_msg 26 whichfs()
    + 1>& 2
    + [ -ne 1 ]
    rpm_share: 0645-007 ATTENTION: whichfs() returned an unexpected result.
    + ISERROR=0
    + return 0
    + return 0
    + return 1
    FS=
    + eval pmerror "get_rpm_inst_root_list()"; return 1
    + pmerror get_rpm_inst_root_list()
    + perror 26 get_rpm_inst_root_list()
    + ISERROR=1
    + print_msg 26 get_rpm_inst_root_list()
    + 1>& 2
    + [ -ne 1 ]
    rpm_share: 0645-007 ATTENTION: get_rpm_inst_root_list() returned an unexpected result.
    + ISERROR=0
    + return 0
    + return 0
    + return 1
    + eval pmerror "update_inst_root()"; return 1
    + pmerror update_inst_root()
    + perror 26 update_inst_root()
    + ISERROR=1
    + print_msg 26 update_inst_root()
    + 1>& 2
    + [ -ne 1 ]
    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.

    Thnaks

    ------------------------------
    Rizwan Khaliq
    ------------------------------



  • 9.  RE: updtvpkg error

    Posted Fri October 28, 2022 11:19 AM
    Hi Rizwan,

    for me, it looks like a problem with "/var/ssl/cert.pem".
    Normally it should be a link like "/var/ssl/cert.pem -> /opt/freeware/etc/ssl/certs/ca-bundle.crt".
    Is the target-file of your link possibly missing?

    The file and the link should be in a package like ca-certificates-2021.2.52-3.ppc:
    # rpm -q --whatprovides /var/ssl/cert.pem
    ca-certificates-2021.2.52-3.ppc
    # rpm -q --whatprovides /opt/freeware/etc/ssl/certs/ca-bundle.crt
    ca-certificates-2021.2.52-3.ppc

    You could try to reinstall the package providing the missing files ("rpm -ivh <package>.rpm --force" or "dnf reinstall <package>") or you can change the link to the right target if the filename ist wrong or you could create a missing file.

    Greetings
    Stefan
    ​​​​

    ------------------------------
    Stefan Kirchberg
    ------------------------------



  • 10.  RE: updtvpkg error

    Posted Mon October 31, 2022 10:07 AM
    RPM has been replaced with DNF.

    https://www.ibm.com/support/pages/aix-toolbox-open-source-software-downloads-alpha

    ------------------------------
    minesh patel
    ------------------------------



  • 11.  RE: updtvpkg error

    Posted Tue November 01, 2022 05:01 AM
    Minesh,

    Hi, good day to you.

    Correct me if I'm mistaken however I think you meant to say that "dnf" has replaced "yum".  rpm(.rte) continues to be available on AIX.

    Regards, Steve

    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 12.  RE: updtvpkg error

    Posted Wed November 02, 2022 12:00 PM
    Yes Steve that is correct. rpm is package format and yum/dnf package manager. We have moved from yum to dnf but packages are still in rpm format.

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