Package: lynx-cur Version: 2.8.8dev.7-1 Severity: normal Tags: patch If you have a URL in /etc/news/server, such as
snews://news.eternal-september.org:563 lyx-cur's postinst crashes like this: Setting up lynx-cur (2.8.8dev.7-1) ... sed: -e expression #2, char 36: unknown option to `s' dpkg: error processing lynx-cur (--configure): subprocess installed post-installation script returned error exit status 1 -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (99, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.37-rc4 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages lynx-cur depends on: ii debconf [debconf-2.0] 1.5.37 Debian configuration management sy ii libbsd0 0.2.0-1 utility functions from BSD systems ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib ii libgcrypt11 1.4.5-2 LGPL Crypto library - runtime libr ii libgnutls26 2.8.6-1 the GNU TLS library - runtime libr ii libidn11 1.18-1 GNU Libidn library, implementation ii libncursesw5 5.7+20100313-4 shared libraries for terminal hand ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages lynx-cur recommends: ii mime-support 3.51-1 MIME files 'mime.types' & 'mailcap Versions of packages lynx-cur suggests: pn lynx-cur-wrapper <none> (no description available) -- debconf information: * lynx-cur/etc_lynx.cfg: * lynx-cur/defaulturl: http://www.debian.org/
Index: lynx-cur-2.8.8dev.7/debian/postinst =================================================================== --- lynx-cur-2.8.8dev.7.orig/debian/postinst 2010-12-13 21:30:33.137321597 +0000 +++ lynx-cur-2.8.8dev.7/debian/postinst 2010-12-13 21:31:03.242134843 +0000 @@ -49,7 +49,7 @@ echo "NNTPSERVER:Not-Configured-Yet" >> $CONFIGFILE sed -e "s:^STARTFILE\\:.*:STARTFILE\\:${defaulturl}:" \ - -e "s/^NNTPSERVER:.*/NNTPSERVER:${NNTPSERVER}/" \ + -e "s~^NNTPSERVER:.*~NNTPSERVER:${NNTPSERVER}~" \ < $CONFIGFILE > $CONFIGFILE.tmp mv -f $CONFIGFILE.tmp $CONFIGFILE