installation failed on debian 7 (wheezy)

Hi folks,

todays installation on debian 7 failed with following error:

root@repetierserver:~/download# dpkg -i Repetier-Server-0.60.4-Linux.deb
(Reading database ... 11556 files and directories currently installed.)
Preparing to replace repetier-server 0.60.4 (using Repetier-Server-0.60.4-Linux.deb) ...
Uninstall Repetier-Server
/etc/init.d/RepetierServer: line 42: UID: readonly variable
Unpacking replacement repetier-server ...
Setting up repetier-server (0.60.4) ...
Install Repetier-Server
You may see warnings about groups. These can be ignored.
The user `repetierserver' is already a member of `tty'.
adduser: The group `intserial' does not exist.
adduser: The group `ugpio' does not exist.
/var/lib/dpkg/info/repetier-server.postinst: line 12: /etc/sudoers.d/repetierserver-RepetierInstaller: No such file or directory
/etc/init.d/RepetierServer: line 42: UID: readonly variable
dpkg: error processing repetier-server (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 repetier-server

uname -a:
Linux repetierserver 2.6.32-31-pve #1 SMP Thu Jul 24 06:44:16 CEST 2014 x86_64 GNU/Linux

ldd --version:
ldd (Debian EGLIBC 2.13-38+deb7u8) 2.13

Downloaded Version:
Repetier-Server amd64 0.60.4

Any suggestion?

Comments

  • Sure the server is not running after this?

    Try
     
    ps aux | grep tier

    to see if it is running. Line 12 is writing the user to sudoer file to allow execution of commands through sudo without asking back, but wheezy has no sudo installed as it seems.

    Line 42 is a bit unexpected but I could verify that in Wheezy you can not store to a variable UID, So rename in /etc/init.d/RepetierServer UID -> USERID and $UID -> $USERID to fix that message.

    Also I get the same errors the server is running for me.
  • After installing sudo with (that debian install was a minimal one, missed that!)

    apt-get install sudo

    and replacing UID -> USERID it's now running. Maybe it's a good turn to lowercase those variable names. There are conventions which are saying, uppercase variable are for Constants and Environment Variable Names. So switching from UID to uid fixed that problem as well. 

    Anyway, thanks!
Sign In or Register to comment.