Discussion:
pkg unexpectedly dies.
Aleksey Cheusov
2011-10-22 19:47:22 UTC
Permalink
Hello. I'm trying to remove gnome packages recursively on OI_151. pkg
dies unexpectedly. See below. It recommends to register bug at
http://defect.opensolaris.org but I'm not sure illumos and openindiana
projects still use opensolaris.org site and its BTS.

Comments?

$ uname -a
SunOS sunos 5.11 oi_151a i86pc i386 i86pc Solaris
$ pfexec pkg uninstall -r consolidation/gnome/gnome-incorporation \
consolidation/gnome_l10n/gnome_l10n-incorporation \
developer/gnome/gettext developer/gnome/gnome-doc-utils \
documentation/gnome/gnome-user-docs gnome/config/gconf gnome/ggv \
gnome/gnome-audio gnome/locale/de gnome/locale/es gnome/locale/fr \
gnome/locale/hi gnome/locale/it gnome/locale/ja gnome/locale/ko \
gnome/locale/pl gnome/locale/pt_br gnome/locale/rtl gnome/locale/ru \
gnome/locale/zh_cn gnome/locale/zh_tw \
gnome/theme/background/os-backgrounds gnome/theme/gnome-icon-theme \
gnome/theme/gnome-themes gnome/theme/gtk2-engines \
gnome/theme/hicolor-icon-theme gnome/theme/nimbus \
gnome/theme/sound/xdg-sound-theme gnome/theme/tango-icon-theme \
gnome/zenity library/desktop/libgnomecanvas library/gnome/base-libs \
library/gnome/gnome-component library/gnome/gnome-keyring \
library/gnome/gnome-libs library/gnome/gnome-vfs \
library/gnome/print/gnome-print library/python-2/python-gnome-libs-26
Packages to remove: 662
Create boot environment: Yes
PHASE ACTIONS
Removal Phase 822/117926
driver (bridge) clone permission update failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmprET7hB -d -m bridge 0666 root sys clone
command output was:
...
ts preserved in /tmp/tmprET7hB/var/pkg/lost+found/dev-20111022T222746Z
Removal Phase 106268/117926Action removal failed for 'svctag' (pkg://openindiana.org/system/management/service-tag):
KeyError: ('svctag',)
The running system has not been modified. Modifications were only made to a clone of the running system. This clone is mounted at /tmp/tmprET7hB should you wish to inspect it.
pkg: An unexpected error happened during uninstall: ('svctag',)
Traceback (most recent call last):
File "/usr/bin/pkg", line 4225, in handle_errors
__ret = func(*args, **kwargs)
File "/usr/bin/pkg", line 4204, in main_func
return func(img, pargs)
File "/usr/bin/pkg", line 1476, in uninstall
return __api_execute_plan(op, api_inst)
File "/usr/bin/pkg", line 1001, in __api_execute_plan
api_inst.execute_plan()
File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 828, in execute_plan
self.__img.imageplan.execute()
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 1212, in execute
p.execute_removal(src, dest)
File "/usr/lib/python2.6/vendor-packages/pkg/client/pkgplan.py", line 366, in execute_removal
src.remove(self)
File "/usr/lib/python2.6/vendor-packages/pkg/actions/user.py", line 269, in remove
pw.removevalue(self.attrs)
File "/usr/lib/python2.6/vendor-packages/pkg/cfgfiles.py", line 267, in removevalue
self.password_file.removevalue(template)
File "/usr/lib/python2.6/vendor-packages/pkg/cfgfiles.py", line 172, in removevalue
del self.index[tuple(template[k] for k in self.keys)]
KeyError: ('svctag',)


pkg: This is an internal error. Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message. The version of pkg(5) is '1d7f906c77c1'.

$
--
Best regards, Aleksey Cheusov.
Shawn Walker
2011-11-07 18:48:08 UTC
Permalink
Post by Aleksey Cheusov
Hello. I'm trying to remove gnome packages recursively on OI_151. pkg
dies unexpectedly. See below. It recommends to register bug at
http://defect.opensolaris.org but I'm not sure illumos and openindiana
projects still use opensolaris.org site and its BTS.
Comments?
...
Post by Aleksey Cheusov
File "/usr/lib/python2.6/vendor-packages/pkg/cfgfiles.py", line 172, in removevalue
del self.index[tuple(template[k] for k in self.keys)]
KeyError: ('svctag',)
pkg: This is an internal error. Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message. The version of pkg(5) is '1d7f906c77c1'.
This error has been fixed in a newer version of pkg:

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

However, in your case, I don't believe you want to do what you're doing.

uninstall -r is unlikely to produce the result you really want (which is
one of the reasons why -r doesn't exist in newer versions of pkg(5)).

Try running the command again, but with -nv, and see what packages it
wants to remove. I'm betting that you'll see a package being removed
you didn't expect.

-Shawn

Loading...