SUMMARY: patchadd/pkgadd failed for 114219-11

From: Gold Sun (goldsun8_at_yahoo.com.sg)
Date: 04/29/05

  • Next message: Scott Watters: "Looking for 4,1,4 drivers for X1059A"
    Date: Fri, 29 Apr 2005 23:13:00 +0800 (CST)
    To: sunmanagers@sunmanagers.org
    
    

    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


  • Next message: Scott Watters: "Looking for 4,1,4 drivers for X1059A"

    Relevant Pages

    • Re: zonepath on SVM soft partition?
      ... and I have a problem installing the big kernel patch. ... Loading patches installed on the system... ... Loading patches requested to install. ... Version of package SUNWcakr from directory SUNWcakr.v in patch ...
      (comp.unix.solaris)
    • Re: pca: List patches with "Special Install Instructions"?
      ... for conscientous admins, a sitewide whitelist would help, ... Have one directly in pca for those where the special install instructions are blatantly wrong and useless, and a local list for those which the admin has read and deemed to be ignorable. ... Looking at the code has become more complicated since patchadd isn't a shell script anymore. ... BTW, not sure if I ever mentioned, but these patches had an interesting way of enforcing a reboot before any other patch could be installed. ...
      (comp.unix.solaris)
    • Re: Office 2003 Updates error - ouerror.gif (0/1)
      ... it would not let me install ... attempting to install any of the individual, downloaded patch EXE?s? ... No valid sequence could be found for the set of patches. ... Office Professional Edition 2003 Version 11.0.6361.0: ...
      (microsoft.public.officeupdate)
    • Errors applying kernel patch 118833-36
      ... install of Solaris 10 11/06. ... However, once the package list is done, I see a worrisome message: ... Below is the complete console output of the patch run. ... Changes for package SUNWnfsskr will not be applied to the system. ...
      (SunManagers)
    • problem installing patches ufter upgrade of Solaris 10u2
      ... download directory. ... Failed to install patch 119081-23. ... Reason code:0 ...
      (SunManagers)