Package: dpkg Version: 1.15.4 Severity: normal This occurs in Emdebian Grip but could also occur whenever a file that is diverted has been deleted. When the diversion comes to be updated, dpkg-divert tries to 'mv' the old diverted file without checking that it exists, 'mv' then fails and dpkg-divert errors out causing the postinst to fail.
The particular problem was with dash: Setting up dash (0.5.5.1-2em1) ... mv: cannot stat `/usr/share/man/man1/sh.distrib.1.gz': No such file or directory dpkg: error processing dash (--configure): subprocess installed post-installation script returned error exit status 1 .... Errors were encountered while processing: dash E: Sub-process /usr/bin/dpkg returned an error code (1) # touch /usr/share/man/man1/sh.distrib.1.gz Setting up dash (0.5.5.1-2em1) ... Removing `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' dpkg-divert could simply ignore the missing file. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores) 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 dpkg depends on: ii coreutils 7.5-6 GNU core utilities ii libc6 2.9-27 GNU C Library: Shared libraries ii lzma 4.43-14 Compression method of 7z format in dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 0.7.24 Advanced front-end for dpkg -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

