Package: elpa-expand-region Version: 0.10.0-6 Severity: grave Dear maintainer,
while upgrading emacs24 from 24.5+1-2 to 24.5+1-3, I get the following error which eventually leads to an upgrad failure: ,---- | [...] | Remove elpa-expand-region for emacs24 | remove/emacs24-24.5+1: Handling removal of emacsen flavor emacs24 | dh-elpa: purging flavor specific files for emacs24 | find: `/usr/share/emacs24/site-lisp/elpa/emacs24-24.5+1': No such file or directory | ERROR: remove script from elpa-expand-region package failed | dpkg: warning: subprocess old pre-removal script returned error exit status 1 | dpkg: trying script from the new package instead ... | [...] `---- (This looks a lot like #802963.) The second prerm run eventually fails for another reason which looks like a different bug in the dh-elpa template, but we can see that the removal script (usr/lib/emacsen-common/packages/remove/elpa-expand-region) wants to remove the wrong directory. Rebuilding elpa-expand-region with the current dh-elpa (0.0.15) and installing the resulting package before upgrading emacs24 fixed this particular issue because updated dh-elpa templates were used. Cheers, -Hilko -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.2.0-1-amd64 (SMP w/6 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) -- no debconf information