I was doing a "pkg image-update" of the system tonight and having
spent an hour waiting for it to run on the sparc box, I got a bit
impatient, ^Z'd it, put it in the background to run and then used
pkg to set the publisher.
Something didn't like that O:-)
Is this a known issue or a new bug?
Below is a simple cut-n-paste from my terminal window.
Darren
r...@nvtbld-s:/var/tmp# pkg image-update
Packages to remove: 6
Packages to install: 4
Packages to update: 1674
Create boot environment: Yes
DOWNLOAD PKGS FILES XFER (MB)
Completed 1684/1684 30162/30162 1117.3/1117.3
PHASE ACTIONS
Removal Phase 14481/14481
Install Phase 14628/14628
Update Phase 40601/40601
PHASE ITEMS
Package State Update Phase 3358/3358
Package Cache Update Phase 1680/1680
Image State Update Phase 2/2
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 1684/1684
Indexing Packages 1684/1684
Optimizing Index...
PHASE ITEMS
Indexing Packages 1689/1689
^Z
[1]+ Stopped pkg image-update
r...@nvtbld-s:/var/tmp# bg
[1]+ pkg image-update &
< set-publisher -O http://ipkg.sfbay.sun.com/dev/solaris/ -P solaris
aris.org
pkg set-publisher --non-sticky extra
Caching catalogs ...
A clone of opensolaris-3 exists and has been updated and activated.
On the next boot the Boot Environment opensolaris-4 will be mounted on '/'.
Reboot when ready to switch to this updated BE.
pkg: An unexpected error happened during image-update: Release of
unacquired lock
Traceback (most recent call last):
File "/usr/bin/pkg", line 4242, in handle_errors
__ret = func(*args, **kwargs)
File "/usr/bin/pkg", line 4221, in main_func
return func(img, pargs)
File "/usr/bin/pkg", line 1395, in image_update
ret_code = __api_execute_plan(op, api_inst)
File "/usr/bin/pkg", line 991, in __api_execute_plan
api_inst.execute_plan()
File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line
804, in execute_plan
self.__img.unlock()
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line
404, in unlock
self.__lock.release()
File "/usr/lib/python2.6/vendor-packages/pkg/nrlock.py", line 84, in
release
raise NRLockException(errbuf)
NRLockException: Release of unacquired lock
pkg: This is an internal error. Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message. The version of pkg(5) is '552262a56a9a'.
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss