Help me install patches on 2.5.1!!! (It worked under 2.4)

Help me install patches on 2.5.1!!! (It worked under 2.4)

Post by Mike Carls » Sat, 14 Jun 1997 04:00:00



(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

 
 
 

Help me install patches on 2.5.1!!! (It worked under 2.4)

Post by Casper H.S. Dik - Network Security Engine » Sun, 15 Jun 1997 04:00:00



>     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.
>     This has happened for all but three patches!  (Two net performance
>patches and an admintool one).

If you have Solaris 2.5.1, as you say, then that is no suprise; you tried
installing a 2.5 patch.  The patch procedure will refuse to install patches
for packages you dont' have installed.   Packages are compared based
on name, architecture and version number; different OS releases have different
version numbers.  You need patch #103663-07

Quote:>     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. :(

Better unmess; packages come with pkginfo files for each package tehy
patch, similarly, a pkginfo file for each installed pkg is available
under /var/sadm/pkg/<SUNWpkg>.  The apprpriate variables must matcho

I think the following three are compared:

ARCH=sparc
VERSION=11.5.1,REV=97.05.27.13.11
PKG=SUNWcsu

Quote:>     This is happening on two seperate  (plain vanilla) machines, so I'm not
>sure what is happening.

The patch is not applicable.

Quote:>     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:

That doesn't work; installpatch is a ksh script.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

1. Patch to get Solaris 2.4 PPP working with Win95 PPP (it exists, but where is it?)

I read in the "SunService Tip Sheet for Sun PPP"

that there is a t-patch:
T102854-01 (sparc) and T102855-01 (x86) to fix:

 Windows 95 PPP causes Solaris to crash every time

Where can I get it?

Thanks,

e-mail will get to me faster, but a response on the net will most likely be
appreciated by all the people who have been waiting for this patch.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Francois Felix INGRAND        "La guerre, qu'on voit danser le long des golfes


2. Printer Spool Problem

3. xemacs 19.12 fails after Solaris 2.4 patch install

4. Program just sleep around doing nothing after ~30 minutes

5. NFS problems after install of the 101945-23 patch for 2.4

6. IDENT daemon for Solaris 7 / 64-bit kernel?

7. How can I check the patches installed in Solaris 2.4?

8. 3c905B & 2.2.4 kernel

9. How to install a PATCH file in Solaris 2.4 ?

10. May Patch driver 7 install Solaris 2.4?

11. Solaris 2.4 x86 101946-12 patch install failure (error 10)

12. 2.3 patch 102028 -> 2.4 patch ??????

13. PROBLEM: my Aviator Webgear 2.4 doesn't work with kernel version 2.4.x