Hi, Encountered an error while performing package uninstallation.
Step-1: Created a repository # /usr/lib/pkg.depotd -p 10009 -d /export/home/subranshu/repo & [1] 5174 Step-2: Create a sample package # mkdir dummy # touch dummy/file1 # touch dummy/file2 # touch dummy/file3 Step-3: Publish the package to repository: # eval `pkgsend -s http://localhost:10009 open [email protected]` # pkgsend -s http://localhost:10009 add set name=pkg.name value="dummy package" # pkgsend -s http://localhost:10009 add dir mode=0755 owner=root group=bin path=/export/home/install # pkgsend -s http://localhost:10009 add dir mode=0755 owner=root group=bin path=/export/home/install/dir1 # pkgsend -s http://localhost:10009 add dir mode=0755 owner=root group=bin path=/export/home/install/dir2 # pkgsend -s http://localhost:10009 add file dummy/file3 mode=0644 owner=root group=bin path=/export/home/install/file3 # pkgsend -s http://localhost:10009 add file dummy/file1 mode=0444 owner=root group=bin path=/export/home/install/dir1/file1 # pkgsend -s http://localhost:10009 add file dummy/file2 mode=0555 owner=root group=bin path=/export/home/install/dir2/file2 # pkgsend -s http://localhost:10009 close PUBLISHED pkg:/[email protected],5.11:20100511T084849Z Step-4: Set the publisher # pkg set-publisher -P -O http://localhost:10009 dummypublisher Step-5: Install package # pkg install dummypkg DOWNLOAD PKGS FILES XFER (MB) Completed 1/1 3/3 0.00/0.00 PHASE ACTIONS Install Phase 9/9 Step-6: Uninstall package # pkg uninstall dummypkg PHASE ACTIONS Removal Phase 1/14 Action removal failed for 'export/home' (pkg:/dummypkg): OSError: [Errno 16] Device busy: '//export/home' The Boot Environment opensolaris failed to be updated. A snapshot was taken before the failed attempt and is mounted here /tmp/tmpcqVjC3. Use 'beadm unmount opensolaris-9' and then 'beadm activate opensolaris-9' if you wish to boot to this BE. pkg: An unexpected error happened during uninstallation: [Errno 16] Device busy: '//export/home' Traceback (most recent call last): File "/usr/bin/pkg", line 2598, in ? __ret = main_func() File "/usr/bin/pkg", line 2543, in main_func return uninstall(mydir, pargs) File "/usr/bin/pkg", line 886, in uninstall api_inst.execute_plan() File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 525, in execute_plan self.img.imageplan.execute() File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 709, in execute p.execute_removal(src, dest) File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 282, in execute_removal src.remove(self) File "/usr/lib/python2.4/vendor-packages/pkg/actions/directory.py", line 155, in remove os.rmdir(path) OSError: [Errno 16] Device busy: '//export/home' 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 '26c3e2407c53'. Please let me know, if i have performed any incorrect steps? Is there any workaround for the error? Thanks, Subranshu _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
