Thanks for the feedback folks. I ran

# pkg image-create -a localauth=http://localhost:10000 /sandbox/store-A/

and the error persisted. And then

# pkg set-authority -O http://localhost:10000 localauth

solved it.

thanks
Rafael

[EMAIL PROTECTED] wrote:
> You're hitting bug 1081, "pkg install in a not-yet-created image now
> gives a traceback."
> 
> You need to create an image using 'pkg image-create' before you can call
> 'pkg list'.
> 
> -j
> 
> On Thu, May 01, 2008 at 08:17:39PM +0100, Rafael Vanoni wrote:
>> Hi everyone
>>
>> I'm working on creating an IPS package for PowerTOP 
>> (http://opensolaris.org/os/project/tesla/Work/Powertop/), and I've 
>> followed Michal Pryc's presentation on how to set up a local repository 
>> but am running into a little problem.
>>
>> /sandbox/ips/pkg/src :  pkg list -av
>>
>> Traceback (most recent call last):
>>    File "/usr/bin/pkg", line 1440, in ?
>>      ret = main_func()
>>    File "/usr/bin/pkg", line 1402, in main_func
>>      return list_inventory(img, pargs)
>>    File "/usr/bin/pkg", line 153, in list_inventory
>>      img.load_catalogs(progress.NullProgressTracker())
>>    File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 
>> 849, in load_catalogs
>>      for auth in self.gen_authorities():
>>    File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 
>> 239, in gen_authorities
>>      raise RuntimeError, "no defined authorities"
>> RuntimeError: no defined authorities
>> /sandbox/ips/pkg/src :
>>
>> This is on snv88 with a clone of today's pkg source.
>>
>> What's the definition of a pkg authority and how would I set it for a 
>> local repo ?
>>
>> thanks
>> Rafael
>> _______________________________________________
>> pkg-discuss mailing list
>> [email protected]
>> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

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

Reply via email to