Errors When Trying to Install Sun Update Connection Software

Hello

I am trying to install the Sun Update Connection software on a relatively fresh install of Solaris 10 x86 running on a Sun AMD workstation. When running the installer I get the following error:

Patch 119575-01 failed to install due to a failure produced by pkgadd.

See /var/sadm/patch/119575-01/log for details

The indicated log file contains:

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.

/home/bjl/tmp2/updateConnection/patches/119575-01/SUNWcsu/install/checkinstall: /home/bjl/tmp2/updateConnection/patches/119575-01/SUNWcsu/install/checkinstall: cannot open

pkgadd: ERROR: checkinstall script did not complete successfully

Dryrun complete.

No changes were made to the system.

This is my first attempt at installing the software so there should be no previous installations to worry about. I do not currently show patch number 119575-01 in my list of installed patches. The only other major software install I have done is Sun Studio 10. I have been using "smpatch update" to install patches onto the system up to this point.

Can anyone provide me with advice as to how I might get the Sun Update Manager Client software to install successfully?

[1367 byte] By [BJLineham] at [2007-11-26 6:02:26]
# 1
Hi. Can you do ls -l /home/bjl/tmp2/updateConnection/patches/119575-01/SUNWcsu/installThanksDina
DinaSelim at 2007-7-6 13:25:51 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2

As requested:

[1]$ ls -l /home/bjl/tmp2/updateConnection/patches/119575-01/SUNWcsu/install

total 58

-rwxr-xr-x1 bjlstaff4985 May 13 07:48 checkinstall

-rwxr-xr-x1 bjlstaff 93 May 13 07:48 copyright

-rwxr-xr-x1 bjlstaff5768 May 13 07:48 i.none

-rwxr-xr-x1 bjlstaff1555 May 13 07:48 patch_checkinstall

-rwxr-xr-x1 bjlstaff824 May 13 07:48 patch_postinstall

-rwxr-xr-x1 bjlstaff6703 May 13 07:48 postinstall

-rwxr-xr-x1 bjlstaff6572 May 13 07:48 preinstall

BJLineham at 2007-7-6 13:25:51 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3

The 'cannot open' is generally a permission problem.

pkgadd calls the checkinstall script as the user 'install'

(if present on the system) or 'nobody'.

If this user does not have permission to read the checkinstall

file, then there will be an error.Based on the 'ls -l', it looks

like everyone should be able to read the file. You may try

su-ing to nobody and try to view checkinstall as a test.

Regarding the msg 'This appears to be an attempt to install the

same architecture . . .'; don't worry about that. This patch is

updating the SUNWcsu package (core solaris), which is already

on the system.

I would double check anything related to user or permissions.

jgillin at 2007-7-6 13:25:51 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4
Thank you both for your assistance. The problem was that "nobody" couldn't read the file while it was in my home directory. I move the files and the installation proceeded just fine.
BJLineham at 2007-7-6 13:25:51 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5
hi,just like to say this fix worked for me also.that is to say, moving the installation directories from a user home account to /tmp.i'm guessing the account which the patches are installed by can no cd through the directory structure.a.
tayloralj at 2007-7-6 13:25:51 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 6
Hi,.I can't resolve this problem. again "Patchadd is terminating"I don't know what can I do?# ls -ltotal 16-rwxrwxrwx1 nobodynobody1480 May 21 02:13 installUpdateConnectiondrwxrwxrwx4 nobodynobody153 May 21 02:13 patches
alp_ at 2007-7-6 13:25:52 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 7

This is a problem with many patches including some in the recommended cluster.

You must always assure that the parent directories are world read/exec from where you unzipped the patches. One of your parent dirs isn't world r x.

As stated above, user "nobody" needs to be able to get in there to run the check script.

Been this way since at least 1996, probably always ;-)

jwbledsoe at 2007-7-6 13:25:52 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 8
thanks for your tip about the user nobody, as in my case I've given nobody /sbin/noshell in my passwd file due to the OS hardening - and I was wondering why I couldn't install a patch ...
der_niki at 2007-7-6 13:25:52 > top of Java-index,Administration Tools,Sun Update Connection-System...