One way you could try to fix this is by:

o create a new beadm:

        beadm create fixmeup

        (fixmeup is the name of the beadm)

o mount it:

        beadm mount fixmeup /mnt

o run the pkg fix on it:

        pkg -R /mnt fix

And that will do some stuff....verifying the contents and then
fixing it up - takes a while to run.

o once done, if successful, reboot into that be and do the upgrade.

        beadm activate fixmeup
        reboot

Thanks,
Pete


Thorsten Heit wrote:
Hi,

some weeks ago I installed the OpenSolaris 2009.06 preview based on build 111a available 
at genunix.org on our test server. Because the final version 2009.06 is available I 
wanted to upgrade to that version. Unfortunately I'm behind a corporate filtering proxy 
which has the "feature" that sometimes package downloads from opensolaris.org 
work and sometimes not for some unknown reasons. Using the instructions at 
http://opensolaris.org/os/project/pkg/Mirroring/ I created a local mirror on that 
machine, download the files using rsync on my home machine and copy them via USB stick to 
the server. So far, so good.

Because of the above mentioned proxy feature a full "pfexec pkg image-update -v" always results 
in a network timeout, download error etc., but I was at least able to update almost all installed 
packages using the local mirror and "pfexec pkg install <...>". Now only the core Solaris 
kernel package (SUNWckr) is missing, but upgrading fails:


thors...@opensolaris:~$ pfexec pkg image-update -v
Creating Plan - Before evaluation: UNEVALUATED:
+pkg:/[email protected],5.11-0.111:20090508T153506Z

After evaluation:
pkg:/[email protected],5.11-0.111:20090418T183853Z -> 
pkg:/[email protected],5.11-0.111:20090508T153506Z
Actuators:

None
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed 1/1 4/4 0.06/0.06
PHASE                                        ACTIONS
Removal Phase 1/1 Install Phase 1/1
Update Phase                                 362/432 Action upgrade failed for 
'kernel/misc/md5' (pkg:/SUNWckr):
 ActionExecutionError: [errno 2: No such file or directory]: missing hard link 
target 'kernel/crypto/md5'
 The running system has not been modified. Modifications were only made to a 
clone of the running system.  This clone is mounted at /tmp/tmpNDFwb_ should 
you wish to inspect it.

pkg: An unexpected error happened during image-update: [errno 2: No such file 
or directory]: missing hard link target 'kernel/crypto/md5'
Traceback (most recent call last):
  File "/usr/bin/pkg", line 2598, in ?
    __ret = main_func()
  File "/usr/bin/pkg", line 2539, in main_func
    return image_update(mydir, pargs)
  File "/usr/bin/pkg", line 607, in image_update
    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 729, 
in execute
    p.execute_update(src, dest)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 271, in 
execute_update
    dest.install(self, src)
  File "/usr/lib/python2.4/vendor-packages/pkg/actions/hardlink.py", line 88, 
in install
    "missing hard link target '%s'" % target)
ActionExecutionError: [errno 2: No such file or directory]: missing hard link 
target 'kernel/crypto/md5'


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'.
thors...@opensolaris:~$

If I try to update via "pfexec pkg install SUNWckr", this ends in a slightly 
different error:

thors...@opensolaris:~$ pfexec pkg install SUNWckr
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed 1/1 4/4 0.06/0.06
PHASE                                        ACTIONS
Removal Phase 1/1 Install Phase 1/1
Update Phase                                 257/432 Action upgrade failed for 
'kernel/strmod/arp' (pkg:/SUNWckr):
 ActionExecutionError: [errno 2: No such file or directory]: missing hard link 
target 'kernel/drv/arp'
The Boot Environment opensolaris failed to be updated. A snapshot was taken 
before the failed attempt and is mounted here /tmp/tmpyiIbwH. Use 'beadm 
unmount opensolaris-1' and then 'beadm activate opensolaris-1' if you wish to 
boot to this BE.
thors...@opensolaris:~$


Do you have any hints what I can do now?


Best regards

Thorsten
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to