* Scott Dunbar ([EMAIL PROTECTED]) wrote: > I'm somewhat new to OpenSolaris but have been a Solaris/SunOS user for, well, > a very long time now. I'm trying to update what I think is OpenSolaris > 05/08. I ran "/usr/bin/pkg refresh --full" then "/usr/bin/pkg image-update > -v". After downloading about 1.3GB the process gave me: > > [code] > None -> pkg:/[EMAIL PROTECTED],5.11-0.90:20080604T143542Z > None > DOWNLOAD PKGS FILES XFER (MB) > Completed 547/547 14624/14624 1318.89/1318.89 > > PHASE ACTIONS > Removal Phase 3160/3160 > Update Phase 8/14634 Action upgrade failed > for 'SUNWTcl.copyright' (pkg:/SUNWTcl): > NameError: could not retrieve file > '2f233722e862a7f8a7aadbfe4695bb4be79d0c6d' from > 'http://pkg.opensolaris.org:80' > pkg: An unexpected error happened during image-update: could not retrieve > file '2f233722e862a7f8a7aadbfe4695bb4be79d0c6d' from > 'http://pkg.opensolaris.org:80' > The running system has not been modified. Modifications were only made to a > clone of the running system. This clone is mounted at /tmp/tmpoUVSJQ should > you wish to inspect it. > Traceback (most recent call last): > File "/usr/bin/pkg", line 1440, in ? > ret = main_func() > File "/usr/bin/pkg", line 1404, in main_func > return image_update(img, pargs) > File "/usr/bin/pkg", line 391, in image_update > img.imageplan.execute() > File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line > 452, in execute > p.execute_update(src, dest) > File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 297, > in execute_update > dest.install(self, src) > File "/usr/lib/python2.4/vendor-packages/pkg/actions/license.py", line 72, > in install > stream = self.data() > File "/usr/lib/python2.4/vendor-packages/pkg/manifest.py", line 231, in > opener > return retrieve.get_datastream(img, fmri, action.hash) > File "/usr/lib/python2.4/vendor-packages/pkg/client/retrieve.py", line 53, > in get_datastream > raise NameError, "could not retrieve file '%s' from '%s'" % \ > NameError: could not retrieve file '2f233722e862a7f8a7aadbfe4695bb4be79d0c6d' > from 'http://pkg.opensolaris.org:80' > [/code] > > I'm feeling very frustrated by my experiences trying to update the packages > so far - the package manager GUI seems to be about as usable - it downloaded > 3+ [b]GB[/b] and then said something about unable to establish a connection > to the repository. > > Honestly, without the ability to update the O/S it is worthless. Help! > > Any thoughts as to what I've done wrong?
You haven't done anything wrong. You need to increase the network timeout for the pkg command. export PKG_CLIENT_TIMEOUT=90 This changes the timeout from 30s to 90s. You can increase it further if need be but 90s seems to work for most people I've seen. Cheers, -- Glenn _______________________________________________ opensolaris-help mailing list [email protected]
