[Pkg-samba-maint] Bug#558116: Bug#558116: samba fails to reconfigure via 'dpkg-reconfigure -plow samba'

Christian Perrier bubulle at debian.org
Thu Nov 26 18:16:38 UTC 2009


Quoting Massimo Manghi (massimo.manghi at unipr.it):
> Package: samba
> Version: 2:3.4.3-1
> Severity: important
> 
> 
> trying to reconfigure samba via the debian dpkg-reconfigure script 
> fails because of a (perhaps) trivial mistake in the way the stream editor 
> 'sed' is used.


This seems completely unrelated to sed use. When adding "set -x" to
samba.postinst, I get:

.../...
+ update-alternatives --install /usr/bin/smbstatus smbstatus /usr/bin/smbstatus.samba3 10 --slave /usr/share/man/man1/smbstatus.1.gz smbstatus.1.gz /usr/share/man/man1/smbstatus.samba3.1.gz
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z  ]
+ exec
+ [  ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ INITCONFFILE=/etc/default/samba
+ umask 022
+ [ -r /etc/default/samba ]
+ db_get samba/run_mode
+ _db_cmd GET samba/run_mode
+ IFS=  printf %s\n GET samba/run_mode
+ IFS=
 read -r _db_internal_line
+ RET=20 Unsupported command "update-alternatives:" (full line was "update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.") received from confmodule.
+ return 20
+ true
+ RUN_MODE=20 Unsupported command "update-alternatives:" (full line was "update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.") received from confmodule.
+ TMPFILE=/etc/default/samba.dpkg-tmp
+ sed -e s/^[[:space:]]*RUN_MODE[[:space:]]*=.*/RUN_MODE="20 Unsupported command "update-alternatives:" (full line was "update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.") received from confmodule."/
sed: -e expression #1, char 140: unknown option to `s'


I highly suspect this has nothing to do with samba....or certainly
nothign to do with our use of sed....


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20091126/eb2b3993/attachment.pgp>


More information about the Pkg-samba-maint mailing list