Bug#481442: sane-utils: Using xinetd, reportd with set -x in the postinst script
Package: sane-utils Version: 1.0.19-9 Followup-For: Bug #481442 Hi, I've the same error. I use xinetd, as before. I've edited the postinst script to add set -x Please find attached the output of the script. Regards Jean-Luc -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.25-k8-3 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages sane-utils depends on: ii adduser 3.107 add and remove users and groups ii debconf [debconf-2.0]1.5.22 Debian configuration management sy ii libavahi-client3 0.6.22-3Avahi client library ii libavahi-common3 0.6.22-3Avahi common library ii libc62.7-11 GNU C Library: Shared libraries ii libieee1284-30.2.11-4cross-platform library for paralle ii libsane 1.0.19-9API library for scanners ii libusb-0.1-4 2:0.1.12-11 userspace USB programming library ii update-inetd 4.30inetd configuration file updater Versions of packages sane-utils recommends: ii avahi-daemon 0.6.22-3 Avahi mDNS/DNS-SD daemon -- debconf information: sane-utils/saned_run: false sane-utils/saned_scanner_group: true [EMAIL PROTECTED] % sudo dpkg --configure -a Setting up sane-utils (1.0.19-9) ... + '[' configure = configure ']' + getent passwd + grep -q '^saned:' + '[' -x /usr/sbin/update-inetd ']' + update-inetd --add '#off# sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned' - IMPORTANT INFORMATION FOR XINETD USERS -- The following line will be added to your /etc/inetd.conf file: #off# sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned If you are indeed using xinetd, you will have to convert the above into /etc/xinetd.conf format, and add it manually. See /usr/share/doc/xinetd/README.Debian for more information. Suggested entry (automatically converted using itox): --- + SANED_DEFAULT=/etc/default/saned + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ '[' '' ']' ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/sane-utils.postinst configure 1.0.19-6 + '[' configure = configure ']' + getent passwd + grep -q '^saned:' + '[' -x /usr/sbin/update-inetd ']' + update-inetd --add '#off# sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned' - IMPORTANT INFORMATION FOR XINETD USERS -- The following line will be added to your /etc/inetd.conf file: #off# sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned If you are indeed using xinetd, you will have to convert the above into /etc/xinetd.conf format, and add it manually. See /usr/share/doc/xinetd/README.Debian for more information. Suggested entry (automatically converted using itox): --- + SANED_DEFAULT=/etc/default/saned + . /usr/share/debconf/confmodule ++ '[' '!' 1 ']' ++ '[' -z '' ']' ++ exec ++ '[' '' ']' ++ exec ++ DEBCONF_REDIR=1 ++ export DEBCONF_REDIR + db_get sane-utils/saned_run + _db_cmd 'GET sane-utils/saned_run' + IFS=' ' + printf '%s\n' 'GET sane-utils/saned_run' + IFS=' ' + read -r _db_internal_line + RET='20 Unsupported command (full line was ) received from confmodule.' + case ${_db_internal_line%%[ ]*} in + return 20 dpkg: error processing sane-utils (--configure): subprocess post-installation script returned error exit status 20 Errors were encountered while processing: sane-utils [EMAIL PROTECTED] %
Bug#481442: sane-utils: Using xinetd, reportd with set -x in the postinst script
Le 16.05.2008 19:09:37, Julien BLACHE a écrit : Jean-Luc Coulon (f5ibh) [EMAIL PROTECTED] wrote: Hi, ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/sane-utils.postinst configure 1.0.19-6 Why do I get 1.0.19-6 whiile configuring 1.0.19-9? Yeah, right. Must source the debconf confmodule right at the start of the postinst. Just so I don't make another upload for nothing, does it work OK if you move the confmodule sourcing right after the set -e ? I've modified the postinst script according to you request and get the same (about) error. Attached the output. Regards Jean-Luc [EMAIL PROTECTED] % sudo dpkg --configure -a Setting up sane-utils (1.0.19-9) ... + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ '[' '' ']' ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/sane-utils.postinst configure 1.0.19-6 + . /usr/share/debconf/confmodule ++ '[' '!' 1 ']' ++ '[' -z '' ']' ++ exec ++ '[' '' ']' ++ exec ++ DEBCONF_REDIR=1 ++ export DEBCONF_REDIR + '[' configure = configure ']' + getent passwd + grep -q '^saned:' + '[' -x /usr/sbin/update-inetd ']' + update-inetd --add '#off# sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned' - IMPORTANT INFORMATION FOR XINETD USERS -- The following line will be added to your /etc/inetd.conf file: #off# sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned If you are indeed using xinetd, you will have to convert the above into /etc/xinetd.conf format, and add it manually. See /usr/share/doc/xinetd/README.Debian for more information. Suggested entry (automatically converted using itox): --- + SANED_DEFAULT=/etc/default/saned + db_get sane-utils/saned_run + _db_cmd 'GET sane-utils/saned_run' + IFS=' ' + printf '%s\n' 'GET sane-utils/saned_run' + IFS=' ' + read -r _db_internal_line + RET='20 Unsupported command (full line was ) received from confmodule.' + case ${_db_internal_line%%[ ]*} in + return 20 dpkg: error processing sane-utils (--configure): subprocess post-installation script returned error exit status 20 Errors were encountered while processing: sane-utils [EMAIL PROTECTED] % pgpfU2A5PBxzu.pgp Description: PGP signature
Bug#481442: sane-utils: Using xinetd, reportd with set -x in the postinst script
Jean-Luc Coulon (f5ibh) [EMAIL PROTECTED] wrote: Hi, ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/sane-utils.postinst configure 1.0.19-6 Yeah, right. Must source the debconf confmodule right at the start of the postinst. Just so I don't make another upload for nothing, does it work OK if you move the confmodule sourcing right after the set -e ? JB. -- Julien BLACHE - Debian GNU/Linux Developer - [EMAIL PROTECTED] Public key available on http://www.jblache.org - KeyID: F5D6 5169 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#481442: sane-utils: Using xinetd, reportd with set -x in the postinst script
Jean-Luc Coulon (f5ibh) [EMAIL PROTECTED] wrote: Hi, /var/lib/dpkg/info/sane-utils.postinst configure 1.0.19-6 Why do I get 1.0.19-6 whiile configuring 1.0.19-9? It's the version you are upgrading from. Just so I don't make another upload for nothing, does it work OK if you move the confmodule sourcing right after the set -e ? I've modified the postinst script according to you request and get the same (about) error. I've rewritten the postinst in -10 and uploaded it. If it doesn't fix the issue, let me know. JB. -- Julien BLACHE - Debian GNU/Linux Developer - [EMAIL PROTECTED] Public key available on http://www.jblache.org - KeyID: F5D6 5169 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#481442: sane-utils: Using xinetd, reportd with set -x in the postinst script
Le 16.05.2008 20:25:45, Julien BLACHE a écrit : Jean-Luc Coulon (f5ibh) [EMAIL PROTECTED] wrote: Hi, /var/lib/dpkg/info/sane-utils.postinst configure 1.0.19-6 Why do I get 1.0.19-6 whiile configuring 1.0.19-9? It's the version you are upgrading from. Thanks I've rewritten the postinst in -10 and uploaded it. If it doesn't fix the issue, let me know. I've loaded and installed it from incoming. Seems to work .. for me :) JL pgpfAGHK43vOP.pgp Description: PGP signature
Bug#481442: sane-utils: Using xinetd, reportd with set -x in the postinst script
Jean-Luc Coulon (f5ibh) [EMAIL PROTECTED] wrote: Hi, I've rewritten the postinst in -10 and uploaded it. If it doesn't fix the issue, let me know. I've loaded and installed it from incoming. Seems to work .. for me :) Great :) Had to rewrite the postinst because the change I asked you to test wasn't enough to get it to work; with only that change update-inetd was outputting things to stdout while debconf wasn't stopped, which is always a no-go. Now that I remember how to not use debconf, let's have some fun with the new saned :-] JB. -- Julien BLACHE - Debian GNU/Linux Developer - [EMAIL PROTECTED] Public key available on http://www.jblache.org - KeyID: F5D6 5169 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]