Monday Aug 11, 2008

Updating OpenSolaris (snv_86) to snv_94 Problematic

Today I tried to update OpenSolaris 2008.05 (snv_86) to the latest build snv_94. Everything went smoothly except after the reboot the gnome did not start.

I got an error message on the console that gdm service is in maintainance. Message suggested that gdm dumped core, but in fact it was Xorg. Following the issue on the opensolaris mailing list, it seems like there's something wrong with the packaging system and it might happen that incomplete files get installed. In my case Xorg amd64 binary was only 1.1MB while it should be around 2.4MB!

BTW: snv_94 includes Firefox 3, so if you're an adventurer like me, try it out right now :-)

UPDATE (Aug 14th): Now there's a script that will check and fix any corrupted packages. You can find it at http://www.opensolaris.org/os/project/pkg/pkgfix

To verify all packages do (I used '...' to shorten the output):

> pfexec pkg verify -f
PACKAGE                                             STATUS 
pkg:/SUNWPython                                      ERROR
    file: usr/lib/python2.4/ConfigParser.pyc
        Group: 'root' should be 'bin'
        Hash: e5d8daa86c36cf9c7ec51124317a7c742e059486 should be 22bf2aab02829e3f10e9e20a3552c0272b79d0a8
        ...
        file: usr/lib/python2.4/warnings.pyc
        Group: 'root' should be 'bin'
        Hash: 4babb3430440dc5232e371fe21e505cfbc5b58e5 should be 46dbc23e42c5502fcbf98b32f425f3906d4f6766
pkg:/SUNWafe                                         ERROR 
    driver: afe
        extra minor node permission '\* 0666 root sys' found in etc/minor_perm
pkg:/SUNWcs                                          ERROR 
    hardlink: etc/rc2.d/S82mkdtab
        No such path etc/rc2.d/S82mkdtab
        ...
pkg:/SUNWgnome-python-libs                           ERROR 
    file: usr/lib/python2.4/vendor-packages/cairo/__init__.pyc
        ...
pkg:/SUNWgrub                                        ERROR 
    ...
pkg:/SUNWintgige                                     ERROR 
    ...
pkg:/SUNWipkg                                        ERROR 
    ...
pkg:/SUNWipkg-gui                                    ERROR 
    ...
pkg:/SUNWmlib                                        ERROR 
    file: usr/lib/amd64/libmlib.so.2
        Unexpected Exception: failed to load dynamic section
pkg:/SUNWnge                                         ERROR 
    driver: nge
        extra minor node permission '\* 0666 root sys' found in etc/minor_perm
pkg:/SUNWpsdcr                                       ERROR 
    driver: asy
        extra minor node permission '\*,cu 0600 uucp uucp' found in etc/minor_perm
pkg:/SUNWxorg-mesa                                   ERROR 
    file: usr/X11/lib/modules/dri/amd64/r300_dri.so
        Unexpected Exception: failed to load dynamic section
pkg:/SUNWxorg-server                                 ERROR 
    file: usr/X11/bin/amd64/Xorg
        Unexpected Exception: failed to load dynamic section

As you can see several packages were corrupted, mostly python. However corrupted \*.pyc files are not really corrupted, so I've been told.

Now to fix the corrupted packages do:

  1. Download the pkgfix script
  2. Make it executable: chmod 755 pkgfix
  3. Fix corrupted packages: pfexec ./pkgfix
This might fix the problem for you, however it was not my case, since the scripts does not yet handle corrupted ELF files. I've successfully updated to snv_95 today, which resolved my problems.

About

Lubomir Petrik

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today