Upgrading OpenSolaris snv_12* to snv132+

By Alasdair Lumsden on 22 Mar 2010

Just a quick post. If you’re upgrading an OpenSolaris host on the dev branch and get this error:

# beadm create snv134
# beadm mount snv134 /mnt
# pkg -R /mnt install entire@0.5.11-0.134
Creating Plan -pkg: Cannot remove 'pkg://opensolaris.org/SUNWgnome-a11y-libs-python24@0.5.11,5.11-0.127:20091111T055042Z' due to the following packages that depend on it:
  pkg://opensolaris.org/SUNWgnome-a11y-reader@0.5.11,5.11-0.127:20091111T055202Z

Then do this to resolve:

# beadm umount snv134
# beadm destroy snv134
# pkg uninstall SUNWgnome-a11y-reader
PHASE                                        ACTIONS
Removal Phase                                346/346
# beadm create snv134
# beadm mount snv134 /mnt

You might then get this new error:

# pkg -R /mnt install entire@0.5.11-0.134
Creating Plan pkg: Cannot remove 'pkg://opensolaris.org/SUNWipkg-gui-l10n@0.5.11,5.11-0.127:20091111T075414Z' due to the following packages that depend on it:
  pkg://opensolaris.org/SUNWipkg-gui@0.5.11,5.11-0.127:20091111T075333Z

Which is easily fixed with:

# beadm umount snv134
# beadm destroy snv134
# pkg uninstall SUNWipkg-gui
PHASE                                        ACTIONS
Removal Phase                                251/251
# beadm create snv134
# beadm mount snv134 /mnt

Then it should all work nicely:

# pkg -R /mnt install entire@0.5.11-0.134
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1523/1523 120934/120934 1152.0/1152.0

PHASE                                        ACTIONS
Removal Phase                            144368/144368
Install Phase                            174332/174332
Update Phase                               1592/1592

(You can also ignore errors like this:)

Removal Phase                            1156/144368
driver (tl) clone permission update failed with return code 252
command run was: /usr/sbin/update_drv -b /mnt -d -m ticlts 0666 root sys clone
command output was:
------------------------------------------------------------
No entry found for driver (clone) in file (/mnt/etc/minor_perm).
------------------------------------------------------------

After though, you might get errors related to /dev/ptmx when logging in via SSH. Log in via the console/ilom and do “chmod 777 /dev/ptmx” to fix.