Tuesday, March 20, 2018

Install VirtualBox extension pack from command line

Quick one this but as I run VirtualBox as myself, not root, I always have problems installing the latest extension pack once I've updated SUNWvbox.

Steps are;

pfexec su -
VBoxManage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-5.2.8.vbox-extpack


Wednesday, October 25, 2017

Solaris/apache/PHP update

Having just updated to the latest version of Solaris and its packages, I've had a bit of pain due to apache going from 2.2 to 2.4 and also a php upgrade.

Much thrashing about has ensued, but the key points were;

Apache
httpd.conf 
Some of the syntax has changed. The old approach of lift and shift no longer works so lines have to be copied over individually and updated as per the comments.

.htaccess
The format of allow,deny lines has changed so any local .htaccess files need updating.
For more info see https://httpd.apache.org/docs/2.4/upgrading.html

Running as none webservd user
Adjust SMF properties with svccfg and change log file ownership as required.

PHP
Lots of pain here, which I think boiled down to all extensions being commented out by default.
Fix was to uncomment all lines in /etc/php/5.6/conf.d/extensions.ini

Thursday, September 28, 2017

CentOS + VirtualBox Guest Additions

Secret sauce to be able to run VBoxLinuxAdditions.run

yum group install "Development Tools"
yum install kernel-devel

Sunday, January 8, 2017

Slimserver on CentOS Linux running under VirtualBox on Solaris


New Slimserver install

I got some time over Christmas to update my home server, so have migrated my Slimserver aka Squeezeboxserver aka LogitechMediaServer systems from Ubuntu onto brand new clean CentOS installs.

What follows is the recipe I followed to achieve this.

Configuration

  • Host system: Solaris 11 x86
  • Virtualisation software: Virtual Box
  • Squeezebox platform: CentOS

Install and configuration steps

First up, download the latest CentOS ISO, configure a VirtualBox instance, and run through a minimal install.Then run through the following;

Configure IP address

cd /etc/sysconfig/network-scripts
vi ifcfg-enp0s3
BOOTPROTO=static
IPADDR=192.168.0.90
NETMASK=255.255.255.0
GATEWAY=192.168.0.2
NM_CONTROLLED=no
ONBOOT=yes


Fix sudoers so we can sudo without a password

%wheel  ALL=(ALL)       NOPASSWD: ALL

Update /etc/hosts and /etc/resolv.conf

nameserver 192.168.0.1
reboot now


Update OS

yum update

Install guest additions

yum groupinstall "Development tools"
reboot now

Insert guest additions from menu option in machine console
mount /dev/cdrom /mnt
sh /mnt/VBoxLinuxAdditions.run
umount /mnt
reboot now



Ensure vboxsf module is loaded at boot

Without this the kernel module to enable VirtualBox isn't available when the OS comes to boot mount the shared filesystem.

vi /etc/rc.modules
modprobe vboxsf
chmod 755 /etc/rc.modules
reboot now

Present shared folder with mp3


NB: I had a load of hassle with the shared folder. I kept getting protocol errors which I believe were due to mount point being in use or some other such annoyance but eventually it worked with the following settings and a reboot.
Present SharedFolder and ensure it is not set to Auto-Mount, then update /etc/fstab so it is mounted on reboot

vi /etc/fstab
mp3 /mp3 vboxsf uid=richard,ro 0 0
mkdir /mp3

Install slimserver

Now we have a working OS, let's install the slimserver software.


yum install wget
wget http://downloads.slimdevices.com/LogitechMediaServer_v7.7.5/logitechmediaserver-7.7.5-1.noarch.rpm
rpm --install logitechmediaserver-7.7.5-1.noarch.rpm

The startup script needs to be edited so all perl libraries can be found.
vi /etc/init.d/squeezeboxserver
..after INIT INFO comments at top, set our @INC
PERL5LIB=$PERL5LIB:/usr/lib/perl5/vendor_perl:/usr/share/squeezeboxserver/lib
export PERL5LIB

Add firewall rule

cd /etc/firewalld/services
vi slimserver.xml

<?xml version="1.0" encoding="utf-8"?>
<service>
<short>slimserver</short>
<description>Slimserver
9000 TCP is used for the Web interface and streaming to Squeezebox players.
9000 UDP is not used for anything.
3483 TCP is the control channel for Squeezeboxen (display, IR, etc.)
3483 UDP is used for SB->SlimServer discovery, and all control and
streaming to the old SLIMP3 players
</description>
<port protocol="tcp" port="9000"/>
<port protocol="tcp" port="3483"/>
<port protocol="udp" port="3483"/>
</service>

firewall-cmd --permanent --add-service=slimserver
firewall-cmd --reload
firewall-cmd --list-services


Install required perl modules

yum install perl-HTTP-Cookies.noarch perl-CGI.noarch perl-Digest-MD5.x86_64
/etc/init.d/squeezeboxserver start
/etc/init.d/squeezeboxserver stop

Reload systemd config and reboot

Confirm startup settings are refreshed, and slimserver will start.
Then reboot to confirm all good.

systemctl daemon-reload
systemctl enable squeezeboxserver
systemctl start squeezeboxserver
reboot now

Fix configuration

Once booted we should be up and running.
So point browser at IP:9000, enter login details, then ensure we are using the correct library source for our mp3 collection.

If migrating, previous preferences can be copied over at this point.
Note that just copying over the server.prefs is problematic. Presumably due to UUID clash if the old slimserver instance is running.
Prefs are held under /var/lib/squeezeboxserver/prefs
If required, we can reinitialise server.prefs by making it zero length.

First of all, stop slimserver
systemctl stop squeezeboxserver


Now copy prefs lines from old file up to _ts_allowedHosts - insert at beginning of existing prefs file. This will keep all of our presets.

Also copy over favorites.opml,and then restart;
systemctl start squeezeboxserver

BBC iPlayer config

This was not straightforward due to finding the correct repo and also a missing library which doesn't seem to be documented anywhere. The missing library is the secret sauce here!

Add this repo in the plugins page;
http://downloads.sourceforge.net/project/bpaplugins/betarelease-repo.xml
Tick "Update plugins automatically" and "Show all 3rd party plugins".

Restart slimserver;
systemctl restart squeezeboxserver
Repeat until no more messages re. plugins updated, restart required.
NB: It is preferable to use systemd to restart so it can keep track of PIDs.

Tick "BBCiPlayer - DASH" and "BBCiPlayerExtra" and apply.

Now for secret sauce
systemctl stop squeezeboxserver
yum install glibc.i686
systemctl start squeezeboxserver


Now we should have a CentOS OS with Slimserver and iPlayer plugin working.

The only other thing to mention here is that after my initial install I decided to rename the server. Easy enough within CentOS, but to rename the VM and it's disk files, use the VirtualBox GUI as this keeps all of the config files consistent.


Thursday, July 10, 2014

Ubuntu VirtualBox instance reinstalled as CentOS

Firstly, log onto the virtualbox and shutdown, before taking a snapshot;

# VBoxManage snapshot morrison take 100714 --description "ubuntu"


Virtualbox additions was on port 1, device 0, so I had to blow away the controller and start again, but with CentOS ISO attached. Before I did this, I could not boot off the CentOS ISO.

# VBoxManage storagectl morrison --name "IDE Controller" --remove

# VBoxManage storageattach morrison --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium //tank/downloads/OS/CentOS-7.0-1406-x86_64-DVD.iso

# VBoxManage startvm --type headless morrison

F12 to select boot device

... and off we go

Monday, June 16, 2014

Replacing an rpool disk on x86 on Solaris 11.1

Replacing a failed disk in a mirrored rpool


Usual ZFS command

zpool replace -f rpool c9t1d0s0

Important bit

(without this you don't get grub so the box won't boot)

bootadm install-bootloader


All documented, but I can confirm that this works.

Thursday, May 29, 2014

Upgrade from OpenSolaris to Solaris 11

NB: This is an old post that has sat in draft for months. Since this I have done a fresh install to Solaris 11.1 as the pkg database was in such a state that I could not upgrade.

=====

I had some grief with this, and I think it was due to a corrupted SUNWPython install. Anyway, here's what I had to do. Hopefully it will be of interest to someone else..

Useful web page to get started - http://blog.allanglesit.com/2012/05/upgrade-solaris-11-express-to-solaris-11/

Useful commands;

pkginfo entire
pkg search -r entire | grep summary
pkg update pkg:/entire@....


First things first, upgrade pkg;

# pkg install pkg:/package/pkg
                Packages to update:     5
           Create boot environment:   Yes
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  5/5     485/485      3.5/3.5

PHASE                                        ACTIONS
Removal Phase                                  58/58
Install Phase                                199/199
Update Phase                                 465/465

PHASE                                          ITEMS
Package State Update Phase                     10/10
Package Cache Update Phase                       5/5
Image State Update Phase                         2/2

A clone of supernet exists and has been updated and activated.
On the next boot the Boot Environment supernet-1 will be mounted on '/'.
Reboot when ready to switch to this updated BE.

# reboot


# pkg info entire
          Name: entire
       Summary: incorporation to lock all system packages to same build
   Description: This package constrains system package versions to the same
                build.  WARNING: Proper system update and correct package
                selection depend on the presence of this incorporation.
                Removing this package will result in an unsupported system.
         State: Installed
     Publisher: solaris
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.151.0.1
Packaging Date:  5 November 2010 05:40:56
          Size: 0.00 B
          FMRI: pkg://solaris/entire@0.5.11,5.11-0.151.0.1:20101105T054056Z

# pkg search -r entire
INDEX       ACTION VALUE                                            PACKAGE
pkg.fmri    set    solaris/entire                                   pkg:/entire@0.5.11-0.151.0.1
pkg.fmri    set    solaris/entire                                   pkg:/entire@0.5.11-0.175.0.0.0.2.0
pkg.fmri    set    solaris/entire                                   pkg:/entire@0.5.11-0.175.0.10.1.0.0
pkg.fmri    set    solaris/entire                                   pkg:/entire@0.5.11-0.175.1.0.0.24.2
pkg.summary set    entire incorporation including Upgrade Packages  pkg:/entire@0.5.11-0.175.0.10.1.0.0

Let's do the upgrade.. But it spewed out pages and pages of errors

# pkg update pkg:/entire@0.5.11-0.175.1.0.0.24.2
Creating Plan /
pkg update: No solution was found to satisfy constraints

maintained incorporations: None


Plan Creation: dependency error(s) in proposed packages:

  No suitable version of required package pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.175.1.0.0.                                                                                                                                                       24.2:20120919T184141Z found:
    Reject:  pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.175.1.0.0.24.2:20120919T184141Z
    Reason:  All versions matching 'incorporate' dependency pkg:/system/file-system/nfs@0.5.11,5.11-0.175.1.0.0.24.2 are                                                                                                                                                        rejected
      Reject:  pkg://solaris/system/file-system/nfs@0.5.11,5.11-0.175.1.0.0.24.2:20120919T184829Z
      Reason:  Installed version in root image is too old for origin dependency %s
  No suitable version of required package pkg://solaris/system/hal@0.5.11,5.11-0.175.1.0.0.24.2:20120919T184852Z found:
    Reject:  pkg://solaris/system/hal@0.5.11,5.11-0.175.1.0.0.24.2:20120919T184852Z
    Reason:  All versions matching 'require' dependency pkg:/consolidation/osnet/osnet-incorporation are rejected
      Reject:  pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.151.0.1:20101104T230646Z
               pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.175.0.0.0.2.1:20111019T053010Z
               pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.175.0.10.1.0.0:20120920T143019Z
      Reason:  Excluded by proposed incorporation 'entire'
      Reject:  pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.175.1.0.0.24.2:20120919T184141Z
      Reason:  All versions matching 'incorporate' dependency pkg:/system/file-system/nfs@0.5.11,5.11-0.175.1.0.0.24.2 a                                                                                                                                                       re rejected
...
..
Plan Creation: Errors in installed packages due to proposed changes:

  No suitable version of installed package pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z found
    Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
    Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete
  No suitable version of installed package pkg://opensolaris.org/libnb-groovy@6.7,5.11-0.111:20090730T010541Z found
    Reject:  pkg://opensolaris.org/libnb-groovy@6.7,5.11-0.111:20090730T010541Z
    Reason:  All versions matching 'require' dependency pkg:/libnb-java@6.7,5.11-0.111 are rejected
      Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
      Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete
  No suitable version of installed package pkg://opensolaris.org/libnb-identity@6.7,5.11-0.111:20090730T010558Z found
    Reject:  pkg://opensolaris.org/libnb-identity@6.7,5.11-0.111:20090730T010558Z
    Reason:  All versions matching 'require' dependency pkg:/libnb-java@6.7,5.11-0.111 are rejected
      Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
      Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete
  No suitable version of installed package pkg://opensolaris.org/netbeans@6.7,5.11-0.111:20090730T010718Z found
    Reject:  pkg://opensolaris.org/netbeans@6.7,5.11-0.111:20090730T010718Z
    Reason:  All versions matching 'require' dependency pkg:/libnb-java@6.7,5.11-0.111 are rejected
      Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
      Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete
  No suitable version of installed package pkg://opensolaris.org/libnb-profiler@6.7,5.11-0.111:20090730T010621Z found
    Reject:  pkg://opensolaris.org/libnb-profiler@6.7,5.11-0.111:20090730T010621Z
    Reason:  All versions matching 'require' dependency pkg:/libnb-java@6.7,5.11-0.111 are rejected
      Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
      Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete
  No suitable version of installed package pkg://opensolaris.org/openoffice@3.1.0,5.11-0.111:20090518T062712Z found
    Reject:  pkg://opensolaris.org/openoffice@3.1.0,5.11-0.111:20090518T062712Z
    Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete
  No suitable version of installed package pkg://opensolaris.org/libnb-enterprise@6.7,5.11-0.111:20090730T010519Z found
    Reject:  pkg://opensolaris.org/libnb-enterprise@6.7,5.11-0.111:20090730T010519Z
    Reason:  All versions matching 'require' dependency pkg:/libnb-java@6.7,5.11-0.111 are rejected
      Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
      Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete

Lots of mentions of SUNWPython here.

Let's try and remove it..

# pkg uninstall SUNWPython
Creating Planpkg uninstall: Cannot remove 'pkg://solaris/SUNWPython@2.4.6,5.11-0.133:20101027T185218Z' due to the following packages that depend on it:
  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
  pkg://opensolaris.org/openoffice@3.1.0,5.11-0.111:20090518T062712Z

Take off these and any dependencies


# pkgrm SUNWPython

The following package is currently installed:
   SUNWPython  The Python interpreter, libraries and utilities
               (i386) 2.4.6,REV=110.0.4.2010.01.31.10.49

Do you want to remove this package? [y,n,?,q] y
pkgrm: ERROR: unable to change current working directory to


Removal of failed (internal error).
No changes were made to the system.
 
# ll /var/sadm/pkg/SUNWPython/install
/var/sadm/pkg/SUNWPython/install: No such file or directory

# mkdir /var/sadm/pkg/SUNWPython/install

# pkgrm SUNWPython

The following package is currently installed:
   SUNWPython  The Python interpreter, libraries and utilities
               (i386) 2.4.6,REV=110.0.4.2010.01.31.10.49

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance
pkgrm: ERROR: CLASSES parameter undefined in



Removal of failed (internal error).
No changes were made to the system.

# cat /var/sadm/pkg/SUNWPython/pkginfo
VENDOR=Sun Microsystems, Inc.
PKGINST=SUNWPython
HOTLINE=Please contact your local service provider
PKG=SUNWPython
ARCH=i386
DESC=The Python interpreter, libraries and utilities
CATEGORY=GNOME2,application,JDS4
NAME=The Python interpreter, libraries and utilities
BASEDIR=/
VERSION=2.4.6,REV=110.0.4.2010.01.31.10.49
INSTDATE=Feb 21 2010 20:40

# vi pkginfo

add CLASSES=none

now pkgrm works so once complete, try another upgrade. It barfs;


# pkg update pkg:/entire@0.5.11-0.175.0.0.0.2.0
Creating Plan \
pkg update: No solution was found to satisfy constraints

maintained incorporations: None


Plan Creation: dependency error(s) in proposed packages:

  No suitable version of required package pkg://solaris/developer/build/onbld@0.5.11,5.11-0.151.0.1:20101104T230755Z found:
    Reject:  pkg://solaris/developer/build/onbld@0.5.11,5.11-0.151.0.1:20101104T230755Z
    Reason:  All acceptable versions of 'require' dependency on pkg:/runtime/python-24 are obsolete
  No suitable version of required package pkg://solaris/consolidation/gnome/gnome-incorporation@0.5.11,5.11-0.151.0.1:20101105T053409Z found:
    Reject:  pkg://solaris/consolidation/gnome/gnome-incorporation@0.5.11,5.11-0.151.0.1:20101105T053409Z
    Reason:  All versions matching 'incorporate' dependency pkg:/library/python-2/python-notify-24@0.1.1,5.11-0.151.0.1 are rejected
      Reject:  pkg://solaris/library/python-2/python-notify-24@0.1.1,5.11-0.151.0.1:20101105T055829Z
      Reason:  Excluded by proposed incorporation 'consolidation/desktop/gnome-incorporation'
  No suitable version of required package pkg://solaris/system/ldoms@0.5.11,5.11-0.175.1.0.0.24.2:20120919T185044Z found:
    Reject:  pkg://solaris/system/ldoms@0.5.11,5.11-0.175.1.0.0.24.2:20120919T185044Z
    Reason:  All versions matching 'require' dependency pkg:/runtime/perl-512@5.12.4,5.11-0.175.1.0.0.24.0 are rejected
      Reject:  pkg://solaris/runtime/perl-512@5.12.4,5.11-0.175.1.0.0.24.0:20120904T173550Z
      Reason:  Excluded by proposed incorporation 'consolidation/userland/userland-incorporation'
  No suitable version of required package pkg://solaris/shell/ksh93@93.21.0.20110208,5.11-0.175.1.0.0.24.0:20120904T174231Z found:
    Reject:  pkg://solaris/shell/ksh93@93.21.0.20110208,5.11-0.175.1.0.0.24.0:20120904T174231Z
    Reason:  All versions matching 'require' dependency pkg:/system/library/math@0.5.11,5.11-0.175.1.0.0.19.0 are rejected
      Reject:  pkg://solaris/system/library/math@0.5.11,5.11-0.175.1.0.0.19.0:20120625T151932Z
      Reason:  Excluded by proposed incorporation 'consolidation/sunpro/sunpro-incorporation'
  No suitable version of required package pkg://solaris/developer/versioning/mercurial-26@2.2.1,5.11-0.175.1.0.0.24.0:20120904T171728Z found:
    Reject:  pkg://solaris/developer/versioning/mercurial-26@2.2.1,5.11-0.175.1.0.0.24.0:20120904T171728Z
    Reason:  All versions matching 'optional' dependency pkg:/developer/versioning/mercurial@2.2.1,5.11-0.175.1.0.0.24.0 are rejected
      Reject:  pkg://solaris/developer/versioning/mercurial@2.2.1,5.11-0.175.1.0.0.24.0:20120904T171740Z
      Reason:  Excluded by proposed incorporation 'consolidation/userland/userland-incorporation'
  No suitable version of required package pkg://solaris/developer/opensolaris/X@0.5.11,5.11-0.175.1.0.0.24.1317:20120904T175805Z found:
    Reject:  pkg://solaris/developer/opensolaris/X@0.5.11,5.11-0.175.1.0.0.24.1317:20120904T175805Z
    Reason:  All versions matching 'require' dependency pkg:/developer/build/libtool@2.2.2,5.11 are rejected
      Reject:  pkg://solaris/developer/build/libtool@2.4.2,5.11-0.175.1.0.0.24.0:20120904T171232Z
      Reason:  Excluded by proposed incorporation 'consolidation/userland/userland-incorporation'
  No suitable version of required package pkg://solaris/system/input-method/iiim-xim@0.5.11,5.11-0.175.1.0.0.23.1134:20120820T155226Z found:
    Reject:  pkg://solaris/system/input-method/iiim-xim@0.5.11,5.11-0.175.1.0.0.23.1134:20120820T155226Z
    Reason:  All versions matching 'require' dependency pkg:/x11/library/libx11@1.5.0,5.11-0.175.1.0.0.20.1309 are rejected
      Reject:  pkg://solaris/x11/library/libx11@1.5.0,5.11-0.175.1.0.0.24.1317:20120904T175954Z
      Reason:  Excluded by proposed incorporation 'consolidation/X/X-incorporation'
  No suitable version of required package pkg://solaris/system/library/iconv/unicode-core@0.5.11,5.11-0.175.1.0.0.23.1134:20120820T155553Z found:
    Reject:  pkg://solaris/system/library/iconv/unicode-core@0.5.11,5.11-0.175.1.0.0.23.1134:20120820T155553Z
    Reason:  All versions matching 'require' dependency pkg:/system/library@0.5.11,5.11-0.175.1.0.0.20.0 are rejected
      Reject:  pkg://solaris/system/library@0.5.11,5.11-0.175.1.0.0.24.2:20120919T185104Z
      Reason:  Excluded by proposed incorporation 'consolidation/osnet/osnet-incorporation'

Plan Creation: Errors in installed packages due to proposed changes:

  No suitable version of installed package pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z found
    Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
    Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete
  No suitable version of installed package pkg://opensolaris.org/libnb-groovy@6.7,5.11-0.111:20090730T010541Z found
    Reject:  pkg://opensolaris.org/libnb-groovy@6.7,5.11-0.111:20090730T010541Z
    Reason:  All versions matching 'require' dependency pkg:/libnb-java@6.7,5.11-0.111 are rejected
      Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
      Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete
  No suitable version of installed package pkg://opensolaris.org/libnb-profiler@6.7,5.11-0.111:20090730T010621Z found
    Reject:  pkg://opensolaris.org/libnb-profiler@6.7,5.11-0.111:20090730T010621Z
    Reason:  All versions matching 'require' dependency pkg:/libnb-java@6.7,5.11-0.111 are rejected
      Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
      Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete
  No suitable version of installed package pkg://opensolaris.org/libnb-enterprise@6.7,5.11-0.111:20090730T010519Z found
    Reject:  pkg://opensolaris.org/libnb-enterprise@6.7,5.11-0.111:20090730T010519Z
    Reason:  All versions matching 'require' dependency pkg:/libnb-java@6.7,5.11-0.111 are rejected
      Reject:  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z
      Reason:  All acceptable versions of 'require' dependency on pkg:/SUNWPython@2.4.4,5.11-0.111 are obsolete

Remove python and dependencies;

# pkg uninstall SUNWPython
Creating Planpkg uninstall: Cannot remove 'pkg://solaris/SUNWPython@2.4.6,5.11-0.133:20101027T185218Z' due to the following packages that depend on it:
  pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z

# pkg uninstall libnb-java
Creating Planpkg uninstall: Cannot remove 'pkg://opensolaris.org/libnb-java@6.7,5.11-0.111:20090730T010559Z' due to the following packages that depend on it:
  pkg://opensolaris.org/libnb-enterprise@6.7,5.11-0.111:20090730T010519Z
  pkg://opensolaris.org/libnb-apisupport@6.7,5.11-0.111:20090730T010508Z
  pkg://opensolaris.org/libnb-groovy@6.7,5.11-0.111:20090730T010541Z
  pkg://opensolaris.org/libnb-profiler@6.7,5.11-0.111:20090730T010621Z

# for i in libnb-profiler libnb-groovy libnb-apisupport libnb-enterprise libnb-profiler
> do
> pkg uninstall $i
> done

# pkg uninstall libnb-java
            Packages to remove:  2
       Create boot environment: No
Create backup boot environment: No

PHASE                                        ACTIONS
Removal Phase                                467/467

PHASE                                          ITEMS
Package State Update Phase                       2/2
Package Cache Update Phase                       2/2
Image State Update Phase                         2/2

# pkg uninstall SUNWPython
Creating Plan
pkg uninstall: 'SUNWPython' matches no installed packages

Now update works;
# pkg update pkg:/entire@0.5.11-0.175.0.0.0.2.0
            Packages to remove: 269
           Packages to install: 180
            Packages to update: 639
       Create boot environment: Yes
Create backup boot environment:  No

DOWNLOAD                                  PKGS       FILES    XFER (MB)
...ktop/gobject/gobject-introspection  103/1088  6642/81818 103.7/1319.3