Package: autofs Version: 4.1.3+4.1.4beta2-3 Severity: grave Upgrade from 4.1.3+4.1.4beta2-2 fails:
Preparing to replace autofs 4.1.3+4.1.4beta2-2 (using .../autofs_4.1.3+4.1.4beta2-3_amd64.deb) ... Stopping automounter:dpkg: warning - old pre-removal script returned error exit status 2 dpkg - trying script from the new package instead ... Stopping automounter:dpkg: ... it looks like that went OK. Unpacking replacement autofs ... ... Setting up autofs (4.1.3+4.1.4beta2-3) ... Installing new version of config file /etc/init.d/autofs ... Stopping automounter:dpkg: error processing autofs (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: autofs E: Sub-process /usr/bin/dpkg returned an error code (1) Some errors occurred while unpacking. I'm going to configure the packages that were installed. This may result in duplicate errors or errors caused by missing dependencies. This is OK, only the errors above this message are important. Please fix them and run [I]nstall again Press enter to continue. Setting up autofs (4.1.3+4.1.4beta2-3) ... Stopping automounter:dpkg: error processing autofs (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: autofs installation script returned error exit status 100. Press <enter> to continue. This seems to fail also: sid:~# /etc/init.d/autofs stop Stopping automounter:sid:~# sid:~# sh -x /etc/init.d/autofs stop + FLAGS='defaults 21' + DAEMON=/usr/sbin/automount ++ basename /usr/sbin/automount + prog=automount + initdir=/etc/init.d + test -e /usr/sbin/automount + system=unknown + '[' -f /etc/debian_version ']' + system=debian + '[' debian = redhat ']' + '[' debian = debian ']' + thisscript=/etc/init.d/autofs + '[' '!' -f /etc/init.d/autofs ']' + PATH=/sbin:/usr/sbin:/bin:/usr/bin + export PATH + localoptions= + daemonoptions= + '[' debian = redhat ']' + '[' debian = debian ']' + TIMEOUT=300 + DISABLE_DIRECT=1 + DAEMON_EXIT_WAIT=20 + '[' -f /etc/default/autofs ']' + . /etc/default/autofs ++ TIMEOUT=300 ++ DISABLE_DIRECT=1 + daemonoptions=' --timeout=300' + RETVAL=0 + '[' debian = debian ']' + debian stop + set -e + case "$1" in + echo -n 'Stopping automounter:' Stopping automounter:+ umount_loopback ++ LC_ALL=C ++ awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts + loops= ++ LC_ALL=C ++ awk '!/^#/ && $1 ~ /^automount/ {print $2}' /proc/mounts + automounts='/var/autofs/misc /var/autofs/net /mnt/linux32/home /mnt/linux32/nfs2 /home /neti /nfs2' ++ LC_ALL=C ++ awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts + loopmnts= + any=0 ++ ls /var/run/autofs/_home.pid /var/run/autofs/_mnt_linux32_home.pid /var/run/autofs/_mnt_linux32_nfs2.pid /var/run/autofs/_neti.pid /var/run/autofs/_nfs2.pid /var/run/autofs/_var_autofs_misc.pid /var/run/autofs/_var_autofs_net.pid + for file in '`ls /var/run/autofs/*.pid 2>/dev/null`' + '[' -e /var/run/autofs/_home.pid ']' + any=1 ++ head -n 1 /var/run/autofs/_home.pid + pid=902 ++ ps -wwo cmd= 902 ++ sed -e 's,.* --pid-file=/var/run/autofs/\([^ ]*\)\.pid.*,\1,; s,_,/,g' + mnt=/home + start-stop-daemon --stop --quiet --retry USR2/20 --pidfile /var/run/autofs/_home.pid --exec /usr/sbin/automount sid:~# sid:~# start-stop-daemon --stop --retry USR2/20 --pidfile /var/run/autofs/_home.pid --exec /usr/sbin/automount No /usr/sbin/automount found running; none killed. sid:~# sid:~# ps aux | grep automount root 651 0.0 0.0 11748 944 ? S Mar18 0:00 /usr/sbin/automount --pid-file=/var/run/autofs/_var_autofs_misc.pid --timeout=300 /var/autofs/misc file /etc/auto.misc root 720 0.0 0.0 11736 932 ? S Mar18 0:00 /usr/sbin/automount --pid-file=/var/run/autofs/_var_autofs_net.pid --timeout=300 /var/autofs/net program /etc/auto.net root 793 0.0 0.0 12860 1064 ? S Mar18 0:00 /usr/sbin/automount --pid-file=/var/run/autofs/_mnt_linux32_home.pid --timeout=300 /mnt/linux32/home yp auto_home root 807 0.0 0.0 12860 1048 ? S Mar18 0:00 /usr/sbin/automount --pid-file=/var/run/autofs/_mnt_linux32_nfs2.pid --timeout=300 /mnt/linux32/nfs2 yp auto_nfs2 root 902 0.0 0.0 12860 1064 ? S Mar18 0:00 /usr/sbin/automount --pid-file=/var/run/autofs/_home.pid --timeout=300 /home yp auto.home -proto=udp,intr,vers=3 root 1030 0.0 0.0 12860 1048 ? S Mar18 0:00 /usr/sbin/automount --pid-file=/var/run/autofs/_neti.pid --timeout=300 /neti yp auto_neti -intr,vers=3 root 1125 0.0 0.0 12860 1048 ? S Mar18 0:00 /usr/sbin/automount --pid-file=/var/run/autofs/_nfs2.pid --timeout=300 /nfs2 yp auto_nfs2 -proto=udp,intr,vers=2 root 5148 0.0 0.0 2700 540 pts/3 R+ 09:28 0:00 grep automount sid:~# sid:~# killall automount killall automount worked! start-stop-daemon --stop don't seem to work... sid:~# which start-stop-daemon /sbin/start-stop-daemon sid:~# dpkg -S /sbin/start-stop-daemon dpkg: /sbin/start-stop-daemon sid:~# dpkg -l dpkg Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii dpkg 1.10.27 Package maintenance system for Debian sid:~# And (after all automount-procssed are killed): sid:~# /etc/init.d/autofs stop Stopping automounter:sid:~# /etc/init.d/autofs still don't work, as start-stop-daemon still fails (correctly this this, as the process don't exists eny more): sid:~# start-stop-daemon --stop --retry USR2/20 --pidfile /var/run/autofs/_home.pid --exec /usr/sbin/automount No /usr/sbin/automount found running; none killed. sid:~# Install of autofs still fails: sid:~# dpkg -i /var/cache/apt/archives/autofs_4.1.3+4.1.4beta2-3_amd64.deb (Reading database ... 80549 files and directories currently installed.) Preparing to replace autofs 4.1.3+4.1.4beta2-3 (using .../autofs_4.1.3+4.1.4beta2-3_amd64.deb) ... Stopping automounter:dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... Stopping automounter:dpkg: ... it looks like that went OK. Unpacking replacement autofs ... Setting up autofs (4.1.3+4.1.4beta2-3) ... Stopping automounter:dpkg: error processing autofs (--install): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: autofs sid:~# Remove also fails: sid:~# dpkg -r autofs (Reading database ... 80547 files and directories currently installed.) Removing autofs ... Stopping automounter:dpkg: error processing autofs (--remove): subprocess pre-removal script returned error exit status 1 Errors were encountered while processing: autofs sid:~# The problem is that '/etc/init.d/autofs stop' fails... I "fixed" the prerm-script to return 0. And then: sid:~# dpkg -i /var/cache/apt/archives/autofs_4.1.3+4.1.4beta2-3_amd64.deb (Reading database ... 80549 files and directories currently installed.) Preparing to replace autofs 4.1.3+4.1.4beta2-3 (using .../autofs_4.1.3+4.1.4beta2-3_amd64.deb) ... Unpacking replacement autofs ... Setting up autofs (4.1.3+4.1.4beta2-3) ... Stopping automounter:dpkg: error processing autofs (--install): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: autofs sid:~# Then I removed autofs with 'dpkg -r autofs' (after fixing the prerm-script to return 0 again...). A new install fails again with the same post-installation problem. And the next try fails with the prerm problem... A new round with first remove and then install failing in post-inst. Then I tried '/var/lib/dpkg/info/autofs.postinst configure', and it seems to work! sid:~# dpkg --configure autofs Setting up autofs (4.1.3+4.1.4beta2-3) ... Stopping automounter: done. Starting automounter: done. sid:~# Success! / Anders -- System Information: Debian Release: 3.1 Architecture: amd64 (x86_64) Kernel: Linux 2.6.11.3 Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to sv_SE) Versions of packages autofs depends on: ii debconf 1.4.39 Debian configuration management sy ii libc6 2.3.2.ds1-20.0.0.1.pure64 GNU C Library: Shared libraries an -- debconf information: * autofs/upgrade-from-broken-version: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]