patchadd error


 
Thread Tools Search this Thread
Operating Systems Solaris patchadd error
# 1  
Old 08-13-2008
Question patchadd error

Greetings All-

I ran into this problem today and was curious if anyone else had seen it.

I am attempting to add patch 137402-02 on a v890 running Sol9.

Here's the error I get:

#> patchadd 137402-02

Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...

Patch 137402-02 failed to install due to a failure produced by pkgadd.

See /var/sadm/patch/137402-02/log for details

Patchadd is terminating.


Checking the specified log file I get:

# cat /var/sadm/patch/137402-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.

/export/home/hed0431/137402-02/SUNWsadmi/install/checkinstall: /export/home/hed0 431/137402-02/SUNWsadmi/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.

The special instructions for this patch require taking the system to Single user mode:

# who -r
. run-level S Aug 13 11:57 S 1 3


Has anyone seen this before? Anyone? Bueller? Smilie
# 2  
Old 08-13-2008
I've not seen this error, but one thing that comes to mind immediately is to do a "showrev -p | grep 137402" and see if that version or newer is already there.
# 3  
Old 08-13-2008
rhfrommn-

Thanks for the reply. I tried that and the patch does not exist on the system. This patch upgrades (replaces?) the SUNWsadmi pkg.

I had thought of running 'pkgrm SUNWsadmi' and then running the patchadd again, but I don't think that will work either. Smilie
# 4  
Old 08-13-2008
Another guess, it looks like maybe patchadd isn't finding the files correctly. I believe patchadd expects them in a certain place, but your output makes it look like the patch is in your home directory (?) Check the manpage to see how to specify where to get the patches from. Maybe go to the directory you have it in and do "patchadd -d . 137402-02" or similar. Or try giving the full pathname instead of going to the directory and using the ".".
# 5  
Old 08-13-2008
try using the full path such as /var/spool/pkg/137402-02
# 6  
Old 08-14-2008
copy the patch to /var/tmp dir
cd /var/tmp
patchadd -d .
# 7  
Old 08-14-2008
Solved!

I moved the patch to /var/spool/patch and ran:

# patchadd /var/spool/patch/137402-02

Kinda weird though, I've alway been able to install a patch from anywhere on a system.

Thanks to all who responded!!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

I am new & I have a question about patchadd in Solaris 11

Hi guys, I am really new to Solaris. My question is about the patching package management. Now I was provided some old packages within that there are hard-coded codes written with commands like "patchadd", so anyway I can make them work with Solaris 11? Cheers! (8 Replies)
Discussion started by: ethanzhou
8 Replies

2. Cybersecurity

How to limit patchadd command to root user only?

How to limit patchadd command to root user only? I'm running a solaris 10 5/09 server, I have 2 users other than root. One being able to use the patchadd command and one is unable to do so. What I'm trying to do is to limit the patchadd command so that only root is able to run it. (7 Replies)
Discussion started by: ShouTenraku
7 Replies

3. UNIX for Dummies Questions & Answers

> 5 ")syntax error: operand expected (error token is " error

im kinda new to shell scripting so i need some help i try to run this script and get the error code > 5 ")syntax error: operand expected (error token is " the code for the script is #!/bin/sh # # script to see if the given value is correct # # Define errors ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies

4. Solaris

patchadd -p ,, basic question

greetings, I am new to solaris, have a basic question. I have to check for patch 137111-04 (as prerequisite) for installing Oracle. # patchadd -p | grep 137111-04 # patchadd -p | grep 137111 Patch: 137137-09 Obsoletes: 120741-01 120986-12 120992-02 121008-02 121274-01 121414-01... (2 Replies)
Discussion started by: mubeenmd
2 Replies

5. Solaris

patchadd command

# patchadd /Desktop/117837-08.jar Validating patches... Loading patches installed on the system... Done! Loading patches requested to install. Done! The following requested patches have packages not installed on the system Package SPROcc from directory SPROcc in patch 117837-08 is... (19 Replies)
Discussion started by: seyiisq
19 Replies

6. Solaris

patchadd fails to apply a patch

Hello, I'm trying to apply the patch on Solaris 9 : $/jac/update$ patchadd ./112945-46 Checking installed patches... One or more patch packages included in 112945-46 are not installed on this system. Patchadd is terminating. The error message is not really talkative so I had a... (7 Replies)
Discussion started by: Tex-Twil
7 Replies

7. Solaris

Patchadd error

Hi, I have a Sun fire V280R server and when i updated the kernel patch i got this error. mdb not found: patchadd not safe. /kernel/dacf/sparcv9/usb_ac_dacf: undefined symbol 'am_attach' /kernel/dacf/sparcv9/usb_ac_dacf: undefined symbol 'am_src2' /kernel/dacf/sparcv9/usb_ac_dacf: undefined... (3 Replies)
Discussion started by: Jartan
3 Replies

8. Solaris

patchadd/patchrm

Ok, I attempted to apply a patch to a V440 and it bailed part way through. When I tried to patchrm the patch (after booting from CD), patchrm said that I had to fully install the failed patch before I could delete it. Since installing it killed the system forcing a boot from CD, it sounds like a... (4 Replies)
Discussion started by: BOFH
4 Replies
Login or Register to Ask a Question