Bug #4068


Upgrade from oi_148 fails due to "Unknown type (conditional) in depend action"

Added by Joseph Ellis almost 11 years ago. Updated over 10 years ago.

PKG (Image Packaging System)
Target version:
Start date:
Due date:
% Done:


Estimated time:
2.00 h


Following the upgrade guide here

sequence so far is as follows (as root):

  1. pkg unset-publisher
Verified publisher as follows:
  1. pkg publisher
    PUBLISHER TYPE STATUS URI (preferred) origin online

#pkg refresh --full

#pkg image-update -nv

image update fails with

pkg: The requested operation cannot be completed due to invalid package metadata. Details follow:

invalid action in package pkg:,5.11- depend fmri=library/python-2/tkinter-26 predicate=runtime/tk-8 type=conditional: Unknown type (conditional) in depend action

Seems similar to

Have run through troubleshooting here, gotten nowhere:

Actions #1

Updated by Ken Mays almost 11 years ago

  • Assignee set to Andrzej Szeszo
Actions #2

Updated by Joseph Ellis almost 11 years ago

Forgot to mention, the first time I tried to do an image-update it asked me to update pkg, which I did.

  1. pkg list package/pkg

package/pkg 0.5.11-0.148 installed u----

It doesn't really appear to have updated to the latest version of pkg, however (unless I'm reading this wrong)

Ideas? Is there some way to force the latest version of pkg to install?

Attempting to update pkg again does nothing:

  1. pkg install pkg:/package/pkg
    No updates necessary for this image.
Actions #3

Updated by Piotr Jasiukajtis over 10 years ago

You may try this workaround:

Create a copy of package/pkg from another oi_151a8 machine:

pkg contents -H package/pkg | ( cd / && cpio -pdumv /pkg_package_archive/ )

and extract those files on an old 148 build.

Remember to create a backup BE using 'beadm create' first.

Actions #4

Updated by Steven Williamson over 10 years ago

Following the page on the Openindiana wiki to upgrade from Opensolaris 134 to Openindiana I hit the bug reported here.
Checking the version of pkg on my system opensolaris snv_134 I can confirm the code does not contain the conditional depend action.

This is preventing upgrade as the unsupported condition appears to be in the metadata for when of the packages in the repo.

To upgrade it seems like I first need to be able to install a version of "pkg" that does support the conditional depend but at this time that does not seem possible.

Speaking in the irc Openindiana IRC channel as I was asked to try upgrading to different versions of "entire" all of which fail with the same problem.

Actions #5

Updated by Daniel Bakken over 10 years ago

I hit the same bug following the upgrade guide to upgrade OpenSolaris 134 to OpenIndiana 151:

root@trogdor:~# pkg image-update -v --be-name openindiana
Creating Plan /
pkg: The requested operation cannot be completed due to invalid package metadata.  Details follow:

invalid action, 'depend fmri=library/python-2/tkinter-26 predicate=runtime/tk-8 type=conditional': Unknown type (conditional) in depend action

I would love to upgrade to OI but this has stopped me cold.

Actions #6

Updated by Jon Tibble over 10 years ago

  • Status changed from New to Feedback

This should be fixed in the /dev repo now so anyone who was hitting this should retry and confirm.

Actions #7

Updated by Ken Mays over 10 years ago

  • Tags changed from needs-triage to pkg
  • Due date set to 2014-02-06
  • Category set to PKG (Image Packaging System)
  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100
  • Estimated time set to 2.00 h

Be sure to have openindiana sticky, opensolaris (if still installed)
non-sticky, sfe non-sticky, sfe-encumbered sticky, the rest should be

Tested oi_134/oi_151a migrations to oi_151a9. Successful.


Also available in: Atom PDF