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