On  9/09/10 08:38 PM, [email protected] wrote:
On Thu, Sep 09, 2010 at 06:22:37PM -0700, Darren Reed wrote:
On  9/09/10 05:48 PM, [email protected] wrote:
On Thu, Sep 09, 2010 at 05:40:46PM -0700, Darren Reed wrote:
In my test environment, I ran a depot server as publisher "darrenr"
to provide a custom package during the initial install. I've since
disabled that but now "pkg install" (to install a package from
opensolaris.org) complains because it can't contact "darrenr".
This error occurred even if I did "pkg install pkg://opensolaris.org/...".
I don't understand why it would need to contact "darrenr" if I've
told it which publisher to use to install a specific package.

What seems to work is to use "pkg set-publisher -d darrenr" to
disable the publisher "darrenr".
Could you include the actual error message that you got when "darrenr"
wasn't reachable?
It was a "Connection refused" error when trying to contact
the server where the publisher was previously housed.
I figured as much, but I was curious if the URL was included in the
message.  If, for example, the url had been
http://darrenr/catalog/1/catalog.attrs, then we would have been able to
tell that you'd hit this problem doing a catalog refresh before a pkg
install.  Shawn inferred this from the other symptoms, but I prefer err
on the side of pedantry when debugging.

Ah, yes, the first line is:
pkg set-publisher: Could not refresh the catalog for darrenr

didn't seem important at the time ;)


I think I'll add a "pkg set publisher -d darrenr" to my
first-boot-install service..
Maybe I don't understand your problem, but once you've disabled a
publisher it should stay disabled.  In your script, please use --disable
since the -d option isn't documented and is deprecated.  (It will be
removed in a future dev release).

What I'm doing here is using additional publishers to
install extra bits to make the install more "automated"
and require less touching up afterwards. Once the
install has finished, the publishers that provide those
packages are no longer required or relevant.

As for "-d" it is documented in 147's man page for "pkg"
under "set-publisher" ... I don't know if the documentation
has changed since then?

Darren

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

Reply via email to