Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)
Showing posts with label unix. Show all posts
Showing posts with label unix. Show all posts

Tuesday, August 18, 2020

scriptlet failed, exit status 127 + RPM error

RPM error "scriptlet failed, exit status 127"


Sometime while patching the server, we may get message to delete some patches which create conflict.

And while deleting those conflicting rpms we get error something like this:

E
[root@cloud home]# rpm -e --nodeps ILMT-TAD4D-agent.i386-cs-cam.noarch

/var/tmp/rpm-tmp.XIuSM4[137]: /var/itlm/utilities/cit/wcitinst: not found [No such file or directory]

error: %preun(ILMT-TAD4D-agent-7.5-1.i386) scriptlet failed, exit status 127


We are erasing the rpms using -e option and not removing the rpm dependency   (Reason : The dependencies could be part of other rpms and by removing it we may encounter problem for other rpms). 
--nodeps Do not verify dependencies
  

 Solution:

 Delete the rpm using --noscripts option. The --noscripts option tells the rpm command not to run any uninstallation scripts

--noscripts  = Do not execute verification script

[root@cloud home]# rpm -e --nodeps  --noscripts ILMT-TAD4D-agent.i386

Regards,
Kalyanjit

Thursday, April 10, 2014

Mounting/Unmounting NFS File System +HPUX

Mounting/Unmounting NFS File System +HPUX
########################################

E.g.: source server: hpuxsap3; Destination Server: hpuxsap4
Mount point which needs to be shared: /sapmnt/hpux

Mounting of NFS File System

On source server:

1.      #share –F nfs -o rw=@

i.e share –F nfs –o rw=@hpuxsap4 /sapmnt/hpux

2.      #share : will show the local resource (mount points) available for NFS mounting
Or  #showmount –e < will list all shared file systems.>


On Destination server:

1.      #mkdir

i.e #mkdir  /sapmnt/hpux

2.      #mount :

i.e #mount hpuxsap3: /sapmnt/hpux /sapmnt/hpux

Note: #cat /etc/dfs/dfstab

Unmounting of NFS File System

Destination Server:
# umount
 i.e # umount /sapmnt/hpux

  if getting error
#  umount /mountpoint   

    e.g # umount /sapmnt/hpux
   umount: cannot unmount /dev/disk/disk23 : Device busy
   umount: return error 1.

 Run :

# fuser -kuc /mountpoint
e.g # fuser -kuc /sapmnt/hpux

and then:
# umount /sapmnt/hpux


Source Server:

# unshare /sapmnt/hpux  

#unshareall      




NFS on 11.23/11.11
Very soon I'll post how to mount/unmount NFS on 11.23/11.11 OS


Thanks...
Kiran Jadhav

**Let's Share our knowledge**