Hello, It seems my local database has become corrupt:
$ pfexec pkg refresh --full Caching catalogs ... An error was encountered while attempting to read image state information to perform the requested operation. Details follow: Catalog file '/var/pkg/state/installed/catalog.attrs' is invalid. That wouldn't be too surprising since the VM under which I run OpenSolaris (build 134) has frozen a couple of times. The files in that directory are actually all empty: $ ls -la /var/pkg/state/installed/ total 5 drwxr-xr-x 2 root root 6 2010-12-08 23:50 ./ drwxr-xr-x 4 root root 4 2010-12-08 23:50 ../ -rw-r--r-- 1 root root 0 2010-12-09 01:42 catalog.attrs -rw-r--r-- 1 root root 0 2010-12-09 01:42 catalog.base.C -rw-r--r-- 1 root root 0 2010-12-09 01:42 catalog.dependency.C -rw-r--r-- 1 root root 0 2010-12-09 01:42 catalog.summary.C Is there a way to recover it without reinstalling (or restarting from the only snapshot I have which is quite old)? Thank you Antoine. _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
