Hi All,

I blew away the contents of my /var/pkg/pkg directory and now pretty
much all pkg commands fail:

-bash-3.2# pkg rebuild-index
Traceback (most recent call last):
  File "/usr/bin/pkg", line 1958, in ?
    ret = main_func()
  File "/usr/bin/pkg", line 1944, in main_func
    return rebuild_index(img, pargs)
  File "/usr/bin/pkg", line 1829, in rebuild_index
    img.rebuild_search_index(get_tracker(quiet))
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1940, in 
rebuild_search_index
    ind.rebuild_index_from_scratch(self.get_fmri_manifest_pairs())
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 604, in 
get_fmri_manifest_pairs
    return [
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1305, in 
gen_installed_pkgs
    self.__load_pkg_states()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1337, in 
__load_pkg_states
    auth = self.installed_file_authority(path)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 754, in 
installed_file_authority
    f = file(filepath, "r+")
IOError: [Errno 2] No such file or directory: 
'/var/pkg/pkg/BRCMbnx/0.5.11%2C5.11-0.98%3A20080916T181933Z/installed'

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 '1b1547cb8655'.

Is there any way to recover from this situation?

For reference, I was trying to create and install to a different image
than the one configured on my system (ie to a second disk) and kept
getting errors that the packages I wanted to install to that image were
already installed (which could not have been the case since the image
was to a brand new zpool that had nothing in it prior to my trying to
install on it).  I'm not sure why I thought blowing away /var/pkg/pkg
was a 'good idea' but in my defense I'm fighting a pretty nasty head
cold. ;-)

Thanks,

Glenn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to