What do you suggest then? This specific samba installation was totally under control of debconf. Should the bug be reported against another package (maybe a dpkg related package)?
-- Massimo Manghi On Thu, 26 Nov 2009 19:16:38 +0100, Christian Perrier wrote > Quoting Massimo Manghi ([email protected]): > > 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.... -- -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

