SUMMARY: patchadd/pkgadd failed for 114219-11

From: Gold Sun <goldsun8_at_yahoo.com.sg>
Date: Fri Apr 29 2005 - 11:13:00 EDT
Hi,
 
Received numerous replies & I've extracted the following
few which basically give similar solutions.  Apologies
that I'm unable to name the lengthy list of contributors.
 
Raymond Jackson
  I just hit this one yesterday.  At some point the patchadd
process does an su to the install user if one exists, otherwise
to user nobody.  If the patch files and all parent directories
aren't readable by install/nobody, you get exactly the error
you report.  For me setting execute permission for all on
/var/spool/patch fixed the problem.
 
==================================================
 
You can workaround this in two ways, one is to make sure that the user 
"nobody" 
can read all patch files and execute a "pwd" in the patch directory or 
add an 
account "install" to /etc/passwd:
 install:x:0:1:installpatch braindamage:/:/bin/true
Installpatch and patchadd use "nobody" as a fallback if it cannot find 
the 
"install" user. 
You indicated that you'd checked the permissions on the
subdirectories  for world readability, but did you check
the permissions on the directories in the path above the
patch directory?

=========================================
 
I've gone insane trying to resolve this before. This may not be your
problem, but I think you'll find you need world read all the way to
root (/) wherever the patch is.

Uh... http://www.science.uva.nl/pub/solaris/solaris2.html#q5.59 says
 If any of the patch files or if any part of the path leading up to the
 patch directory cannot be read by nobody, an error similar to the
 following will appear:...
.
 
===================================

Gold Sun <goldsun8@yahoo.com.sg> wrote:Hi,

Received several suggestions (I appreciate it) but it's still not
resolved yet. I've inserted below replies to requests for more
information :


A)I've verified that all directories/file under the patch
directory has world read, rerun patchadd/pkgadd &
still got the same error. Then I issued "umask 022"
from another suggestion & rerun again & still getting
the same error

B)return status code is 5 :
one reply asks for "echo #?" to see what's the
status code but it always give a blank output
& so I issued "echo $?" which gave "5" as
follows (note: pkgadd returns "3") :
# patchadd -d /home/9mydir/patch/114219-11
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Patch 114219-11 failed to install due to a failure produced by pkgadd.
See /var/sadm/patch/114219-11/log for details
Patchadd is terminating.
# echo $?
5



C) Content of /var/sadm/patch/114219-11/log :
(I've inserted in between **...** my remarks) :
Package not patched:
PKG=SUNWdtim
Original package not installed.
This appears to be an attempt to install the same 
architecture and
version of a package which is already installed.
This installation
will attempt to overwrite this package.
** I believe this is because 114219-11 contains 2 **
** packages, SUNWdtim & SUNWolrte, & SUNWolrte **
** is already installed : **
** # pkginfo | grep -i Wolrte **
**system SUNWolrte OPEN LOOK toolkits runtime environment**
/home/9mydir/patch/114219-11/SUNWolrte/install/checkinstall: /home/9mydir/patch/
114219-11/SUNWolrte/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.


Do I need to do "pkgrm" to remove a certain package which
may be hindering this or is it this patch is not applicable as
this box is missing some pre-requisite packages?


Thanks
G Sun

Gold Sun wrote:
Hi,

I'm asked to patch a security vulnerability & I refer to url 

http://sunsolve.sun.com/search/document.do?assetkey=1-26-57769-1&searchclause=


After downloading the normal unsigned patch from Sun website
indicated in the above url for Solaris 9, the patch could not install
(I did "sudo -s" to gain root privilege on our hardened box) :

# pkginfo | grep -i tiff
system SUNWTiff libtiff - library for reading and writing TIFF
#
# patchadd -d ./114219-11
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Patch 114219-11 failed to install due to a failure produced by pkgadd.
See /var/sadm/patch/114219-11/log for details
Patchadd is terminating.
#
#
# patchadd -d ./114219-11
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Patch 114219-11 failed to install due to a failure produced by pkgadd.
See /var/sadm/patch/114219-11/log for details
Patchadd is terminating.
# pkgadd -d ./114219-11
The following packages are available:
1 SUNWdtim Solaris CDE Image Viewer
(sparc) 1.5,REV=10.2002.03.13
2 SUNWolrte OPEN LOOK toolkits runtime environment
(sparc) 3.7.0,REV=1.2001.10.12
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance from 
Solaris CDE Image Viewer
(sparc) 1.5,REV=10.2002.03.13
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
## Executing checkinstall script.
PaTcH_MsG 8 Version 1.5,REV=10.2002.03.13 of SUNWdtim is not installed on this system.
checkinstall script suspends
Installation of was suspended (administration).
No changes were made to the system.
There is 1 more package to be installed.
Do you want to continue with installation [y,n,?] y
Processing package instance from 
OPEN LOOK toolkits runtime environment
(sparc) 3.7.0,REV=1.2001.10.12
Copyright 2001 Sun Microsystems, Inc. All rights reserved.
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
## Executing checkinstall script.
/home/9mydir/patch/114219-11/SUNWolrte/install/checkinstall: /home/9mydir/patch/114219-11/SUNWolrte/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Installation of failed.
No changes were made to the system.


I verify that the above patch is relevant to my system as follows :
# pkginfo | grep -i tiff
system SUNWTiff libtiff - library for reading and writing TIFF
#
# cd /usr/openwin/lib
# ls *tif*
libtiff.so libtiff.so.3

Hope I have not corrupted anything & I promise to summarize
this one.

Many thanks in advance
G Sun

Yahoo! Mobile
- Download the latest ringtones, games, and more!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers

Yahoo! Mobile
- Download the latest ringtones, games, and more!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


 Yahoo! Mobile
- Download the latest ringtones, games, and more!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Apr 29 11:16:35 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:46 EST