Bug #10169

Can not Install GCC-8 on freshly patched 2018.10 Hipster

Added by Jason Grove over 1 year ago. Updated over 1 year ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


Created a new VM using the OI-hipster-gui-20181023 iso. After installing it I ran:

pkg update -v --be-name p20181231

After the reboot, I tried to install GCC-8 with :

pkg install developer/gcc-8

and it produced this error:

  1. pkg install developer/gcc-8
    Creating Plan (Checking for conflicting actions): |
    Traceback (most recent call last):
    File "/usr/bin/pkg", line 5678, in handle_errors
    _ret = func(args, **kwargs)
    File "/usr/bin/pkg", line 5664, in main_func
    pargs=pargs, **opts)
    File "/usr/bin/pkg", line 2123, in install
    display_plan_cb=display_plan_cb, logger=logger)
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 1558, in _install
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 1446, in __api_op
    logger=logger, **kwargs)
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 1317, in __api_plan
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 1289, in __api_plan
    for pd in api_plan_func(
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 1525, in __plan_op
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 1153, in __plan_common_exception
    six.reraise(exc_type, exc_value, exc_traceback)
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 1459, in __plan_op
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 4353, in make_install_plan
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 4334, in __make_plan_common
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 4247, in _call_imageplan_evaluate
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 3249, in evaluate
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 3925, in _merge_actions
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 2807, in __find_all_conflicts
    gone_fmris, fmri_dict)
    File "/usr/lib/python2.7/vendor-packages/pkg/client/", line 2441, in __update_act
    assert act.attrs[act.key_attr] == key

pkg: This is an internal error in pkg(5) version fdaa5606. Please log a
Service Request about this issue including the information above and this

Of interest, I had a different VM that I installed last night that I Installed gcc-8 before doing a full update and it installed correctly. So I created another VM from the same ISO, patched it, and it too failed to install with the same error above. I then reverted back to the initial BE, destroyed the patched BE and then gcc-8 installed in the original BE.

Related issues

Has duplicate OpenIndiana Distribution - Bug #10203: Can't install cvs and essential-buildClosed2019-01-10




Updated by Rich Lowe over 1 year ago

  • Project changed from illumos gate to OpenIndiana Distribution
  • Category changed from tools - gate/build tools to PKG (Image Packaging System)

Updated by Michal Nowak over 1 year ago

The pkg version shipped in the ISO ought to be package/pkg@0.5.11,5.11-2018.0.0.5306:20181019T103031Z, the failing one package/pkg@0.5.11,5.11-2018.0.0.5309:20181123T142742Z.

The difference being these three patches committed on Nov 23, 2018: Though src/ is not present in the traceback.


Updated by Michal Nowak over 1 year ago

  • Has duplicate Bug #10203: Can't install cvs and essential-build added

Updated by Andy Fiddaman over 1 year ago

I can't replicate this in a freshly installed OpenIndiana-text
I will re-try with OI-hipster-gui


Updated by Jason Grove over 1 year ago

I was able to replicate it in fresh install of openindiana-text tonight. Used the same procedure above, with this ISO:


Updated by Andy Fiddaman over 1 year ago

That's interesting. Turns out that my test system was building with oi-hipster-minimal, I'll re-test with -text. That would suggest that the problem is actually in a package that is in -text but not -minimal.


Updated by Andy Fiddaman over 1 year ago

The problem is being caused by the text/gnu-grep package which contains this line in its manifest.

license 3e7ce9223a3d638f969ee023155c70c84b28b396 license="GPLv3, FDLv1.3 "

Presumably the spaces are causing the traceback and pkg should be fixed.

To confirm, the following works:

af@hipster:~$ pfexec pkg change-facet version-lock.text/gnu-grep=false
af@hipster:~$ pfexec pkg update pkg://
af@hipster:~$ pfexec pkg install gcc-8

Updated by Michal Nowak over 1 year ago

  • Category changed from PKG (Image Packaging System) to OI-Userland
  • Assignee set to Michal Nowak
  • Target version set to Hipster
  • Tags deleted (needs-triage)

Updated by Michal Nowak over 1 year ago

  • Assignee changed from Michal Nowak to Alexander Pyhalov
  • % Done changed from 0 to 100

Updated by Jason Grove over 1 year ago

Appears to have fixed my issue. I tried a new install of the text ISO and it worked there after patching. I also patched a pre-existing gui install and gcc-8 installed successfully on it as well. Thanks for the quick fix!


Updated by Michal Nowak over 1 year ago

  • Status changed from New to Resolved

Also available in: Atom PDF