[OmniOS-discuss] strange local repository corruption

Doug Hughes doug at will.to
Thu May 7 01:53:48 UTC 2015


this is a relatively fresh install and not much going on on the machine, 
and I see somehow that the pkg repo got corrupted relatively recently on r14

t at x4275-3-15-20:/usr/local/orca-r535# pkg refresh

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.
Use 'pkgrepo rebuild' to create a new package catalog.
root at x4275-3-15-20:/usr/local/orca-r535#
ot at x4275-3-15-20:/usr/local/orca-r535# pkgrepo rebuild
pkgrepo rebuild: A package repository location must be provided using -s.
Try `pkgrepo --help or -?' for more information.
root at x4275-3-15-20:/usr/local/orca-r535# ls -l /var/pkg/state/known/
total 2
-rw-r--r-- 1 root root 0 May  6 01:50 catalog.attrs
-rw-r--r-- 1 root root 0 May  6 01:50 catalog.base.C
-rw-r--r-- 1 root root 0 May  6 01:50 catalog.dependency.C
-rw-r--r-- 1 root root 0 May  6 01:50 catalog.summary.C
root at x4275-3-15-20:/usr/local/orca-r535#

weird huh? any easy way to recover from this?



More information about the OmniOS-discuss mailing list