(I screwed up the last post so here it is again - sorry for any inconvenience)
I keep trying to install patches but I keep getting the following:
/opt/patches/103667-05> ./installpatch .
Checking installed packages and patches...
None of the packages included in patch 103667-05
are installed on this system.
Installpatch is terminating.
/opt/patches/103667-05>
This has happened for all but three patches! (Two net performance
patches and an admintool one).
The packages that this particular patch is looking for are SUNWhea and
SUNWcsu...which are both installed (and re-installed). I've also messed with
permissions and everything else I can think of with no luck. :(
This is happening on two seperate (plain vanilla) machines, so I'm not
sure what is happening.
Hopefully someone can explain to me why this is happening and how I can
fix it!
P.S. I ran 'sh -x ./installpatch . > /tmp/patchout 2>&1' according to the
docs and it gave the following (longish) output:
PATH=/usr/sadm/bin:/usr/sbin:/usr/bin:/usr/local/gnu/bin:/usr/local/bin:
/usr/bin:/usr/ccs/bin:/etc:/
usr/openwin/bin:/usr/sbin:/usr/ucb:.
+ export PATH
+ umask 022
RECOVERDIR=/var/sadm/.patchRec
DF=/usr/sbin/df
MV=/usr/bin/mv
RM=/usr/bin/rm
SED=/usr/bin/sed
AWK=/usr/bin/awk
NAWK=/usr/bin/nawk
GREP=/usr/bin/grep
EGREP=/usr/bin/egrep
LS=/usr/bin/ls
CP=/usr/bin/cp
WC=/usr/bin/wc
FIND=/usr/bin/find
MD=/usr/bin/mkdir
TOUCH=/usr/bin/touch
DIFF=/usr/bin/diff
TAIL=/usr/bin/tail
MOUNT=/sbin/mount
UMOUNT=/sbin/umount
UNAME=/usr/bin/uname
multiPtchInstall=no
multiPtchList=
multiPtchStatus=
lastPtchInList=
patchdir=
olddir=
validate=yes
saveold=yes
netImage=none
dryrunDir=none
ROOTDIR=/
PATCHDB=/var/sadm/patch
PKGDB=/var/sadm/pkg
NEW_SOFTINFO=/var/sadm/system/admin/INST_RELEASE
OLD_SOFTINFO=/var/sadm/softinfo/INST_RELEASE
MGRSOFTINFO=none
TRGSOFTINFO=none
PKGDBARG=
PatchIdFormat=^[A-Z]*[0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9]$
PATCH_UNCONDITIONAL=false
PATCH_PROGRESSIVE=true
PATCH_NO_UNDO=false
PATCH_BUILD_DIR=none
PATCH_UNDO_ARCHIVE=none
INTERRUPTION=no
DRYRUN=no
+ typeset -i Root_Kbytes_Needed=0
/installpatch: typeset: not found
+ typeset -i Kbytes_Required=0
/installpatch: typeset: not found
+ typeset -i Opt_Kbytes_Needed=0
/installpatch: typeset: not found
+ typeset -i Openwin_Kbytes_Needed=0
/installpatch: typeset: not found
+ typeset -i Usr_Kbytes_Needed=0
/installpatch: typeset: not found
+ typeset -i Client_Kbytes_Needed=0
/installpatch: typeset: not found
+ typeset -i Var_Kbytes_Needed=0
/installpatch: typeset: not found
+ typeset -i ReqArrCount=0
/installpatch: typeset: not found
+ typeset -i ReqdPatchCnt=0
/installpatch: typeset: not found
+ typeset -i Something_Installed=0
/installpatch: typeset: not found
+ typeset -i interactive=0
/installpatch: typeset: not found
+ typeset -i req_count=0
/installpatch: typeset: not found
REQD_CMDS=/usr/sbin/removef /usr/sbin/installf /usr/sbin/pkgadd /usr/bin/grep
/usr
/bin/find /usr/bin/pkgparam /usr/bin/pkginfo
+ function set_globals
/installpatch: function: not found
EXISTFILES=/tmp/existfiles.3465
PATCHFILES=/tmp/patchfiles.3465
PKGCOFILE=/tmp/pkgchk.out.3465
VALERRFILE=/tmp/valerr.3465
VALWARNFILE=/tmp/valwarn.3465
ADMINTFILE=/tmp/admin.tmp.3465
ADMINFILE=/tmp/admin.3465
LOGFILE=/tmp/pkgaddlog.3465
TMP_ARCHIVE=/tmp/TmpArchive.3465
TMP_FILELIST=/tmp/FileList.3465
TMP_LIB_DIR=/tmp/TmpLibDir.3465
INSTPATCHES_FILE=/tmp/MyShowrevFile.3465
PARAMS_FILE=/tmp/ParamsFile.3465
RESPONSE_FILE=/tmp/response.3465
TEMP_REMOTE=/tmp/temp_remote.3465
Obsoletes=
Incompat=
Requires=
ObsoletePast=
UninstReqs=
InstIncompat=
Product=
MgrProduct=
OpenwinFS=
OptFS=
UsrFS=
VarFS=
ClientFS=
pkglist=
newpkglist=
client=no
is_a_root_pkg=no
is_an_instpatches=no
ret=
curdir=
PatchNum=
PatchBase=
PatchVers=
PatchMethod=
PatchType=
printpatches=no
ThisPatchFnd=no
ObsoletedBy=none
ReqdOSPatch=none
rootlist=
isapplied=no
libs_are_moved=no
useRecFiles=no
Root_Kbytes_Needed=0
Kbytes_Required=0
Opt_Kbytes_Needed=0
Openwin_Kbytes_Needed=0
Usr_Kbytes_Needed=0
Client_Kbytes_Needed=0
Var_Kbytes_Needed=0
ReqArrCount=0
ReqdPatchCnt=0
Something_Installed=0
pkgErrGlob=
+ function print_usage
/installpatch: function: not found
+ cat
Usage: installpatch [-u] [-d] [-V] [-B <backout_dir>]
[-S <service> | -R <client_root_path>] <patch>
installpatch [-u] [-d] [-V] [-B <backout_dir>]
[-S <service> | -R <client_root_path>]
-M <patch_directory> <patch_id>... | <patch_file>
installpatch [-S <service> | -R <client_root_path>] -p
Options:
-u Turn off file validation. Allows the patch to be
applied even if some of the files to be patched have
been modified since original installation.
-d Don't back up the files to be patched. This means
that the patch can't be backed out.
-d and -B are mutually exclusive.
-p Print a list of the patches currently applied
-V Print script version number
-B Save backout data to a location other than the default
-S <service>
Specify an alternate service (e.g. Solaris_2.3) for
patch package processing references. Cannot be specified
with the -R option.
-R <client_root_path>
Define the full path name of a subdirectory to use as the
root_path. All package system information files are assumed
to be located in a directory tree starting in the
specified root_path. All patch files generated from the
installpatch will be located in the same directory tree.
Cannot be specified with the -S option.
-M <patch_directory> <patch_id>... | <patch_file>
Specify one or more patchids on the command line. These patches
must be physically located in the patch directory.
Specify a file that contains a list of patches to be installed.
This file must be physically located in the patch directory
+ function patch_quit {
/installpatch: function: not found
+ [[ !=
/installpatch: [[: not found
+ [[ . -ne 0 ]]
/installpatch: [[: not found
+ [[ none != none
/installpatch: [[: not found
+ remove_files
/installpatch: remove_files: not found
+ exit .
/installpatch: .: bad number