Opened 5 years ago

Closed 5 years ago

#1368 closed defect (fixed)

udig crashes on web tab (xulrunner installation breaks dpkg)

Reported by: kalxas Owned by: fgdrf
Priority: major Milestone: OSGeoLive8.5
Component: OSGeoLive Keywords: udig, geopublishing.org
Cc: live-demo@…

Description

Setting up xulrunner-1.9.2 (1.9.2.17+build3+nobinonly-0ubuntu1) ...
/var/lib/dpkg/info/xulrunner-1.9.2.postinst: 8: /var/lib/dpkg/info/xulrunner-1.9.2.postinst: /usr/sbin/update-alternatives: not found
dpkg: error processing package xulrunner-1.9.2 (--configure):
 subprocess installed post-installation script returned error exit status 127
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Errors were encountered while processing:
 xulrunner-1.9.2
E: Sub-process /usr/bin/dpkg returned an error code (1)

Change history (14)

comment:1 Changed 5 years ago by hamish

Keywords: udig geopublishing.org added

the /var/lib/dpkg/info/xulrunner-1.9.2.postinst script can't find /usr/sbin/update-alternatives because it lives in /usr/bin not /usr/sbin.

A little 'sed -i -e' magic on /var/lib/dpkg/info/xulrunner-1.9.2.postinst to fix the path, then another 'apt-get install', gets the package installed successfully, but really this should be fixed upstream.

The install script is grabbing the xulrunner package from the de.geopublishing.org ppa, which is also causing trouble with a GPG error due to "KEYEXPIRED". (see #1344)

Hamish

comment:2 Changed 5 years ago by kalxas

Priority: blockercritical

disabled the xulrunner installation for now [11588]

comment:3 in reply to:  2 Changed 5 years ago by hamish

Replying to kalxas:

disabled the xulrunner installation for now [11588]

probably should comment out the geopublishing.list ppa in the udig install script too if it isn't being used.

H

comment:4 Changed 5 years ago by kalxas

done :)

comment:5 Changed 5 years ago by kalxas

Priority: criticalmajor

comment:6 Changed 5 years ago by kalxas

xulrunner is not available as a Trusty package. An alternative would be to install it manually within install_udig.sh

http://askubuntu.com/questions/125980/how-do-i-install-xulrunner

comment:7 Changed 5 years ago by fgdrf

Good news: I managed to get xulrunner 1.9.2.x installed (from the mozilla ftp server):

cd /opt
sudo wget -0- https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.2.19/runtimes/xulrunner-1.9.2.19.en-US.linux-i686.tar.bz2 | sudo tar xj
sudo ln -s /opt/xulrunner/xulrunner /usr/bin/xulrunner
sudo ln -s /opt/xulrunner/xpcshell /usr/bin/xpcshell

in addition to get uDig (much more precise Eclipse) working its required to add a runtime property in /usr/lib/udig/udig_internal.ini at the end:

-Dorg.eclipse.swt.browser.XULRunnerPath=/opt/xulrunner

The webview in uDig works but for the given URL ([udig.refractions.net/confluence]) is temporary not available :(

possible workaround:

  • update uDig quickstart to avoid using web view and reference to a locally running WMS/WFS service

comment:8 Changed 5 years ago by hamish

Hi,

we're running out of time, what's the status? can someone in the know update the quickstart for the local WMS?

thanks, Hamish

comment:9 Changed 5 years ago by fgdrf

Owner: changed from live-demo@… to fgdrf

I learned today that there is an other option : Avoid using gtk 3

However, I'll update uDig's quickstart-guide (that will not make use of the web-browser view anymore)

comment:10 Changed 5 years ago by kalxas

Thanks, I will move this ticket to the next version when this is committed.

comment:11 Changed 5 years ago by hamish

fyi, xulrunner packages are still being uploaded for Debian, so it's not abandoned.

https://packages.debian.org/search?keywords=xulrunner

Although I wouldn't like to have to recompile firefox/iceweasel to get it.

comment:12 Changed 5 years ago by kalxas

Milestone: OSGeoLive8.0OSGeoLive8.5

comment:13 Changed 5 years ago by kalxas

Summary: xulrunner installation breaks dpkg (udig installer)udig crashes on web tab (xulrunner installation breaks dpkg)

comment:14 Changed 5 years ago by kalxas

Resolution: fixed
Status: newclosed

After the latest fix for Mozilla as a default browser, uDig does not crash anymore.

Note: See TracTickets for help on using tickets.