forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DEB install errors, yet manual script doesnt. ADVICE/hlp plz

 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Packaging
View previous topic :: View next topic  
Author Message
jimimaseye
Xandrosian
Xandrosian


Joined: 31 Oct 2006
Posts: 212

PostPosted: Tue Feb 09, 2010 4:45 am    Post subject: DEB install errors, yet manual script doesnt. ADVICE/hlp plz Reply with quote

Hi guys.

I have recently been playing with installing RealPlayer11 on my X4.1. Although we've seen that the .BIN install works, it does have a few problems in that the official install environment has an incompatible LANGUAGE variable and a shell script error. So I wanted to see if I could get a DEB to work. So I started by downloading the RPM and 'alien convert' it to a deb - as Doctore has proved that this works a treat, (it doesnt have the failing dependancy text which prevents the official DEB from installing), fixed a fault in the 'functions' script and added a correction to the LANGUAGE variable (in the 'realplay' script), and rebuilt the DEB using the instructions as found on this forum. (See http://forums.xandros.com/viewtopic.php?p=229377#229377 and associated postings for full details).

Anyway......

I have the DEB and the Xandros Networks performs the install. But I get an error during the install regarding gconf_settings:

Quote:
postinst...
Path setup done.
Succeeded.
installing application icons resource...
installing document icons resource...
realplay.desktop;
.
.
realplay.desktop;
realplay.desktop;
Succeeded.
./install_gconf_settings.sh: line 15: gconftool-2 --type=string --set /desktop/gnome/url-handlers/rtsp/command "realplay %s": No such file or directory
./install_gconf_settings.sh: line 18: gconftool-2 --type=bool --set /desktop/gnome/url-handlers/rtsp/need-terminal false: No such file or directory
./install_gconf_settings.sh: line 21: gconftool-2 --type=bool --set /desktop/gnome/url-handlers/rtsp/enabled true: No such file or directory
Configuring Mozilla...
Installing .mo locale files...
chcon not found; not setting selinux context needed only for Fedora.
Succeeded.
Done.

However, if I MANUALLY go to the (new) RealPlayer11 directory and manually run the /postinst/postinst.sh which is the same install script being run by XN (which in turn calls 'install_gconf_settings.sh' which seems to be the failing script), it seems to run through ok. Also, if I perform the full DEB install using the console with "dpkg -i RealPlayer11GOLD.deb" (isnt this what XN is using anyway?) it runs though and installs ok.

(The same thing happens on uninstalling too. With XN, I get:
Quote:
prerm...
Uninstalling .mo locale files...
./uninstall_gconf_settings.sh: line 14: gconftool-2 --unset /desktop/gnome/url-handlers/rtsp/command: No such file or directory
./uninstall_gconf_settings.sh: line 15: gconftool-2 --unset /desktop/gnome/url-handlers/rtsp/need-terminal: No such file or directory
./uninstall_gconf_settings.sh: line 16: gconftool-2 --unset /desktop/gnome/url-handlers/rtsp/enabled: No such file or directory
Succeeded.
uninstalling application icons resource...
uninstalling document icons resource

but with command line dpkg I do not.

I cannot understand why.

I can see some logic (I think!) on the failing line in that is refers to a directory that doesnt exist (hence the error): "/desktop/gnome/url-handlers/...." which just goes to add to my confusion: why doesnt the error appear all the time?!

Why does the postinst.sh (and subsequently the install_gconf_settings.sh script) NOT work ok when being installed via XandrosNetworks (which I believe uses dpkg -i RealPlayer11GOLD.deb XN), and yet runs through without error if run manually with console 'dpkg -i RealPlayer11GOLD.deb' or by calling the script?

I hope you understand the question. I would like to send the DEB to you also to see the contents and understand what I have (but dont know how or where and we cant PM anyone).

(If I get it fully functional then maybe we can make this DEB available to the world as a fully installable DEB for Realplayer11 and X4.1)
_________________
jimimaseye
Xandros Novice (4 and 3.0 Deluxe)
Easily led by others' suggestions.
Never shuts up about working results and solutions!


Last edited by jimimaseye on Wed Feb 10, 2010 5:28 am; edited 1 time in total
Back to top
View user's profile Send private message
TekMate
Xendrosian
Xendrosian


Joined: 20 Feb 2003
Posts: 1092
Location: MA

PostPosted: Tue Feb 09, 2010 11:22 am    Post subject: Reply with quote

To the best of my knowledge XN is a front end for apt not dpkg.
Apt tries to check dependencies and fix or error out if there is a problem.
Dpkg assumes you know what you are doing and will happily trash your system as that is what you asked it to. This is one of the reason to stay away from dpkg if you can. Newer system use gdeb or gdebi you can see if this is available this checks before installing (if possible) and doesn't clobber the system.
_________________

If you were offered the chance to learn the truth…would you take it?
Back to top
View user's profile Send private message Visit poster's website
jimimaseye
Xandrosian
Xandrosian


Joined: 31 Oct 2006
Posts: 212

PostPosted: Tue Feb 09, 2010 12:19 pm    Post subject: Reply with quote

Hi Tekmate

I hear what youre saying but Im not sure that the differences between the levels of care between apt and dkpg are the answer, although perhaps I should try an install at console using apt-get and see if i get the same as I do with XN. Why would the single command line in the script fail just because it is being run by XN (apt) and yet it seems to work fine with both dpkg, and even a console prompt. Surely if it works at console prompt by MANUALLY typing the same command then surely it is acceptable by the system on a whole and apt wouldnt care. Further more, this isnt about dependancies.

One of the 3 command lines itself that is failing in the script (all 3 are similar) is:

$AS_USER "gconftool-2 --type=bool --set /desktop/gnome/url-handlers/rtsp/need-terminal false"

where $AS_USER is "su $USER -c " (defined earlier in the script)

Therefore the complete line is

su $USER -c "gconftool-2 --type=bool --set /desktop/gnome/url-handlers/rtsp/need-terminal false"

Now if you run this as a manual command in console, no problem (try it yourself). In fact, if you call the script containing this command (install_gconf_settings.sh), from a console, no problems. Its only during XN installation when the very SAME script is called, that it fails.


For your info, here is the complete script:
Quote:

(FUNCTIONS): ****
AS_USER=
if [ "$ID" = "0" ] ; then
if [ "$LOGNAME" != "" ] ; then
AS_USER="su $LOGNAME -c -- "
elif [ "$USER" != "" ] ; then
AS_USER="su $USER -c -- "
fi
else
# This is needed to execute command in double-quotation marks, which
# could result in the following error:
# bash: xdg-desktop-icon install --novendor realplay.desktop: No such file or directory
AS_USER="eval "
fi
******

#!/bin/bash
export ARG0=$0
POSTINST_DIR=${ARG0%/*} # Delete trailing file name.

POSTINST_DIR=$( cd $POSTINST_DIR; pwd )
export POSTINST_DIR
pushd $POSTINST_DIR > /dev/null.

./functions

# Configure gconf -- need to figure out if this should go into the setup assistant.

$AS_USER "gconftool-2 --type=string --set /desktop/gnome/url-handlers/rtsp/command \"${TARGET} %s\""
logcmd $AS_USER "gconftool-2 --type=string --set /desktop/gnome/url-handlers/rtsp/command \"${TARGET} %s\""
$AS_USER "gconftool-2 --type=bool --set /desktop/gnome/url-handlers/rtsp/need-terminal false"
logcmd $AS_USER "gconftool-2 --type=bool --set /desktop/gnome/url-handlers/rtsp/need-terminal false"
$AS_USER "gconftool-2 --type=bool --set /desktop/gnome/url-handlers/rtsp/enabled true"
logcmd $AS_USER "gconftool-2 --type=bool --set /desktop/gnome/url-handlers/rtsp/enabled true"

#last_cmd_status_check

popd > /dev/null


What do you think?
_________________
jimimaseye
Xandros Novice (4 and 3.0 Deluxe)
Easily led by others' suggestions.
Never shuts up about working results and solutions!
Back to top
View user's profile Send private message
TekMate
Xendrosian
Xendrosian


Joined: 20 Feb 2003
Posts: 1092
Location: MA

PostPosted: Tue Feb 09, 2010 3:03 pm    Post subject: Reply with quote

-c class Use the settings of the specified login class. Only allowed for the super-user.

When you do this from a command line are you already root? It seems like it wants root privileges rather than asking for them but I could be wrong.
_________________

If you were offered the chance to learn the truth…would you take it?
Back to top
View user's profile Send private message Visit poster's website
jimimaseye
Xandrosian
Xandrosian


Joined: 31 Oct 2006
Posts: 212

PostPosted: Wed Feb 10, 2010 5:26 am    Post subject: Reply with quote

I do run it as root anyway, yes. I understand the command and indeed it does work at command line level.

Now here's a thing.........

I have used apt-get install at CONSOLE level to install the very same deb file and it installs absolutely fine without any errors reported (just like the dpkg install).

It seems, therefore, that it is simply the XandrosNetworks install software that has a problem. This is strange as you say that it uses the same technique for installation (apt-get).

Quote:
# apt-get install realplay
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
realplay
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/8551kB of archives.
After unpacking 20.4MB of additional disk space will be used.
Selecting previously deselected package realplay.
(Reading database ... 88308 files and directories currently installed.)
Unpacking realplay (from .../Desktop/./RealPlayer11GOLD.deb) ...
Setting up realplay (11.0.2.1744) ...
postinst...
Path setup done.
Succeeded.
installing application icons resource...
installing document icons resource...
realplay.desktop;
.
.
.
realplay.desktop;
realplay.desktop;
realplay.desktop;
Succeeded.
Configuring Mozilla...
Installing .mo locale files...
chcon not found; not setting selinux context needed only for Fedora.
Succeeded.


Compare this to the XN install and you will see that the errors dont appear (after the red 'Succeeded' above. See previous posting).

So, my conclusion: I think I have found a problem with XN (subject to someone wise, advanced and technically able to confirm or demonstrate to the contrary).

Perhaps someone with a premium license may wish to raise it with Support to see what they think. (I cannot as I am running 4.1 OCE and support logging isnt allowed).
_________________
jimimaseye
Xandros Novice (4 and 3.0 Deluxe)
Easily led by others' suggestions.
Never shuts up about working results and solutions!
Back to top
View user's profile Send private message
TekMate
Xendrosian
Xendrosian


Joined: 20 Feb 2003
Posts: 1092
Location: MA

PostPosted: Wed Feb 10, 2010 8:34 am    Post subject: Reply with quote

I doubt they will continue using XN even if they decide to release a new version they purchased CNR it wouldn't make sense to maintain both.
_________________

If you were offered the chance to learn the truth…would you take it?
Back to top
View user's profile Send private message Visit poster's website
jimimaseye
Xandrosian
Xandrosian


Joined: 31 Oct 2006
Posts: 212

PostPosted: Sat Feb 13, 2010 5:49 am    Post subject: Reply with quote

They have thousands of existing customers using their technologies and OS's that use XandrosNetworks installer including paid Server and Premium editions. And these people rely on XN. I very much doubt that they can and will completely stop all support for it just because of buying CNR. CNR will only be useful to future releases and developments. And as this 'problem' may be something that needs fixing and could affect other installs as well then I think it should be looked into for their benefit.

But I, and you, are both summising.

Perhaps we should log it with them anyway and find out for sure from them.
_________________
jimimaseye
Xandros Novice (4 and 3.0 Deluxe)
Easily led by others' suggestions.
Never shuts up about working results and solutions!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Packaging All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group