Hi,

I am installing fresh opensolaris into ldom from cdrom text installer.
Then I run

pkg install redistributable. It almost every time fails with:

================================================================================
r...@osol149:~# time pkg install redistributable
               Packages to install:  1216
           Create boot environment:    No
               Services to restart:    12
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1216/1216 218561/218561 2308.7/2308.7

PHASE                                        ACTIONS
Install Phase                            294271/294985Action install failed for 
'SUNWsmbadocu' (pkg://opensolaris.org/service/network/samba):
  OSError: [Errno 17] File exists
The Boot Environment solaris failed to be updated. A snapshot was taken before 
the failed attempt and is mounted here /tmp/tmpLxSRUc. Use 'beadm unmount 
solaris-1' and then 'beadm activate solaris-1' if you wish to boot to this BE.
pkg: An unexpected error happened during install: [Errno 17] File exists
Traceback (most recent call last):
  File "/usr/bin/pkg", line 4242, in handle_errors
    __ret = func(*args, **kwargs)
  File "/usr/bin/pkg", line 4221, in main_func
    return func(img, pargs)
  File "/usr/bin/pkg", line 1485, in install
    ret_code = __api_execute_plan(op, api_inst)
  File "/usr/bin/pkg", line 991, in __api_execute_plan
    api_inst.execute_plan()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 756, in 
execute_plan
    self.__img.imageplan.execute()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 1169, 
in execute
    p.execute_install(src, dest)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/pkgplan.py", line 320, in 
execute_install
    dest.install(self, src)
  File "/usr/lib/python2.6/vendor-packages/pkg/actions/legacy.py", line 110, in 
install
    os.link(pkginfo, linkfile)
OSError: [Errno 17] File exists


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 '3c3fae42f23d'.


real    126m29.481s
user    59m1.872s
sys     14m37.827s
r...@osol149:~#
================================================================================


Some time back I found out that there's lot's of files in /var/sadm/pkg ending 
with .2:

$ find /var/sadm/pkg/ -name \*.2 | head
/var/sadm/pkg/SUNWimacr/pkginfo.2
/var/sadm/pkg/SUNWobby/pkginfo.2
/var/sadm/pkg/SUNWgsfot/pkginfo.2
/var/sadm/pkg/SUNWtcsh/pkginfo.2
/var/sadm/pkg/SUNWtgnome-tsol-libs/pkginfo.2
/var/sadm/pkg/SUNWpstl.u/pkginfo.2
/var/sadm/pkg/SUNWexpect/pkginfo.2
/var/sadm/pkg/SUNWpsu/pkginfo.2
/var/sadm/pkg/SUNWstardict/pkginfo.2
/var/sadm/pkg/SUNWipkg-brand/pkginfo.2

but the files are there since the clean install.

If I remove them, the installation usually succeeds (though not every time).

I can give you access to the machine where this just happened, if this helps

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

Reply via email to