package "stun" post-installation script error

petr bug petr.bug at gmail.com
Sat Mar 31 17:39:28 UTC 2007


Hello

I installed package stun 0.96.dfsg-1 from Ubuntu 6.10 universe
repository. Now any installation via synaptic, aptitude or security
updates gives this messages:

petr at machine:~$ LANG= sudo apt-get install some-installed-package
Reading package lists... Done
Building dependency tree
Reading state information... Done
sun-java5-bin is already the newest version.
...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up stun (0.96.dfsg-1) ...
No primary IP given. Exiting.
invoke-rc.d: initscript stun, action "start" failed.
dpkg: error processing stun (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 stun
E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems that post-installation script tries to start
/etc/init.d/stun, but the configuration file does not have ip
addresses and the daemon refuses to start without them.

The warning is annoying at best and confuses novices (and may lead to
trouble once user is accustomed to seeing it and does not notice some
serious message). I can can workaround it but it needs some knowledge
user may not have since user most likely needs the client part of the
package.

I propose to:
a) not start stund server by default or
b) to persuade upstream developers to autodetect public interfaces
(this cant be made reliable though)
c) provide separate client and server packages
There may be other options, though.

Best regards
Petr Hluzin



More information about the Pkg-voip-maintainers mailing list