[OmniOS-discuss] strange local repository corruption

Dan McDonald danmcd at omniti.com
Thu May 7 03:00:39 UTC 2015


pkgrepo rebuild -s <repo-path>

Dan

Sent from my iPhone (typos, autocorrect, and all)

> On May 6, 2015, at 9:53 PM, Doug Hughes <doug at will.to> wrote:
> 
> 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?
> 
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss


More information about the OmniOS-discuss mailing list