Hallo,

it seems pkg can't handle socket files. I'm not sure if either pkg
should handle that files or a preuninstall-script should stop the
service and remove the file but at least the uninstallation shouldn't
fail.


# pkg uninstall SUNWdbus
PHASE                                        ACTIONS
Removal Phase                                 46/136 Action removal
failed for 'var/run/dbus' (pkg:/SUNWdbus):
  Error: [('/var/run/dbus/system_bus_socket', '/var/pkg/lost
+found/var/run/dbus-20080729T154709Z/system_bus_socket',
<exceptions.IOError instance at 0x9d1f9ec>)]
pkg: An unexpected error happened during uninstallation:
[('/var/run/dbus/system_bus_socket', '/var/pkg/lost
+found/var/run/dbus-20080729T154709Z/system_bus_socket',
<exceptions.IOError instance at 0x9d1f9ec>)]
The Boot Environment opensolaris-1 failed to be updated. A snapshot was
taken before the failed attempt and is mounted here /tmp/tmprYG7tD. Use
'beadm unmount opensolaris-3' and then 'beadm activate opensolaris-3' if
you wish to boot to this BE.
Traceback (most recent call last):
  File "/usr/bin/pkg", line 1534, in ?
    ret = main_func()
  File "/usr/bin/pkg", line 1502, in main_func
    return uninstall(img, pargs)
  File "/usr/bin/pkg", line 613, in uninstall
    ip.execute()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py",
line 448, in execute
    p.execute_removal(src, dest)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line
303, in execute_removal
    src.remove(self)
  File "/usr/lib/python2.4/vendor-packages/pkg/actions/directory.py",
line 157, in remove
    pkgplan.image.salvagedir(localpath)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line
1577, in salvagedir
    shutil.move(os.path.normpath(os.path.join(self.root, path)),
salvagedir)
  File "/usr/lib/python2.4/shutil.py", line 190, in move
    copytree(src, dst, symlinks=True)
  File "/usr/lib/python2.4/shutil.py", line 132, in copytree
    raise Error, errors
Error: [('/var/run/dbus/system_bus_socket', '/var/pkg/lost
+found/var/run/dbus-20080729T154709Z/system_bus_socket',
<exceptions.IOError instance at 0x9d1f9ec>)]


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

Reply via email to