Peter Karlsson wrote:
Hi,

I'm trying to set up a zones on b106, however it fails during install with the following message:

h...@opensolaris:~$ pfexec zoneadm -z amp1 install
A ZFS file system has been created for this zone.
 Authority: Using http://pkg.opensolaris.org/dev/.
     Image: Preparing at /DC/zones/amp1/root ... done.
     Cache: Using /var/pkg/download.
Installing: (output follows)

pkg: pkg: The following pattern(s) did not match any packages in the current
catalog. Try relaxing the pattern, refreshing and/or examining the catalogs
pkg://opensolaris.org/[email protected],5.11-0.106:20090131T192440Z <http://opensolaris.org/[email protected],5.11-0.106:20090131T192440Z>
failed to install package

I'm using the dev repository:

h...@opensolaris:~$ pkg authority
AUTHORITY                           URL
dev.opensolaris.org <http://dev.opensolaris.org> (preferred) http://pkg.opensolaris.org/dev/ opensolaris.org <http://opensolaris.org> http://pkg.opensolaris.org/release/

And looking at the local version of the entire meta package, I get the following FMRI:
h...@opensolaris:~$ pkg info -l entire
         Name: entire
      Summary: entire incorporation
        State: Installed
    Authority: opensolaris.org <http://opensolaris.org>
      Version: 0.5.11
Build Release: 5.11
       Branch: 0.106
Packaging Date: Sat Jan 31 19:24:40 2009
         Size: 0.00 B
FMRI: pkg://opensolaris.org/[email protected],5.11-0.106:20090131T192440Z <http://opensolaris.org/[email protected],5.11-0.106:20090131T192440Z>

But when looking in the actual repository, I get a different FMRI:
h...@opensolaris:~$ pkg info -r entire
         Name: entire
      Summary: entire incorporation
        State: Installed
    Authority: dev.opensolaris.org <http://dev.opensolaris.org>
      Version: 0.5.11
Build Release: 5.11
       Branch: 0.106
Packaging Date: Sat Jan 31 19:24:40 2009
         Size: 0.00 B
         FMRI: pkg:/[email protected],5.11-0.106:20090131T192440Z

Any ideas on what's going on here??

Yes, the problem is that you can't change the authority you've installed from if you've setup zones:

http://defect.opensolaris.org/bz/show_bug.cgi?id=4771

You can see this by the fact that it's attempting to install build 106 packages from the opensolaris.org authority.

The workaround for now will be to remove the dev.opensolaris.org authority and then change the origin_url of the opensolaris.org authority to point to http://pkg.opensolaris.org/dev. By the way, there is no such thing as dev.opensolaris.org.

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

Reply via email to