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
  • 1.  updtvpkg error

    Posted Fri October 28, 2022 08:34 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 which is causing this issue? We have 7200-05-03 (rpm.rte 4.15.1.3). We upgraded the rpm.rte to 4.15.1.1006, but no luck.


    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 Mon October 31, 2022 07:34 AM
    Rizwan,

    Hi, good day to you.  I had a "similar" issue ("/usr/sbin/rpm_share[457]: 4^J4: 0403-057 Syntax error") when moving from 7.1 to 7.3.

    What do you get when you run "lslpp -hac rpm.rte" as I get the following (now that everything is fixed)?

    lslpp -hac rpm.rte
    #Path:Fileset:Level:PTF Id:Action:Status:Date:Time
    /usr/lib/objrepos:rpm.rte:4.15.1.2004::COMMIT:COMPLETE:06/24/22:09;49;18
    /usr/lib/objrepos:rpm.rte:4.15.1.2004::APPLY:COMPLETE:06/24/22:09;49;18
    /etc/objrepos:rpm.rte:4.15.1.2004::COMMIT:COMPLETE:06/24/22:09;49;28
    /etc/objrepos:rpm.rte:4.15.1.2004::APPLY:COMPLETE:06/24/22:09;49;2​

    Regards, Steve

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



  • 3.  RE: updtvpkg error

    Posted Fri November 04, 2022 02:10 AM
    Hi Rizwan,

    Please check the below link to understand and rectify the error.
    https://www.ibm.com/support/pages/aix-open-source-troubleshooting-rpmshare-0645-007-whichfs-errors

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



  • 4.  RE: updtvpkg error

    Posted Tue November 08, 2022 10:47 AM
    Hi,

    I had the same issue on few servers when setting up yum or dnf on LPARs that were migrated many times over the times (some come from AIX 5.3 and were migrated to 6.1, 7.1 and 7.2). 

    Most of the times I could solve that issue by uninstalling and installing ca-certificates RPM. Note: If I did 'yum reinstall -y ca-certificates', it did not solve the issue. I really had to uninstall ca-certificates (rpm -e --nodeps ca-certificates) and install it again (either rpm -ivh <path to ca-certificates RPM> or yum/dnf install -y ca-certificates)

    Best regards

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