Originally posted by: HBER2
Hi,
thanks you,
I found also that i received same error too when i installed bash rpm on private wpar AIX ( has /usr private, and i have not this error on lpar AIX),
root@XXXX:/# rpm -hiv /mnt/RPMS/aix/bash-4.4-3.aix6.1.ppc.rpm /mnt/RPMS/aix/bash-doc-4.3.30-1.aix6.1.ppc.rpm
Preparing... ################################# [100%]
Updating / installing...
1:bash-doc-4.3.30-1 ################################# [ 50%]
2:bash-4.4-3 ################################# [100%]
## Binary "bash" is avaible in 32bit and 64bit ##
The default used is 64bit
If 32bit is needed, please change symbolic link
for "bash" in /bin directory
To do that type:
# rm -f /bin/bash
# ln -sf /opt/freeware/bin/bash_32 /bin/bash
cp: /bin/bash: No such file or directory
rpm_share: 0645-007 ATTENTION: update_file() returned an unexpected result.
rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.
Yes, i note that it cannot create link on /bin/bash, but not understand why ? (it can create other link on this folder) and i can create it after manually.
root@xxxx:/root# ls -al /bin/bash*
lrwxrwxrwx 1 root system 7 Feb 7 15:55 /bin/bash@ -> bash_64*
but if i execute command rpm --rebuilddb, new link manually created before is removed.
If i try to use verbose mode of bash installation, but not really help :
+ echo /opt/freeware/bin/bash
+ 1>> /etc/shells
+ grep -q ^/opt/freeware/bin/bash_64$ /etc/shells
+ echo /opt/freeware/bin/bash_64
+ 1>> /etc/shells
+ echo \n\t## Binary "bash" is avaible in 32bit and 64bit ##\n\n\tThe default used is 64bit\n\n\tIf 32bit is needed, please change symbolic link \n\tfor "bash" in /bin directory\n\tTo do that type:\n\t\t# rm -f /bin/bash\n\t\t# ln -sf /opt/freeware/bin/bash_32 /bin/bash
## Binary "bash" is avaible in 32bit and 64bit ##
The default used is 64bit
If 32bit is needed, please change symbolic link
for "bash" in /bin directory
To do that type:
# rm -f /bin/bash
# ln -sf /opt/freeware/bin/bash_32 /bin/bash
D: %post(bash-4.4-3.ppc): waitpid(5439490) rc 5439490 status 0
ufdio: 6 reads, 32591 total bytes in 0.000055 secs
D: running post-transaction scripts
D: read h# 10 Header sanity check: OK
D: unknown: bash-doc-4.3.30-1.ppc has 0 files
D: read h# 11 Header sanity check: OK
D: unknown: bash-4.4-3.ppc has 0 files
D: closed db index /opt/freeware/packages/Packages
D: closed db index /opt/freeware/packages/Enhancename
D: closed db index /opt/freeware/packages/Supplementname
D: closed db index /opt/freeware/packages/Suggestname
D: closed db index /opt/freeware/packages/Recommendname
D: closed db index /opt/freeware/packages/Transfiletriggername
D: closed db index /opt/freeware/packages/Filetriggername
D: closed db index /opt/freeware/packages/Sha1header
D: closed db index /opt/freeware/packages/Sigmd5
D: closed db index /opt/freeware/packages/Installtid
D: closed db index /opt/freeware/packages/Dirnames
D: closed db index /opt/freeware/packages/Triggername
D: closed db index /opt/freeware/packages/Obsoletename
D: closed db index /opt/freeware/packages/Conflictname
D: closed db index /opt/freeware/packages/Providename
D: closed db index /opt/freeware/packages/Requirename
D: closed db index /opt/freeware/packages/Group
D: closed db index /opt/freeware/packages/Basenames
D: closed db index /opt/freeware/packages/Name
D: closed db environment /opt/freeware/packages
cp: /bin/bash: No such file or directory
rpm_share: 0645-007 ATTENTION: update_file() returned an unexpected result.
rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.