Rootserver Sponsor

webtropia"

Donations

Please support your operating system's further development:

donate"

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
alexkOffline
15 Post subject: icedtea-netx:amd64 not installable, postinst script fails  PostPosted: 06.02.2016, 23:42



Joined: 2010-10-01
Posts: 288

Status: Offline
      Code:
Setting up icedtea-netx:amd64 (1.6.2-1) ...
update-alternatives: error: alternative /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javaws for javaws not registered; not setting
dpkg: error processing package icedtea-netx:amd64 (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of icedtea-8-plugin:amd64:
 icedtea-8-plugin:amd64 depends on icedtea-netx (= 1.6.2-1); however:
  Package icedtea-netx:amd64 is not configured yet.

dpkg: error processing package icedtea-8-plugin:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-java-plugin:
 default-java-plugin depends on icedtea-8-plugin; however:
  Package icedtea-8-plugin:amd64 is not configured yet.

dpkg: error processing package default-java-plugin (--configure):
 dependency problems - leaving unconfigured

I worked around this by modifying lines 116 and 121 of the post-installation script:
      Code:
alex@MSAK1:/root/icedtea-netx/DEBIAN$ diff ~/icedtea-netx_postinst_alexk postinst
116c116
{               if [ $priority7 -gt $priority8 ] && [ ! -f $base7dir/jre/bin/$i ]; then
---
}               if [ $priority7 -gt $priority8 ] && [ ! -f $base8dir/jre/bin/$i ]; then
121c121
{               if [ $priority8 -gt $priority7 ] && [ ! -f $base8dir/jre/bin/$i ]; then
---
}               if [ $priority8 -gt $priority7 ] && [ ! -f $base7dir/jre/bin/$i ]; then

I had to replace "<" with "{" and ">" with "}" in the diff output, otherwise the lines were garbled.


Last edited by alexk on 08.02.2016, 03:23; edited 1 time in total
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
alexkOffline
Post subject: RE: icedtea-netx:amd64 not installable, postinst script fail  PostPosted: 07.02.2016, 00:49



Joined: 2010-10-01
Posts: 288

Status: Offline
These lines in the original postint script didn't seem to make sense, so I switched $base8dir and $base7dir:
      Code:
priority7=1060
base7dir=/usr/lib/jvm/java-7-openjdk-amd64
man7dir=$base7dir/jre/man
priority8=1081
base8dir=/usr/lib/jvm/java-8-openjdk-amd64
man8dir=$base8dir/jre/man

...

                # 7's priority is higher, but 7 is not installed, set it to 8
                if [ $priority7 -gt $priority8 ] && [ ! -f $base8dir/jre/bin/$i ]; then
                    update-alternatives --set $i $base8dir/jre/bin/$i
                fi

                # 8's priority is higher, but 8 is not installed, set it to 7
                if [ $priority8 -gt $priority7 ] && [ ! -f $base7dir/jre/bin/$i ]; then
                    update-alternatives --set $i $base7dir/jre/bin/$i
                fi
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
alexkOffline
Post subject: RE: icedtea-netx:amd64 not installable, postinst script fail  PostPosted: 07.02.2016, 14:14



Joined: 2010-10-01
Posts: 288

Status: Offline
Issue still exists in the official package. I installed a modified package.
      Code:
$ dpkg -l '*icedtea*' | grep ii
ii  icedtea-8-plugin:amd64 1.6.2-1      amd64        web browser plugin based on OpenJDK and IcedTea to execute Java applets
ii  icedtea-netx:amd64     1.6.2-1      amd64        NetX - implementation of the Java Network Launching Protocol (JNLP)
ii  icedtea-netx-common    1.6.2-1      all          NetX - implementation of the Java Network Launching Protocol (JNLP)
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
alexkOffline
Post subject: RE: icedtea-netx:amd64 not installable, postinst script fail  PostPosted: 08.02.2016, 03:22



Joined: 2010-10-01
Posts: 288

Status: Offline
Issue is solved in version 1.6.2-2.
      Code:
dpkg -l '*icedtea*' | grep ii
ii  icedtea-8-plugin:amd64 1.6.2-2      amd64        web browser plugin based on OpenJDK and IcedTea to execute Java applets
ii  icedtea-netx:amd64     1.6.2-2      amd64        NetX - implementation of the Java Network Launching Protocol (JNLP)
ii  icedtea-netx-common    1.6.2-2      all          NetX - implementation of the Java Network Launching Protocol (JNLP)

      Code:
diff icedtea-netx_1.6.2-1/DEBIAN/postinst icedtea-netx_1.6.2-2/DEBIAN/postinst
68c68
{       if [ -f $base7dir/jre/bin/javaws ]; then
---
}       if false && [ -f $base7dir/jre/bin/javaws ]; then
114a115,116
}               update-alternatives --set $i $base8dir/jre/bin/$i
}
116,118c118,120
{               if [ $priority7 -gt $priority8 ] && [ ! -f $base8dir/jre/bin/$i ]; then
{                   update-alternatives --set $i $base8dir/jre/bin/$i
{               fi
---
}               #if [ $priority7 -gt $priority8 ] && [ ! -f $base8dir/jre/bin/$i ]; then
}               #    update-alternatives --set $i $base8dir/jre/bin/$i
}               #fi
121,123c123,125
{               if [ $priority8 -gt $priority7 ] && [ ! -f $base7dir/jre/bin/$i ]; then
{                   update-alternatives --set $i $base7dir/jre/bin/$i
{               fi
---
}               #if [ $priority8 -gt $priority7 ] && [ ! -f $base7dir/jre/bin/$i ]; then
}               #    update-alternatives --set $i $base7dir/jre/bin/$i
}               #fi
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
slhOffline
Post subject: RE: icedtea-netx:amd64 not installable, postinst script fail  PostPosted: 08.02.2016, 03:44



Joined: 2010-08-25
Posts: 949

Status: Offline
Unified diffs (diff -u, or diff -Nrup) are typically easier to read and are usually less likely to trigger the forum software's HTML sanitation.

Given that jdk7 is about to be removed from Debian (in favour of openjdk8), compatibility support using the Debian alternatives system is no longer deemed necessary.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio