Jason King wrote:
On Tue, Jun 2, 2009 at 3:23 PM, Jason King <[email protected]> wrote:
On Tue, Jun 2, 2009 at 3:15 PM, Dan Price <[email protected]> wrote:
On Tue 02 Jun 2009 at 03:09PM, Jason King wrote:
I have a box that was a clean 2008.11 install. After doing the following:
pkg update SUNWipkg
pkg image-update
(and waiting 5+ hours)... It fails with 'pkg: image-update cannot be
done on live image'
Looking at the history, it looks like it correctly identified all the
packages (I'll spare pasting the pages output showing it upgrading
changes in package version). But at the end dies with:
Errors:
Traceback (most recent call last):
File "/usr/bin/pkg", line 2495, in main_func
mydir = os.environ["PKG_IMAGE"]
File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
def __getitem__(self, key): return self.data[key]
KeyError: 'PKG_IMAGE'
After the the initial 2008.11 install, the gcc dev collection was
installed. That's pretty much the entire history of this box.
It caused a rather embarassing failure in a place where I'm trying to
promote OpenSolaris. I'd like to be able to root cause it instead of
poking and prodding trying to force it to work.
What is interesting is the pkg update SUNWipkg just updated it to the
-101 version of pkg, not the -111 version. Shouldn't it have updated
it to the the -111 version?
Jason,
Could you please attach the output of pkg history -l? And the output
of 'pkg authority'?
Or file a bug at defect.opensolaris.org with the same info attached.
Thanks,
-dp
--
Daniel Price, Solaris Kernel Engineering http://blogs.sun.com/dp
$ pkg authority
PUBLISHER TYPE STATUS URI
opensolaris.org (preferred) origin online
http://pkg.opensolaris.org/release/
I'm attaching the pkg history -l output as it's quite long.
Well I tried to, but the 79k history output was a bit too much for the
mailing list :)
No, it was fine. Your comment just got moderated.
Can you provide the output of the following commands?
beadm list
BE_PRINT_ERR=true pfexec pkg image-update
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss