Bug#422237: asterisk: Setting up asterisk (1.4.3~dfsg-1) -> id: asterisk: No such user

Luca Capello luca at pca.it
Fri May 4 13:12:37 UTC 2007


Package: asterisk
Version: 1:1.4.3~dfsg-1
Severity: important
Tags: patch

Hello,

asterisk installation fails because the user asterisk doesn't exist on
my sid:
=====
root at gismo:/home/luca# apt-get install asterisk
[...]

Setting up asterisk (1.4.3~dfsg-1) ...
id: asterisk: No such user
/etc/init.d/asterisk: line 85: [: =: unary operator expected
chown: `asterisk:asterisk': invalid user
Starting Asterisk PBX: start-stop-daemon: group `asterisk' not found
 (Success)
invoke-rc.d: initscript asterisk, action "start" failed.
dpkg: error processing asterisk (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 asterisk
E: Sub-process /usr/bin/dpkg returned an error code (1)
root at gismo:/home/luca#
=====

Indeed, the problem is the missing executable permission of
asterisk_fix, which is executed during asterisk-config postinst (but
this is linked to #408708 [1]):
=====
root at gismo:/home/luca# grep asterisk_fix /var/lib/dpkg/info/asterisk*
/var/lib/dpkg/info/asterisk-config.postinst:    if [ -x /usr/share/asterisk/bin/asterisk_fix ]; then
/var/lib/dpkg/info/asterisk-config.postinst:            /usr/share/asterisk/bin/asterisk_fix
/var/lib/dpkg/info/asterisk.list:/usr/share/asterisk/bin/asterisk_fix
/var/lib/dpkg/info/asterisk.md5sums:11a2718ef8238904fa22de1c1d80109f usr/share/asterisk/bin/asterisk_fix

root at gismo:/home/luca# ls -l /usr/share/asterisk/bin/asterisk_fix
-rw-r--r-- 1 root root 2149 2007-04-25 22:06 /usr/share/asterisk/bin/asterisk_fix

root at gismo:/home/luca#
=====

This bug is still present in the latest version (1:1.4.4~dfsg-1),
here's the patch:

--8<---------------cut here---------------start------------->8---
--- debian/rules.ORG   2007-05-04 12:42:55.000000000 +0200
+++ debian/rules       2007-05-04 12:45:19.000000000 +0200
@@ -137,6 +137,8 @@

        dh_install -s --sourcedir=debian/tmp

+       chmod +x $(CURDIR)/debian/asterisk/usr/share/asterisk/bin/asterisk_fix
+
        $(RM) -f $(CURDIR)/debian/asterisk/usr/sbin/{stereorize,streamplayer}
        touch $@

--8<---------------cut here---------------end--------------->8---

Thx, bye,
Gismo / Luca

Footnotes: 
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=408708

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.20-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages asterisk depends on:
ii  addus 3.102                              Add and remove users and groups
ii  aster 1:1.4.3~dfsg-1                     config files for asterisk
ii  aster 1:1.4.3~dfsg-1                     sound files for asterisk
ii  libas 1.0.14~rc3-1                       ALSA library
ii  libc6 2.5-5                              GNU C Library: Shared libraries
ii  libco 1.39+1.40-WIP-2006.11.14+dfsg-2+b1 common error description library
ii  libct 0.63-3.2                           libraries for connecting to MS SQL
ii  libcu 7.15.5-1                           Multi-protocol file transfer libra
ii  libgc 1:4.2-20070307-1                   GCC support library
ii  libgs 1.0.10-13                          Shared libraries for GSM speech co
ii  libid 0.6.5-1                            GNU libidn library, implementation
ii  libik 1.2-3                              C library for the Jabber IM platfo
ii  libkr 1.6.dfsg-1                         MIT Kerberos runtime libraries
ii  liblt 1.5.22-4                           A system independent dlopen wrappe
ii  libnc 5.5-5                              Shared libraries for terminal hand
ii  libne 0.52.2-10                          Not Erik's Windowing Toolkit - tex
ii  libog 1.1.3-2                            Ogg Bitstream Library
ii  libpo 1.10-3                             lib for parsing cmdline parameters
ii  libpq 8.2.4-1                            PostgreSQL C client library
ii  libpr 1.4.0-2                            Primary Rate ISDN specification li
ii  libra 0.5.5-1                            Enhanced RADIUS client library
ii  libse 1:2.10.1-3                         library to read temperature/voltag
ii  libsn 5.3.1-3.1                          NET SNMP (Simple Network Managemen
ii  libsp 1.1.12-3                           The Speex Speech Codec
ii  libsq 2.8.17-2                           SQLite shared library
ii  libss 0.9.8e-4                           SSL shared libraries
ii  libst 4.2-20070307-1                     The GNU Standard C++ Library v3
ii  libto 1:1.4.2.1~dfsg-1                   tonezone library (runtime)
ii  libvo 1.1.2.dfsg-1.2                     The Vorbis General Audio Compressi
ii  libvo 1.1.2.dfsg-1.2                     The Vorbis General Audio Compressi
ii  libwr 7.6.dbs-13                         Wietse Venema's TCP wrappers libra
ii  unixo 2.2.11-13                          ODBC tools libraries
ii  zlib1 1:1.2.3-13                         compression library - runtime

asterisk recommends no packages.

-- no debconf information




More information about the Pkg-voip-maintainers mailing list