ramanujan oops wrote:
> Hi Shawn,
> 
>           I had published and installed my application package in IPS 
> form and I'm facing the below shown error while I try to uninstall it.

Please email pkg-discuss directly instead of individual list members 
when discussing pkg(5).  Thanks.

> bash-3.2# pkg uninstall SUNWexplo
> PHASE                                        ACTIONS
> Removal Phase                                  1/210 Action removal 
> failed for 'opt/SUNWexplo/tools' (pkg:/SUNWexplo):
>   OSError: [Errno 17] File exists: 
> '/var/pkg/lost+found/opt/SUNWexplo/tools-2008-10-23+11:39:24'
> pkg: An unexpected error happened during uninstallation: [Errno 17] File 
> exists: '/var/pkg/lost+found/opt/SUNWexplo/tools-2008-10-23+11:39:24'
> The Boot Environment opensolaris failed to be updated. A snapshot was 
> taken before the failed attempt and is mounted here /tmp/tmpktTT4-. Use 
> 'beadm activate opensolaris_static:-:2008-10-23-06:09:17 and reboot if 
> you wish to boot to this BE.
> Traceback (most recent call last):
>   File "/usr/bin/pkg", line 1440, in ?
>     ret = main_func()
>   File "/usr/bin/pkg", line 1408, in main_func
>     return uninstall(img, pargs)
>   File "/usr/bin/pkg", line 569, in uninstall
>     ip.execute()
>   File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", 
> line 421, in execute
>     p.execute_removal(src, dest)
>   File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 
> 308, 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 
> 1190, 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 111, in copytree
>     os.mkdir(dst)
> OSError: [Errno 17] File exists: 
> '/var/pkg/lost+found/opt/SUNWexplo/tools-2008-10-23+11:39:24'
> bash-3.2# cd /opt/SUNWexplo/
> bash-3.2# ls
> bin            doc            java           lib            
> LICENSEREADME  man            output         tools
> bash-3.2# pkg info SUNWexplo
> pkg: no packages matching the patterns you specified are installed
> on the system.  Specify -r to retrieve requested information from the
> repository.
> bash-3.2# pkg contents SUNWexplo
> bash-3.2# pkg uninstall SUNWexplo
> pkg: 'SUNWexplo' matches no installed packages
> bash-3.2#
> 
> 
> 
> As you can see, uninstallation failed siting existence of SUNWexplo 
> files under /var/pkg/lost+found dir. But , when I did a pkg info 
> SUNWexplo, it doesn't locate my package. Second try of pkg uninstall too 
> fails..due to this my package deliverables under "/opt/SUNWexplo/" are 
> not removed after uninstalling.
> 
> 
> I suppose I'm doing something wrong here. Can you kindly help me 
> understand it?

Please file a bug at http://defect.opensolaris.org/

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

Reply via email to