AIX

 View Only
  • 1.  Install unzip AIX 7.2

    Posted Thu June 09, 2022 01:30 PM

    How to fix an issue with unzip-6.0-3.aix6.1.ppc.rpm AIX 7200-02-02-1806

    # rpm -i --test unzip-6.0-3.aix6.1.ppc.rpm

    error: Failed dependencies:

    /bin/sh is needed by unzip-6.0-3.ppc

    libc.a(shr.o) is needed by unzip-6.0-3.ppc

    But /bin/sh is already in this AIX

    # ls -l /bin/sh

    -r-xr-xr-x 5 bin bin 313906 Nov 28 2017 /bin/sh

    # rpm -qa

    [root] /source/unzip

    # /usr/sbin/updtvpkg

    Please wait...error: open of /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.aix7.2.ppc.rpm failed: No such file or directory

    warning: line 8: It's not recommended to have unversioned Obsoletes: Obsoletes: SysProvides

    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Mq2aea

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Mu2aeb

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Mu2aec

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Processing files: AIX-rpm-7.2.2.15-1.ppc

    Wrote: /packages/aix/creation_rpm/SRPMS/AIX-rpm-7.2.2.15-1.src.rpm

    Wrote: /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.ppc.rpm

    Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.M32aed

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    [root] /source/unzip

    # rpm -qa

    [root] /source/unzip

    #

    With

    # rpm -q AIX-rpm

    package AIX-rpm is not installed

    Under /usr/lib

    lrwxrwxrwx 1 bin bin 19 Feb 05 2019 /usr/lib/libc.a -> /usr/ccs/lib/libc.a

    -r-xr-xr-x 1 bin bin 93110 Oct 13 2017 /usr/lib/libc128.a

    lrwxrwxrwx 1 bin bin 19 Feb 05 2019 /usr/lib/libc_r.a -> /usr/ccs/lib/libc.a

    lrwxrwxrwx 1 bin bin 19 Feb 05 2019 /usr/lib/libc_t.a -> /usr/ccs/lib/libc.a

    [root] /source/unzip

    # ls -l /usr/ccs/lib/libc.a

    -r-xr-xr-x 1 bin bin 13236063 Jan 17 2018 /usr/ccs/lib/libc.a

    We have done updtvpkg debug with sh -x /usr/sbin/updtvpkg

    # which libc.a

    which: 0652-141 There is no libc.a in /y900x00/ms/exp/util /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin /usr/openv/netbackup/bin /usr/openv/volmgr/bin.

    [root] /

    # echo $LIBPATH

    [root] /

    # /usr/bin/rpm --rebuilddb

    [root] /

    # /usr/bin/rpm -qa

    [root] /

    # set

    AUTHSTATE=compat

    DIRFIC=/y900x00/ms/exp/fic

    DIRHA=/y900x00/ms/exp/ha

    DIRIO=/y900x00/ms/io

    DIRLOG=/y900x00/ms/exp/log

    DIRPOSTE=/y900x00/ms/poste

    DIRTD=/y900x00/ms/td

    DIRTIGER=/y900x00/ms/td/tiger-2.2.4

    DIRUSERS=/y900x00/ms/users

    DIRUTIL=/y900x00/ms/exp/util

    DISPLAY=localhost:11.0

    EDITOR=vi

    ERRNO=0

    FCEDIT=/usr/bin/ed

    GOO=/usr/openv/netbackup/bin/goodies

    HOME=/

    HOSTNAM=bu8z

    IFS='

    '

    JOURNAL=/y900x00/ms/exp/log/journal

    LANG=en_US

    LC__FASTMSG=true

    LINENO=1

    LOCPATH=/usr/lib/nls/loc

    LOGIN=root

    LOGISM=/y900x00/ms/exp/log/logism_bu8z

    LOGISMDUP=/y900x00/ms/exp/log/logism_bu8zdup

    LOGISMTRT=/y900x00/ms/exp/log/logtest_bu8z

    LOGNAM=root

    LOGNAME=root

    MAIL=/usr/spool/mail/root

    MAILCHECK=600

    MAILMSG='[YOU HAVE NEW MAIL]'

    MOZILLA_HOME=/usr/local/netscape

    NB=/y900x00/ms/exp/fic/nb

    NBADM=/usr/openv/netbackup/bin/admincmd

    NBBIN=/usr/openv/netbackup/bin

    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/%l.%c/%N:/usr/lib/nls/msg/%l.%c/%N.cat

    ODMDIR=/etc/objrepos

    OPTIND=1

    PATH=/y900x00/ms/exp/util:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/usr/openv/netbackup/bin:/usr/openv/volmgr/bin:

    PPID=11272586

    PS1='[root] $PWD

    # '

    PS2='> '

    PS3='#? '

    PS4='+ '

    PWD=/

    RANDOM=526

    SECONDS=211

    SHELL=/usr/bin/ksh

    SSH_AUTH_SOCK=/tmp/ssh-zi68qxIPzN/agent.11272586

    SSH_CLIENT='172.27.190.91 55496 22'

    SSH_CONNECTION='172.27.190.91 55496 172.27.189.2 22'

    SSH_TTY=/dev/pts/1

    SUPERVISION=OPENMASTER

    TAPE0=/dev/rmt0

    TAPE1=/dev/rmt1

    TAPE2=/dev/rmt2

    TERM=xterm

    TERM_DEFAULT=lft

    TFAROOTX=/y900x00

    TMOUT=0

    TMP=/tmp

    TZ=NFT-1DFT,M3.5.0/02:00:00,M10.5.0/03:00:00

    USER=root

    VOLBIN=/usr/openv/volmgr/bin

    _=-qa

    [root] /

    # sh -x /usr/sbin/updtvpkg

    + sleep 1

    + [[ en_US = en_US ]]

    + export LANG=C

    + + /usr/bin/rpm -q --queryformat %{RELEASE} AIX-rpm

    + 2> /dev/null

    current_release=package AIX-rpm is not installed

    + [[ -z package AIX-rpm is not installed ]]

    + [[ package AIX-rpm is not installed == package AIX-rpm is not installed ]]

    + current_release=0

    + (( release = 0 + 1 ))

    + + /usr/bin/dspmsg -s 3 cmdinstl_e.cat 49 Please wait...\n

    waitmsg=Please wait...

    + echo Please wait...\c

    Please wait...+ + /usr/bin/lslpp -qLc bos.rte

    + /usr/bin/cut -d: -f3

    version=7.2.2.15

    + + /usr/bin/rpm --eval %{_rpmdir}

    rpmdir=/packages/aix/creation_rpm/RPMS

    + + /usr/bin/rpm --eval %{_srcrpmdir}

    srcrpmdir=/packages/aix/creation_rpm/SRPMS

    + update_virtual_package 1

    + 1> /tmp/mkvirtpkg.11469254

    + [[ -s /tmp/mkvirtpkg.11469254 ]]

    + /usr/bin/rpmbuild -ba /tmp/mkvirtpkg.11469254

    + 1> /tmp/mkvirtpkg.11469254.out 2>& 1

    + [[ 0 -eq 0 ]]

    + + /usr/bin/rpm --showrc

    + LANG=C

    + /usr/bin/grep ^build arch

    + /usr/bin/awk {print $NF}

    arch=ppc

    + + /usr/bin/rpm --showrc

    + LANG=C

    + /usr/bin/grep ^build os

    + /usr/bin/awk {print $NF}

    os=aix7.2

    + /usr/bin/rpm --nodeps -U /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.aix7.2.ppc.rpm

    error: open of /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.aix7.2.ppc.rpm failed: No such file or directory

    + [[ 1 -ne 0 ]]

    + /usr/bin/cat /tmp/mkvirtpkg.11469254.out

    warning: line 8: It's not recommended to have unversioned Obsoletes: Obsoletes: SysProvides

    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZUOaea

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZYOaeb

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp._aOaec

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Processing files: AIX-rpm-7.2.2.15-1.ppc

    Wrote: /packages/aix/creation_rpm/SRPMS/AIX-rpm-7.2.2.15-1.src.rpm

    Wrote: /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.ppc.rpm

    Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp._iOaed

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    + echo

    + /usr/bin/rm -rf /tmp/mkvirtpkg.11469254 /tmp/mkvirtpkg.11469254.out

    + /usr/bin/rpm -q AIX-rpm

    + 1> /dev/null

    + exit 1

    [root] /

    #



    #AIX
    #Support
    #SupportMigration


  • 2.  RE: Install unzip AIX 7.2

    Posted Sun June 12, 2022 11:06 AM

    Hi,

    It looks like you are something missing from your system. Do you have rpm.rte installed ? This then provides you with the ability to tell the rpm environment about what files AIX will provide to it rather than installing all the xxxx.rpm files.

    Try the command

    rpm -q AIX-rpm --provides

    This should return

    ...

    /bin/sh

    /usr/bin/sh

    ...

    libc.a(aio.o)

    libc.a(aio_64.o)

    ...etc

    Once this is rectified you should be good.

    So in summary. Make sure rpm.rte and AIX-rpm are installed on the system then run

    /usr/sbin/updtvpkg

    Hope this helps

    Phil P



    #AIX
    #Support
    #SupportMigration


  • 3.  RE: Install unzip AIX 7.2

    Posted Tue June 14, 2022 02:46 PM

    Hi Phil,

    Thank you for your help.

    I applied the command as advised below this return

    # rpm -q AIX-rpm --provides

    package AIX-rpm is not installed


    The package rpm is at the last level

    Installation Summary

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

    Name            Level      Part    Event    Result

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

    rpm.rte           4.15.1.3    USR     APPLY    SUCCESS

    rpm.rte           4.15.1.3    ROOT    APPLY    SUCCESS


    Thanks in advance


    HBO






    #AIX
    #Support
    #SupportMigration


  • 4.  RE: Install unzip AIX 7.2

    Posted Tue June 14, 2022 03:00 PM

    Hi,


    You should be able to run the


    /usr/sbin/updtvpkg


    This should create the AIX-rpm virtual package, which in turn allows AIX to let the rpm system know which files it provides.

    HTH

    Thanks

    Phil P



    #AIX
    #Support
    #SupportMigration


  • 5.  RE: Install unzip AIX 7.2

    Posted Thu June 16, 2022 08:52 AM

    Hi Phil,

    I have tried /usr/sbin/updtvpkg but unfortunately it didn't work as you expected

    # /usr/sbin/updtvpkg

    Please wait...error: open of

    /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.aix7.2.ppc.rpm failed:

    No such file or directory

    warning: line 8: It's not recommended to have

    unversioned Obsoletes: Obsoletes: SysProvides

    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2uT7ea

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Executing(%build): /bin/sh -e

    /var/tmp/rpm-tmp.2yT7eb

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Executing(%install): /bin/sh -e

    /var/tmp/rpm-tmp.23T7ec

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Processing files: AIX-rpm-7.2.2.15-1.ppc

    Wrote:

    /packages/aix/creation_rpm/SRPMS/AIX-rpm-7.2.2.15-1.src.rpm

    Wrote: /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.ppc.rpm

    Executing(%clean): /bin/sh -e

    /var/tmp/rpm-tmp.2QT7ed

    + umask 022

    + cd /packages/aix/creation_rpm/BUILD

    + RPM_EC=0

    + jobs -p

    + exit 0

    Thank you for your help

    HBO



    #AIX
    #Support
    #SupportMigration


  • 6.  RE: Install unzip AIX 7.2

    Posted Thu November 30, 2023 04:51 AM

    Have you a newest RPM Paket on AIX ?

    -->

      rpm.rte                4.15.1.1011  COMMITTED  RPM Package Manager

    -->



    ------------------------------
    Tomas Michal
    ------------------------------