Unable to apply patch 119254-59 - Systems Maintenance(Archived)

I have been attempting to install the Solaris Update 6 10/08 patch set, I have a few systems that can't be reloaded but would benefit from an update from a previous Solaris update and have been running into some issues specifically related to patch 119254-59. The patch bundle starts up and finds patches 120900-04 and 121133-02 and so skips their installation. It then starts in on patch 119254-59 and fails telling me to look at the logs. I open the log at /var/sadm/patch/119254-59/log and find this...
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.
/disk/trump/ody/10_sparc_1008_patchbundle/patches/119254-59/SUNWinstall-patch-utils-root/install/checkinstall: /disk/trump/ody/10_sparc_1008_patchbundle/patches/119254-5
9/SUNWinstall-patch-utils-root/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.This is a recently unzipped patch bundle and the checkinstall scripts do certainly exist. Any ideas on what the package is really failing on? 

Solaris 2 FAQ
http://www.science.uva.nl/pub/solaris/solaris2.html#q5.59
5.59) Patch installation often fails with "checkinstall" errors.
When installing a patch, the Solaris 2.5+ patch installation procedure will execute the script "checkinstall" with uid nobody.
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:
patchadd .                    # or ./installpatch .
Generating list of files to be patched...
Verifying sufficient filesystem capacity (exhaustive method) ...
Installing patch packages...
pkgadd: ERROR: checkinstall script did not complete successfully
....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.
--
Darren 

Wow, that solved all my problems and made my day! babababy
Edited by: babababy on Jun 25, 2009 4:10 AM 

I guess the user nobody is not allowed to enter the directory you have your patches unzipped.
Try this:
mv /disk/trump/ody/10_sparc_1008_patchbundle /10_sparc_1008_patchbundleand run the installer there.

Related

Installation Problem

I am trying to install Sun Studio in a new Solaris 10 x86 Windows VMWare VM -
I get this message.
# ./installer
uct-Warning: Cannot convert string "-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct
Java Accessibility Bridge for GNOME loaded.
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!
Approved patches will be installed in this order:
124864-01
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Patch 124864-01 failed to install due to a failure produced by pkgadd.
See /var/sadm/patch/124864-01/log for details
Patchadd is terminating.
# more /var/sadm/patch/124864-01/log
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/bill/Studio/install-intel-S2/product-patches-intel-S2/124864-01/SPROcpl/in
stall/checkinstall: /home/bill/Studio/install-intel-S2/prodpatches-intel-S2/
124864-01/SPROcpl/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.
#
I tried this earlier, and the uninstaller failed with a java error about uninstall_Sun_Studio_12.class - but this time the uninstaller seems to have worked. Any idea why checkinstall cannot open?
it is there:
/home/bill/Studio/install-intel-S2/product-patches-intel-S2/124864-01/SPROcpl/install
-bash-3.00$ ls -alt
total 62
drwxrwxr-x 2 root other 512 Jul 25 2007 .
drwxrwxr-x 4 root other 512 Jul 25 2007 ..
-rwxr-xr-x 1 root other 4985 Jul 25 2007 checkinstall
-bash-3.00$ df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0d0s0 29G 5.7G 23G 20% / 
From the error messages, there are few possible reasons
- Some corrupted Sun Studio package still exist when you try to do the installation
- checkinstall problem
- VMware problem. Sun Studio may not support this configuration yet.
Before I want to blame VMware configuration or checkinstall for this problem, I would do the following checking:
- Check to see if the all the Sun Studio packages was removed when you do uninstall. Sometime, uninstall did not successfully remove all the packages as it suppose to
% pkginfo | grep SPRO
If you found any, please do pkgrm manually to remove every single one.
- re-install the product again 
Thanks for your response.
- Some corrupted Sun Studio package still exist when you try to do the installationThe install failure/error occurs in the initial install - so unless these "corrupt packages" are in the OS by default, not sure how this would be an issue?
On full uninstall of Sun Studio, and reinstall, I get the same error.
I forgot to mention I'm using the latest Solaris 10 x86 u5 - this has happened for both x86 and x64 VMs (on Mac VMWare x64 and Windows VMWare x86).
- VMware problem. Sun Studio may not support this configuration yet.I wonder how Sun Studio would know it's running in a VM?
- Check to see if the all the Sun Studio packages was removed when you do uninstall. Sometime, uninstall did not successfully remove all the packages as it suppose to% pkginfo | grep SPRO
returns nothing after uninstall
????
The compiler seems to get installed, it fails in the second stage install of required patches netbeans, etc. Do you think without these I can still reliably compile solftware? I don't really plan to use the IDE anyway.
Thanks again!
s 7
# more log
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/bill/Studio/install-intel-S2/product-patches-intel-S2/124864-01/SPROcpl/in
stall/checkinstall: /home/bill/Studio/install-intel-S2/product-patches-intel-S2/
124864-01/SPROcpl/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.
# showrev | grep 124864
returns nothing 
I think at this moment, the work around solution is not to install the patch during the installation
So you need
- uninstall completely including checking to see if any package SPRO* is left
- install the product again but de-select the option to install the patch.
About VMware, there are few complains that the product installed OK on the same system but fail when this system configurated with VMware 
Yes - this seems to have installed without error.
I tried installing the later 124864-04 post install but received the same error... 
So this is not the VMware problem since you can installed OK. This is the 124864-04 patch issue those. Let me check with the patch group on this. 
Can you give me exactly the error when you install the patch alone by running patchadd command (not thru installer) 
I received the same error:
bash-3.00# /usr/sbin/patchadd -d 124864-04
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!
Approved patches will be installed in this order:
124864-04
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Patch 124864-04 failed to install due to a failure produced by pkgadd.
See /var/sadm/patch/124864-04/log for details
Patchadd is terminating.
bash-3.00#
bash-3.00# more /var/sadm/patch/124864-04/log
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/bill/124864-04/SPROcpl/install/checkinstall: /home/bill/124864-04/SPROcpl/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.
bash-3.00#
I think the issue might be vmware related, because I tried installing an unrelated patch, and got the same type of error (it was 120229-28 for messaging server).
Thanks for any help.
s7 
I think i know why this is happening:
I had a similar issue before, I googled, and found - http://www.science.uva.nl/pub/solaris/solaris2.html
So I moved the patch directories to / - and tried from there, and it seems to be working. patching now.
I had been running the patch installs and the initial Sun Studio install from my /home dir -
which as the post above mentions, if it is not readable by nobody - somewhere in the path - it will fail.
I think Studio would probably also install if I move it to a better install directory like /.
Thanks!
s7
p.s. Studio did install from /.
Edited by: starman7 on Jun 13, 2008 3:16 PM

Problems installing DST patch on Solaris 9 x86 server

Hi,
I've been attempting to install the DST patch 116545.XX on my Sun Fire v40z server (running Solaris 9 x86) and I keep getting the following error message:
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.
/Patches/9_x86_Recommended/116545-06/SUNWcsu/install/checkinstall: /Patches/9_x86_Recommended/116545-06/SUNWcsu/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.
I get the same message for the 114432.xx patch as well. Has anyone run into a similar problem... If so, how did you resolve it. Any help (or suggestions) will greatly be appreciated.
Thanks.
Moe
Message was edited by:
MOE 
Can you show the exact command line you are using?
Where is the patch? Since portions of the routine run as an unprivileged user, you need full read/execute permissions along the path to the patch.
--
Darren 
The first time I saw the error was when I was installing March's recommended patch cluster for Solaris 9x86 using the 'install_cluster' script that's provided with the cluster. I was logged in as root at the time in single user mode. I then attempted to install the DST patches individually as follows (logged in as root in Single usermode):
cd /opt/patches/9_x86_recommended; patchadd `pwd`/116545-06 
The first time I saw the error was when I was
installing March's recommended patch cluster for
Solaris 9x86 using the 'install_cluster' script
that's provided with the cluster. I was logged in as
root at the time in single user mode.How you're logged in doesn't matter. Some of the utilites that patchadd/pkgadd run to do verification run as an unprivilged user. That means that if /Patches/9_x86_recommended (or /opt/patches/9_x86_recommended depending on the data you've shown) can't be read by a normal user, it's going to fail.
See also:
http://www.science.uva.nl/pub/solaris/solaris2.html#q5.59
5.59) Patch installation often fails with "checkinstall" errors.
--
Darren 
Thanks for the information Darren...
At the end the month, I will attempt installing the patches again with the install user created (and with the correct permissions applied through the patch directory) and see what happens... I will update you with my findings. Thanks again.
Moe 
I didn't create the install user but did apply "chmod o+rx" to the parent directory that the Patches folder was under. After doing this, the DST patches installed without any problems.
Thanks again!

Sun Studio 11 patches 120760-03 121015-02

Solaris 10 (01/2006) was loaded anew on a host. The Sun Studio 11 packages were also loaded on it.
Packages 120760-03 and 121015-02 were suggested. They would not install unless the option "pkgadd -G /var/sadm/spool/120760-03.jar.dir" was used. I applied the patches manually with the "-G" option. It worked saying that it was not necessary to do this patch.
When I ran "cc -o a.out example.cc", I now get a run-time error saying "/opt/ss11/SUNWspro/prod/bin/acomp" killed trying to open libyabe.so.
I will now uninstall the whole Studio 11 and try again. You can see why I am sorry that I attempted these two patches. I will report back once I uninstall and re-install the Sun Studio 11 codes. 
I installed Sun Studio 11 anew. I ran updatemanager and I get the message: Install of update failed. Utility used to install the update is not able to add packages. Utility used to install the update failed with exit code 5.
I went to the location "/var/sadm/patch/120760-03" and looked at the log. It mentioned that the package SPROlang was already installed. I must specify the -G option. To install the new instance of this package ... and then install the new instance of this package in all zones. I am not zone educated. I guess is that the global one is fine. What do I do to get pass the hurdle. I am reluctant to remove the packages "SPROcc", "SPROlang" and "SPROlangx" and try this again.
I would need help interpreting what to do next. I installed the Sun Studio 11 under the base location "/opt/ss10/...". I might try the pkrm again with the extra syntax. 
Sun incident 64979050 was opened to check this issue out.
They acknowledged these problems based on Solaris 10 security features. They said to refer to bug ids 6337009, 6216434, 6374972 and 6214678.
They think that it will be resolved when Solaris 10 Update 1 is released. I am only passing this information on as terse as I can. 
Sun closed out the request. Initially they thought that the problem could be fixed if I was running at Solaris 10 update 1. All along the way, I have been running the latest 01/2006 and I have been religiously patching with updatemanager. They do think it is a bug. Perhaps they will report it in another bug id. 
I have had some errors while trying to install Sun Studio 11 patches from updatemanager, too. I cannot confirm which patches I tried, but for all of them installation failed with this error. I didn't try to install them manually with -G. I wonder if there is another way to install Sun Studio 11 so that it gets installed in all zones and stops complaining when I try the updates.
-- Douglas 
I have the same problem with patches, 121016-02, 121020-02, 120759-04, and 121018-02.
Manually installing with the -G option didn't lead to a successful installation either. 
Hi all.
Could one (or more!) of you post the errors you are getting when trying to install, and the syntax used? 
I will not be able to reproduce the circumstances. The customer had me uninstall Sun Studio 11 and install the buggier Sun Studio 10 for unrelated reasons.
The message for patches 120760-03 and 121015-02 should be easy to reproduce. I used the patch manager and it failed stating to try the install using a different technique. 
The following are the failed installation messages from the Sun Update Manager:
121016-02
Sun Studio 11_x86: Patch for Sun C_x86 5.8 Compiler
Failed
Install of update failed. Utility used to install the update is not able to add packages. Utility used to install the update failed with exit code 5.
121020-02
Sun Studio 11_x86: Patch for x86 Fortran 95 8.2 Compiler
Failed
Utility used to install the update failed with exit code {0}.
120759-04
Sun Studio 11_x86: Sun Compiler Common patch for x86 backend
Failed
Install of update failed. Utility used to install the update is not able to add packages. Utility used to install the update failed with exit code 5.
121018-02
Sun Studio 11_x86: Patch for Sun C++ 5.8 compiler
Failed
Utility used to install the update failed with exit code {0}.
Log files:
# more /var/sadm/patch/121016-02/log
pkgadd: ERROR: The package <SPROcc> is currently installed on the system in the
global zone. To install the new instance of this package in the global
zone only, you must specify the -G option. To install the new instance
of this package in all zones you must first remove the existing instance
of this package from the global zone first (via pkgrm) and then install
the new instance of this package in all zones.
pkgadd: ERROR: package <SPROcc> cannot be installed on this system/zone
# more /var/sadm/patch/120759-04/log
pkgadd: ERROR: The package <SPROlang> is currently installed on the system in the
global zone. To install the new instance of this package in the global
zone only, you must specify the -G option. To install the new instance
of this package in all zones you must first remove the existing instance
of this package from the global zone first (via pkgrm) and then install
the new instance of this package in all zones.
pkgadd: ERROR: package <SPROlang> cannot be installed on this system/zone
Finally, attempting patchadd with -G:
# patchadd -G 121016-02
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!
Approved patches will be installed in this order:
121016-02
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Patch 121016-02 failed to install due to a failure produced by pkgadd.
See /var/sadm/patch/121016-02/log for details
Patchadd is terminating.
# more /var/sadm/patch/121016-02/log
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/hiduid/patches/121016-02/SPROcc/install/checkinstall: /home/hiduid/patches/121016-02/SPROcc/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.
# 
Can you try placing the patch in /tmp and installing it from there instead of from your home directory. Let us know if this helps. 
I have exactly this problem but with patches 121016-02, 120759-05, and 121020-02. I'm running Solaris 10 1/06 x86, Sun Studio 11, and Sun Update Manager v.1.04a. The only way I could get these patches to install was to manually remove all of the packages the patch installer complained about (pkgrm SPROcc, try to apply the patch, pkgrm the next package it complained about, and so on) until it stopped complaining. Then, install the patch with smpatch (patchadd doesn't work). Once the patch is installed, pkgadd all of the packages you removed (they're in the kits/ide/packages subdirectory of the installation tarball).
This is very tedious. If Sun admits this is a bug and is working on a fix, I recommend waiting for it. 
Can you try placing the patch in /tmp and installing
it from there instead of from your home directory.
Let us know if this helps.Thank you, patchadd -G worked for all 4 packages once they were placed in the /tmp directory. Any idea why Sun Update Manager is having trouble with these? 
That worked for me, too. Plus, it was much easier than my original method. :-)
Thanks. 
Any idea why Sun Update Manager
is having trouble with these?Yes it's a combination of different issues (see earlier in th thread for the bug id's) thats currently being investigated.

Unable to perform patch instructions

Hello!
The patch instructions for patch 126106-30 are stating that I should do this:
         If the version of the common agent container is less than 2.2.0.1,
         you must upgrade to version 2.2.0.1.  Install the SUNWcacaort package
         from the SC 3.2 U2 distribution or from the Solaris 10 U6 distribution.So I downloaded the 3.2U2 release of Sun Cluster and extracted it. There is a direcory Solaris_sparc/Product/shared_components/Packages/SUNWcacaort in it, but when I try to install it, I get this error:
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.
Solaris_sparc/Product/shared_components/Packages/SUNWcacaort/install/checkinstall: Solaris_sparc/Product/shared_components/Packages/SUNWcacaort/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Installation of <SUNWcacaort> failed.
No changes were made to the system.What exactly is wrong here? How urgent is the update of cacao?
TIA
Stephan 
After doing some more research myself, I found this bug report:
http://bugs.opensolaris.org/view_bug.do?bug_id=1236491
Moving the directory to /tmp solved the problem.

Errors installing patch 111858-01.

I ran 111858-01 patch install, however, keep getting the following
error:
/var/sadm/patch/111858-01/log
----------------------
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.
/opt/temp/itps20beta/imq2.0/SP1/111858-01/SUNWjqapi/install/checkinstall:
/opt/temp/itps20beta/imq2.0/SP1/111858-01/SUNWjqapi/install/checkinstall:
cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.
----------------------
I have verified (./jmqbroker -v) that the patch has not been installed.
How do I resolve this error? 
Looks like the system thinks the patch is already installed.
Can you try uninstalling the patch and installing the patch again?
As root,
./backoutpatch 111858-01 
Remember that pkgadd runs checkinstall as user 'install' or 'nobody'
http://www.science.uva.nl/pub/solaris/solaris2.html#q5.59
Also, when pkgadd creates a temporary directory, it uses the
env var TMPDIR if it exists.

Categories

Resources