# patchadd error

**URL:** <https://community.unix.com/t/patchadd-error/208506>\
**Category:** Solaris\
**Created:** [August 13, 2008, 12:07pm UTC](https://community.unix.com/t/patchadd-error/208506 "2008-08-13T12:07:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluescreen](https://community.unix.com/letter_avatar/bluescreen/32/5_5575768a8748004e209b776fc1b2916d.png) [@bluescreen](https://community.unix.com/u/bluescreen)\
**Post date:** [August 13, 2008, 12:07pm UTC](https://community.unix.com/t/patchadd-error/208506/1 "2008-08-13T12:07:29Z")

</div>

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? 😕

---

<div class="post-metadata">

**Author:** ![rhfrommn](https://community.unix.com/letter_avatar/rhfrommn/32/5_5575768a8748004e209b776fc1b2916d.png) [@rhfrommn](https://community.unix.com/u/rhfrommn)\
**Post date:** [August 13, 2008, 1:10pm UTC](https://community.unix.com/t/patchadd-error/208506/2 "2008-08-13T13:10:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bluescreen](https://community.unix.com/letter_avatar/bluescreen/32/5_5575768a8748004e209b776fc1b2916d.png) [@bluescreen](https://community.unix.com/u/bluescreen)\
**Post date:** [August 13, 2008, 2:06pm UTC](https://community.unix.com/t/patchadd-error/208506/3 "2008-08-13T14:06:00Z")

</div>

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. ☹

---

<div class="post-metadata">

**Author:** ![rhfrommn](https://community.unix.com/letter_avatar/rhfrommn/32/5_5575768a8748004e209b776fc1b2916d.png) [@rhfrommn](https://community.unix.com/u/rhfrommn)\
**Post date:** [August 13, 2008, 2:21pm UTC](https://community.unix.com/t/patchadd-error/208506/4 "2008-08-13T14:21:29Z")

</div>

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 ".".

---

<div class="post-metadata">

**Author:** ![pupp](https://community.unix.com/user_avatar/community.unix.com/pupp/32/846_2.png) [@pupp](https://community.unix.com/u/pupp)\
**Post date:** [August 13, 2008, 6:17pm UTC](https://community.unix.com/t/patchadd-error/208506/5 "2008-08-13T18:17:20Z")

</div>

try using the full path such as /var/spool/pkg/137402-02

---

<div class="post-metadata">

**Author:** ![incredible](https://community.unix.com/letter_avatar/incredible/32/5_5575768a8748004e209b776fc1b2916d.png) [@incredible](https://community.unix.com/u/incredible)\
**Post date:** [August 14, 2008, 3:51am UTC](https://community.unix.com/t/patchadd-error/208506/6 "2008-08-14T03:51:24Z")

</div>

copy the patch to /var/tmp dir  
cd /var/tmp  
patchadd -d .

---

<div class="post-metadata">

**Author:** ![bluescreen](https://community.unix.com/letter_avatar/bluescreen/32/5_5575768a8748004e209b776fc1b2916d.png) [@bluescreen](https://community.unix.com/u/bluescreen)\
**Post date:** [August 14, 2008, 11:15am UTC](https://community.unix.com/t/patchadd-error/208506/7 "2008-08-14T11:15:35Z")

</div>

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!!

---

<div class="post-metadata">

**Author:** ![pupp](https://community.unix.com/user_avatar/community.unix.com/pupp/32/846_2.png) [@pupp](https://community.unix.com/u/pupp)\
**Post date:** [August 14, 2008, 3:39pm UTC](https://community.unix.com/t/patchadd-error/208506/8 "2008-08-14T15:39:04Z")

</div>

you don't have to place it in /var/spool/patch but i was trying to point out to use the full path.

i've seen it where patchadd -d . won't work. it was always solved with full path to patch file.
