OpenSolaris Build 133 Update Snag With /contrib
By user9148476 on Feb 22, 2010
For debugging, I switched to the pkg CLI. I started with what (more or less) the GUI is doing:
# pkg image-update --be-name opensolaris_133 WARNING: pkg(5) appears to be out of date, and should be updated before running image-update. Please update pkg(5) using 'pfexec pkg install SUNWipkg' and then retry the image-update.Oh, ok. Simple enough, update SUNWipkg.
# pkg install SUNWipkg DOWNLOAD PKGS FILES XFER (MB) Completed 1386/1386 11351/11351 452.4/452.4 pkg: Requested "install" operation would affect files that cannot be modified in live image. Please retry this operation on an alternate boot environment.Ok. So not so simple. And what really grabbed my attention is that an update of SUNWipkg touched 1386 packages. A short Google search later, I'd found the cause of my woes:
Bug 13233 - /contrib packages should not depend on "entire"
# pkg contents -Ho pkg.name,action.raw -t depend | grep fmri=entire@ | cut -f1 arp-scan ettercap-NG fping netdiscoverAfter removing those packages, my update sailed smoothly:
# pkg uninstall arp-scan ethercap-NG fping netdiscover ... # pkg image-update --be-name opensolaris_133 DOWNLOAD PKGS FILES XFER (MB) Completed 1386/1386 11351/11351 452.4/452.4 PHASE ACTIONS Removal Phase 9289/9289 Install Phase 49290/49290 Update Phase 17307/17307 PHASE ITEMS Reading Existing Index 8/8 Indexing Packages 1386/1386 Optimizing Index... PHASE ITEMS Indexing Packages 1438/1438It's an inconvenience to reinstall the /contrib packages, so I'm waiting a bit longer and watching the bug report. The bug is active and /contrib may be cleaned up in short order.