Package: hotkey-setup Version: 0.1-17 Severity: important Installation script should be robust.
I do not understand why you use || exit $? in postinst script which will sure to make this exit with 1 osamu:~$ sudo aptitude install hotkey-setup Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done Building tag database... Done The following packages will be upgraded: hotkey-setup 1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/17.6kB of archives. After unpacking 4096B will be freed. Do you want to continue? [Y/n/?] y Writing extended state information... Done (Reading database ... 231811 files and directories currently installed.) Preparing to replace hotkey-setup 0.1-17 (using .../hotkey-setup_0.1-17.1_amd64.deb) ... KDSETKEYCODE: Invalid argument failed to set scancode 1 to keycode 256 invoke-rc.d: initscript hotkey-setup, action "stop" failed. dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... KDSETKEYCODE: Invalid argument failed to set scancode 1 to keycode 256 invoke-rc.d: initscript hotkey-setup, action "stop" failed. dpkg: error processing /var/cache/apt/archives/hotkey-setup_0.1-17.1_amd64.deb (--unpack): subprocess new pre-removal script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/hotkey-setup_0.1-17.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done Building tag database... Done -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages hotkey-setup depends on: ii dmidecode 2.9-1 Dump Desktop Management Interface hotkey-setup recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]