[csw-users] Solaris 9 pkgadd cswclassutils-1.30... fails

Peter Bonivart bonivart at opencsw.org
Tue Mar 9 22:42:15 CET 2010


On Tue, Mar 9, 2010 at 10:25 PM, Wyche, George             PW
<George.Wyche at pw.utc.com> wrote:
> Solaris 9 pkgadd fails on
> cswclassutils-1.30,REV=2009.11.21-SunOS5.8-all-CSW.pkg.gz (after
> gunzip).
>
> What am I to do?
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> I have begun using openCSW on a Solaris 9 box.
> I successfully installed 14 basic CSW packages with pkg-util -i.
> When I came to cswclassutils-1.30... the error is
>
> pkg-get -i cswclassutils
> WARNING: gpg not found
> No existing install of CSWcswclassutils found. Installing...
> Trying
> [snip]sparc/5.9/cswclassutils-1.30,REV=2009.11.21-SunOS5.8-all-CSW.pkg.g
> z
> Analysing special files...
> pkgadd: ERROR: attempt to process datastream failed
>    - bad format in datastream table-of-contents
> pkgadd: ERROR: could not process datastream from
> </var/pkg-get/downloads/cswclassutils-1.30,REV=2009.11.21-SunOS5.8-all-C
> SW.pkg.gz.tmp>
> ERROR: could not add CSWcswclassutils.
>
> I tried doing the pkgadd by hand:
>  gunzip -c _above_.pkg.gz > _above_.gz.tmp
>  pkgadd -d _above_.pkg.gz.tmp
>
> Same error. I feel that I must conclude that for this Solaris 9 pkgadd,
> there is definitely something wrong.
> The gmd5sum was correct. This same package works with my Solaris 8
> boxes.
>
> Hunting around the internet there were some pkgadd complaints with
> workarounds. I tried a couple, but they failed with the same message;
> e.g.  pkgtrans  _above_.pkg  _a_directory.
>
> I can still add packages as long as they don't depend on cswclassutils,
> but ...

I can install the same package with no problem:

# pkgutil -i cswclassutils
Parsing catalog, may take a while ...
Install NEW packages:
        CSWcswclassutils-1.30,REV=2009.11.21
CURRENT packages:
        CSWcommon-1.4.7,REV=2009.09.20
Total size: 13.3 KB
Fetching CSWcswclassutils-1.30,REV=2009.11.21 (1/1) ...
2010-03-02 08:03:34
URL:http://ftp.df.lth.se/pub/csw/current/i386/5.11/cswclassutils-1.30,REV=2009.11.21-SunOS5.8-all-CSW.pkg.gz
[13663/13663] ->
"/var/opt/csw/pkgutil/packages/cswclassutils-1.30,REV=2009.11.21-SunOS5.8-all-CSW.pkg.gz"
[1]
=> Installing CSWcswclassutils-1.30,REV=2009.11.21

Processing package instance <CSWcswclassutils> from
</var/opt/csw/pkgutil/packages/cswclassutils-1.30,REV=2009.11.21-SunOS5.8-all-CSW.pkg>

cswclassutils - CSW class action utilities(all) 1.30,REV=2009.11.21
## Processing package information.
## Processing system information.
   4 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing cswclassutils - CSW class action utilities as <CSWcswclassutils>

## Installing part 1 of 1.
/etc/opt/csw/init.d/csw.smf.sample
/opt/csw/share/doc/cswclassutils/README.CSW
/opt/csw/share/doc/cswclassutils/license
/usr/sadm/install/scripts/i.cswcpsampleconf
/usr/sadm/install/scripts/i.cswcrontab
/usr/sadm/install/scripts/i.cswetcservices
/usr/sadm/install/scripts/i.cswinetd
/usr/sadm/install/scripts/i.cswinitsmf
/usr/sadm/install/scripts/i.cswmigrateconf
/usr/sadm/install/scripts/i.cswpreserveconf
/usr/sadm/install/scripts/i.cswpycompile
/usr/sadm/install/scripts/i.cswtexinfo
/usr/sadm/install/scripts/i.cswusergroup
/usr/sadm/install/scripts/r.cswcpsampleconf
/usr/sadm/install/scripts/r.cswcrontab
/usr/sadm/install/scripts/r.cswetcservices
/usr/sadm/install/scripts/r.cswinetd
/usr/sadm/install/scripts/r.cswinitsmf
/usr/sadm/install/scripts/r.cswmigrateconf
/usr/sadm/install/scripts/r.cswpreserveconf
/usr/sadm/install/scripts/r.cswpycompile
/usr/sadm/install/scripts/r.cswtexinfo
/usr/sadm/install/scripts/r.cswusergroup
[ verifying class <none> ]

Installation of <CSWcswclassutils> was successful.
#

Looks like something is going wrong with uncompressing the package in
your case..? Feel free to try pkgutil and see if there's a difference.
I don't think there's a problem with pkg-get but maybe you have stale
local files or some problem with gzip.

-- 
/peter


More information about the users mailing list