Getting an unexpected warning and a syntax error when installing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ebox (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ebox
When installing ebox via apt-get from the command line I got this displayed in the output:
Adding new user `ebox' (UID 114) with group `ebox' ...
The home directory `/var/lib/ebox/' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/var/lib/ebox/' does not belong to the user that you are currently creating.
Adding user `ebox' to group `adm' ...
Adding user ebox to group adm
Done.
sh: Syntax error: "(" unexpected
The warning is a little worrying and the syntax error is obviously a bug. The package did install though and everything seems to work.
ProblemType: Bug
Architecture: i386
Date: Wed Dec 16 07:56:53 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: ebox 1.3.5-0ubuntu2
PackageArchitec
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: ebox
Uname: Linux 2.6.31-16-generic i686
XsessionErrors:
(gnome-
(gnome-
(polkit-
(nautilus:1559): Eel-CRITICAL **: eel_preferences
(nautilus:2559): Eel-CRITICAL **: eel_preferences
I did install ebox successfully one month ago, but now, I got the same problem when starting ebox...
$ sudo /etc/init.d/ebox usage
sh: Syntax error: "(" unexpected
$ sudo /usr/bin/perl /etc/init.d/ebox usage
sh: Syntax error: "(" unexpected
Which let me think it run under sh (instead of perl as indicated at first line of ebox)
$ sudo sh -x /etc/init.d/ebox usage
+ use strict
/etc/init.d/ebox: 1: use: not found
+ use warnings
/etc/init.d/ebox: 1: use: not found
+ use EBox::Global
/etc/init.d/ebox: 1: use: not found
+ use EBox
/etc/init.d/ebox: 1: use: not found
+ use EBox::Sudo
/etc/init.d/ebox: 1: use: not found
+ use File::Slurp
/etc/init.d/ebox: 1: use: not found
/etc/init.d/ebox: 18: Syntax error: "(" unexpected
Which confirm my idea: it run under sh instead of perl
Note that, strangely, if you run it without root priviledges (as normal user), it says: perl5/EBox. pm line 137.
$ /usr/bin/perl /etc/init.d/ebox usage
Cannot change user to ebox at /usr/share/
Which let me think it run correctly as perl executable.