[OpenIndiana-discuss] pkg upgrade fails on java6 vs. openjdk7

Jim Klimov jim at cos.ru
Tue Jun 16 11:08:16 UTC 2015


 Hello again,

 Thanks for pushing me in the right direction :)

 Initially I looked at installing the packages by base FMRI which yielded "no updates needed". Then I realized that the reported Java package names are at 0.151.8 level, which is not quite good nowadays. Tried "pkg unfreeze" just in case, but it did not help.

 When I tried to install packages by explicitly the full FMRI with the timestamp, pkg reported that they are blocked by "ub_javavm-incorporation":

root at jimoi:~# pkg -R /a update pkg://openindiana.org/developer/java/jdk pkg://openindiana.org/runtime/java
 No updates available for this image.


root at jimoi:~# pkg -R /a install pkg://openindiana.org/developer/java/jdk pkg://openindiana.org/runtime/java
 No updates necessary for this image.


root at jimoi:~# pkg -R /a install pkg://openindiana.org/runtime/java@0.5.11-2015.0.1.0:20150529T114409Z
 Creating Plan (Solver setup): |
 pkg install: No matching version of runtime/java can be installed:
   Reject:  pkg://openindiana.org/runtime/java@0.5.11,5.11-2015.0.1.0:20150529T114409Z
   Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/ub_javavm/ub_javavm-incorporation@0.5.11,5.11-0.151.1.8:20130305T143751Z





 ... which is apparently obsolete by itself:

root at jimoi:~# pkg -R /a update pkg://openindiana.org/consolidation/ub_javavm/ub_javavm-incorporation
 No updates available for this image.


root at jimoi:~# pkg -R /a info -r pkg://openindiana.org/consolidation/ub_javavm/ub_javavm-incorporation
           Name: consolidation/ub_javavm/ub_javavm-incorporation
        Summary:
          State: Not installed (Obsolete)
      Publisher: openindiana.org
        Version: 0.5.11
         Branch: 2015.0.0.0
 Packaging Date: June 12, 2015 07:34:48 PM
           Size: 0.00 B
           FMRI: pkg://openindiana.org/consolidation/ub_javavm/ub_javavm-incorporation@0.5.11-2015.0.0.0:20150612T193448Z




 ... and yet can not be updated because of dependency from another repo:


root at jimoi:~# pkg -R /a update pkg://openindiana.org/consolidation/ub_javavm/ub_javavm-incorporation@0.5.11-2015.0.0.0:20150612T193448Z
 Creating Plan (Solver setup): -
 pkg update: The installed package SUNWj6dev is not permissible.
   Reject:  pkg://opensolaris.org/SUNWj6dev@0.5.11,5.11-0.133:20100216T080447Z
   Reason:  All acceptable versions of 'require' dependency on pkg:/consolidation/ub_javavm/ub_javavm-incorporation are obsolete





 ... which I seemingly can't easily remove:


root at jimoi:~# pkg -R /a uninstall SUNWj6dev
 Creating Plan (Solver setup): /pkg uninstall: Cannot remove 'pkg://opensolaris.org/SUNWj6dev@0.5.11,5.11-0.133:20100216T080447Z' due to the following packages that depend on it:
   pkg://opensolaris.org/eclipse@3.4,5.11-0.86:20081204T035444Z





 ... or on another thought, why would I want packaged Eclipse from 2008 (when I use tarballed up-to-date Netbeans when I need an IDE bigger than VI or MC, anyway)? - well, they can both be removed after all:

root at jimoi:~# pkg -R /a uninstall SUNWj6dev eclipse
 Packages to remove: 5

 PHASE                                          ITEMS
 Removing old actions                       2418/2418
 Updating package state database                 Done
 Updating package cache                           5/5
 Updating image state                            Done
 Creating fast lookup database                   Done





 Now the "pkg -R /a update" is busy downloading the packages which it hopefully will manage to install... (internet is so slow here, I won't see the result very soon)

 The general packaging question is: if I wanted to retain that version of eclipse and that version of Java-1.6 (for example), would it be possible to enforce updates somehow? Presumably, I could pkgrecv the packages from "opensolaris.org" repo replica and edit the IPS manifest. If the replica is still online... and what if it's not (or I am not online)? Can something be done locally within the OS? Some evil manual edition of the local copy of pkg(5) metadata in /var/pkg?




 Thanks,

 Jim Klimov





----- Исходное сообщение -----
От: Alexander Pyhalov <alp at rsu.ru>
Дата: Tuesday, June 16, 2015 7:42
Тема: Re: [OpenIndiana-discuss] pkg upgrade fails on java6 vs. openkdk7
Кому (To): Discussion list for OpenIndiana <openindiana-discuss at openindiana.org>
Копия (Cc): Jim Klimov <jim at cos.ru>

 > 
 > 
 > Jim Klimov писал 15.06.2015 17:49:
 > > Hello all,
 > > 
 > >  Starting a couple of weeks ago, I can't upgrade my Hipster
 > > installation (previously kept up-to-date more or less regularly),
 > > because of a conflict between two java packages wanting to be the
 > > default (shouldn't a separate mediator package or optionally manual
 > > setup by a human make the choice instead?)
 > 
 > Hello.
 > What just plain pkg update -v do?
 > 
 > The change is that we don't longer provide Java 6. If you look 
 > on 
 > runtime/java, you'll see that it is renamed to openjdk7.
 > 
 > $ pkg info -r runtime/java
 >            
 > Name: runtime/java
 >           State: 
 > Installed (Renamed)
 >      Renamed to: 
 > runtime/java/openjdk7 at 1.7.76,5.11-2015.0.1.0
 >       Publisher: openindiana.org
 >         Version: 0.5.11
 >          Branch: 2015.0.1.0
 > Packaging Date: May 29, 2015 11:44:09 AM
 >            
 > Size: 0.00 B
 >            
 > FMRI: 
 > pkg://openindiana.org/runtime/java@0.5.11-2015.0.1.0:20150529T114409Z
 > 
 > In theory (and on practice for my hosts) pkg update should just 
 > install 
 > openjdk and remove java on update. I don't know why it refuses 
 > to do it 
 > on your installation. If plain "pkg update" doesn't want to work 
 > I'd try 
 > to pkg install latest java and openjdk versions and see what IPS 
 > doesn't 
 > like.
 > 
 > ---
 > System Administrator of Southern Federal University Computer Center
 > 
 > 


More information about the openindiana-discuss mailing list