Operating System - HP-UX
1833875 Members
3302 Online
110063 Solutions
New Discussion

Re: patch install problems

 
Greta Blamire
Frequent Advisor

patch install problems

I'm trying to install some patches, I have to download the patches onto my PC, then transfer them (I use the binary protocol), then unshare them. Swinstall or swcopy just gives me the message "an I/O error occured", but I got these detail in the sw agent log:
* Started install agent on "/" for root@dev, pid=1309, 04/18/01
13:40:38 CDT
* Started source agent on "/u01/ux_patches/PHKL_20016" for
root@dev, pid=1313, 04/18/01 13:40:40 CDT
ERROR: tar: /u01/ux_patches/PHKL_20016 : This doesn't look like a tar
archive
ERROR: tar: /u01/ux_patches/PHKL_20016 : Skipping to next file...
ERROR: Read from serial depot file failed. Invalid argument (22).
ERROR: The INDEX file on the source did not exist or could not be
read.
ERROR: The target "/u01/ux_patches/PHKL_20016" could not be opened.
pid=1313 04/18/01 13:40:40 CDT
* Agent pid=1313 completed. 04/18/01 13:40:40 CDT
* Agent pid=1309 completed. 04/18/01 13:40:41 CDT
I did a search in the technical docs and forums but didn't see anything helpful. Any help would be appreciated.
If you can't face the facts, change them!
9 REPLIES 9
ajax13
Frequent Advisor

Re: patch install problems

Make sure you include the file type, which is depot.
Steffi Jones_1
Esteemed Contributor

Re: patch install problems

Hello Greta,

I'm sure you used all the right steps but I have seen still problems with the download.
The depot format of a patch is nothing else but a tar file, so you can actually run
tar tvf to verify that the patch is installable.
In most cases you would see a cksum error and a new download of the patch will fix it.

Steffi JOnes
Greta Blamire
Frequent Advisor

Re: patch install problems

Thanks, Steffi, but I didn't get an error with the tar:
dev:/u01/ux_patches#cp PHKL_20016.depot test.depot
dev:/u01/ux_patches#tar tvf test.depot
rw-r--r-- 0/3 2499 Oct 4 17:23 1999 catalog/INDEX
rw-r--r-- 0/3 559 Oct 4 17:23 1999 catalog/dfiles/INDEX
rw-r--r-- 0/3 136 Oct 4 17:23 1999 catalog/dfiles/INFO
r--r--r-- 0/3 941 Oct 4 17:23 1999 catalog/PHKL_20016/pfiles/INDEX
r--r--r-- 0/3 403 Oct 4 17:23 1999 catalog/PHKL_20016/pfiles/INFO
r--r--r-- 18825/171 4144 Oct 4 17:22 1999 catalog/PHKL_20016/pfiles/README
r-xr--r-- 18825/171 3377 Sep 28 12:45 1999 catalog/PHKL_20016/pfiles/postinsta
ll
r-xr--r-- 18825/171 3308 Sep 28 12:45 1999 catalog/PHKL_20016/pfiles/postremov
e
r--r--r-- 0/3 498 Oct 4 17:23 1999 catalog/PHKL_20016/CORE2-KRN/INDEX
r--r--r-- 0/3 290 Oct 4 17:23 1999 catalog/PHKL_20016/CORE2-KRN/INFO
r--r--r-- 0/3 501 Oct 4 17:23 1999 catalog/PHKL_20016/CORE2-KRN.2/INDEX
r--r--r-- 0/3 291 Oct 4 17:23 1999 catalog/PHKL_20016/CORE2-KRN.2/INFO
r--r--r-- 2/2 6164 Sep 28 11:47 1999 PHKL_20016/CORE2-KRN/mod_object.o
r--r--r-- 2/2 14536 Sep 28 11:47 1999 PHKL_20016/CORE2-KRN.2/mod_object.o
dev:/u01/ux_patches#ls
If you can't face the facts, change them!
Steffi Jones_1
Esteemed Contributor

Re: patch install problems

Hello Greta,

one thing you might want to check too:

To test the downloaded file, run cksum on it and verify that the cksum value is
what the web page indicates it should be.

I still think that it is a download problem :-) But I might be totally off. At least it is worth to try to download the patch one more time and give it another shot.

BTW, do you know that this patch has a few dependencies?

Steffi Jones
Gadura Praveen
Frequent Advisor

Re: patch install problems

Hello Greta,

From your swagent log file , it looks like the Source depot specified is "/u01/ux_patches/PHKL_20016". After you unshar the download , you should have two files , viz, PHKL_20016.depot and PHKL_20016.txt . In swinstall , the source should be "/u01/ux_patches/PHKL_20016.depot" instead of "/u01/ux_patches/PHKL_20016".

Hope this helps!!
Greta Blamire
Frequent Advisor

Re: patch install problems

Thanks, I put the .depot in and got this, a new error. The permission are wide open and the command I used follows the swinstall output.
swinstall:
======= 04/18/01 16:14:38 CDT BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@dev".

* Beginning Selection
* Target connection succeeded for "dev:/".
* "dev:/u01/ux_patches/dose/PHKL_20016.depot": This source is a
tape device.
* "dev:/u01/ux_patches/dose/PHKL_20016.depot": Cannot open the
logfile on this target or source. Possibly the media is
read-only or there is a permission problem. Check the daemon
logfile and "/var/tmp/swagent.log" on this host for more
information.
NOTE: The match operation failed to find software in the source that
matches software on the target.
NOTE: Cannot continue the "swinstall" task.

======= 04/18/01 16:14:42 CDT END swinstall SESSION (non-interactive)
command:
swinstall -x autoreboot=true -x match_target=true -s /u01/ux_patches/dose/PHKL_20016.depot

All the direcories and files involved are wide open for writing, here is the agent daemon log file (/var/adm/sw/swagentd.log)
* Started install agent on "/" for root@dev, pid=2147, 04/18/01
16:04:33 CDT
* Started source agent on
"/u01/ux_patches/dose/PHKL_20016.depot" for root@dev,
pid=2150, 04/18/01 16:04:35 CDT
NOTE: The target "/u01/ux_patches/dose/PHKL_20016.depot" currently
open for reading is a tape. pid=2150 04/18/01 16:04:36 CDT
* Agent pid=2147 completed. 04/18/01 16:04:38 CDT
* Agent pid=2150 completed. 04/18/01 16:04:38 CDT
* Started install agent on "/" for root@dev, pid=2203, 04/18/01
16:14:38 CDT
* Started source agent on
"/u01/ux_patches/dose/PHKL_20016.depot" for root@dev,
pid=2206, 04/18/01 16:14:40 CDT
NOTE: The target "/u01/ux_patches/dose/PHKL_20016.depot" currently
open for reading is a tape. pid=2206 04/18/01 16:14:40 CDT
* Agent pid=2203 completed. 04/18/01 16:14:42 CDT
* Agent pid=2206 completed. 04/18/01 16:14:43 CDT
Here is the other file mentioned /var/tmp/swagent.log:

* 04/18/01 16:14:40 CDT BEGIN source AGENT SESSION (pid=2206)
* Agent session started for user "root@dev". (pid=2206)
* 04/18/01 16:14:42 CDT END source AGENT SESSION (pid=2206)
~
If you can't face the facts, change them!
Gadura Praveen
Frequent Advisor

Re: patch install problems

Greta,

It looks like "/u01" is a NFS mount on your local machine. Copy PHKL_21006.depot to local directory ( ex. /var/tmp ) and it will work.
Greta Blamire
Frequent Advisor

Re: patch install problems

/u01 is a local drive, I put in a software call, and they recomended getting current on the patch bundles and trying again.
If you can't face the facts, change them!
Greta Blamire
Frequent Advisor

Re: patch install problems

And the answer is...
complicated.
The engineer recomended looking up the dependancies myself and setting the "enforce dependancies" to false. Also one the PHKL_20016 patch is not necessary for my system, so he said to skip that one, and move on to the rest of my list of patches. I did not bring my system up to current patch level, and he did not recommend doing so either.
If you can't face the facts, change them!