dpkg: error processing hotkey-setup (--configure):

Bug #141473 reported by Bogdan Butnaru
4
Affects Status Importance Assigned to Milestone
hotkey-setup (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: hotkey-setup

Hello! From my latest Gutsy update:

bogdanb@eurydice:~$ sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
  feisty-wallpapers
The following packages will be upgraded:
  capplets-data cupsys-driver-gutenprint gimp-print gnome-control-center
  initscripts libgnome-window-settings1 libgnome2-0 libgnome2-common
  libgutenprint2 libgutenprintui2-1 linux-libc-dev sysv-rc sysvutils
  ubuntu-desktop ubuntu-minimal ubuntu-standard xserver-xorg-core
The following partially installed packages will be configured:
  hotkey-setup
17 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 8484kB of archives. After unpacking 2044kB will be freed.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Get:1 http://archive.ubuntu.com gutsy/main sysv-rc 2.86.ds1-14.1ubuntu28 [57.1kB]
Get:2 http://archive.ubuntu.com gutsy/main libgutenprint2 5.0.1-0ubuntu5 [922kB]
Get:3 http://archive.ubuntu.com gutsy/main cupsys-driver-gutenprint 5.0.1-0ubuntu5 [1005kB]
Get:4 http://archive.ubuntu.com gutsy/main libgnome2-common 2.20.0-1ubuntu3 [377kB]
Get:5 http://archive.ubuntu.com gutsy/main libgnome2-0 2.20.0-1ubuntu3 [115kB]
Get:6 http://archive.ubuntu.com gutsy/main gnome-control-center 1:2.20.0-0ubuntu2 [676kB]
Get:7 http://archive.ubuntu.com gutsy/main libgnome-window-settings1 1:2.20.0-0ubuntu2 [107kB]
Get:8 http://archive.ubuntu.com gutsy/main capplets-data 1:2.20.0-0ubuntu2 [460kB]
Get:9 http://archive.ubuntu.com gutsy/main ubuntu-desktop 1.72 [23.0kB]
Get:10 http://archive.ubuntu.com gutsy/main sysvutils 2.86.ds1-14.1ubuntu28 [67.1kB]
Get:11 http://archive.ubuntu.com gutsy/main ubuntu-minimal 1.72 [22.1kB]
Get:12 http://archive.ubuntu.com gutsy/main initscripts 2.86.ds1-14.1ubuntu28 [58.5kB]
Get:13 http://archive.ubuntu.com gutsy/main ubuntu-standard 1.72 [21.9kB]
Get:14 http://archive.ubuntu.com gutsy/main libgutenprintui2-1 5.0.1-0ubuntu5 [132kB]
Get:15 http://archive.ubuntu.com gutsy/main gimp-print 5.0.1-0ubuntu5 [114kB]
Get:16 http://archive.ubuntu.com gutsy/main linux-libc-dev 2.6.22-12.36 [648kB]
Get:17 http://archive.ubuntu.com gutsy/main xserver-xorg-core 2:1.3.0.0.dfsg-12ubuntu6 [3677kB]
Fetched 8484kB in 2s (3406kB/s)
(Reading database ... 165270 files and directories currently installed.)
Preparing to replace sysv-rc 2.86.ds1-14.1ubuntu27 (using .../sysv-rc_2.86.ds1-14.1ubuntu28_all.deb) ...
Unpacking replacement sysv-rc ...
Setting up sysv-rc (2.86.ds1-14.1ubuntu28) ...

(Reading database ... 165270 files and directories currently installed.)
Preparing to replace libgutenprint2 5.0.1-0ubuntu3 (using .../libgutenprint2_5.0.1-0ubuntu5_i386.deb) ...
Unpacking replacement libgutenprint2 ...
Preparing to replace cupsys-driver-gutenprint 5.0.1-0ubuntu3 (using .../cupsys-driver-gutenprint_5.0.1-0ubuntu5_i386.deb) ...
Unpacking replacement cupsys-driver-gutenprint ...
Preparing to replace libgnome2-common 2.20.0-1ubuntu2 (using .../libgnome2-common_2.20.0-1ubuntu3_all.deb) ...
Unpacking replacement libgnome2-common ...
Preparing to replace libgnome2-0 2.20.0-1ubuntu2 (using .../libgnome2-0_2.20.0-1ubuntu3_i386.deb) ...
Unpacking replacement libgnome2-0 ...
Preparing to replace gnome-control-center 1:2.20.0-0ubuntu1 (using .../gnome-control-center_1%3a2.20.0-0ubuntu2_i386.deb) ...
Unpacking replacement gnome-control-center ...
Preparing to replace libgnome-window-settings1 1:2.20.0-0ubuntu1 (using .../libgnome-window-settings1_1%3a2.20.0-0ubuntu2_i386.deb) ...
Unpacking replacement libgnome-window-settings1 ...
Preparing to replace capplets-data 1:2.20.0-0ubuntu1 (using .../capplets-data_1%3a2.20.0-0ubuntu2_all.deb) ...
Unpacking replacement capplets-data ...
Preparing to replace ubuntu-desktop 1.71 (using .../ubuntu-desktop_1.72_i386.deb) ...
Unpacking replacement ubuntu-desktop ...
(Reading database ... 165269 files and directories currently installed.)
Removing feisty-wallpapers ...
(Reading database ... 165262 files and directories currently installed.)
Preparing to replace sysvutils 2.86.ds1-14.1ubuntu27 (using .../sysvutils_2.86.ds1-14.1ubuntu28_i386.deb) ...
Unpacking replacement sysvutils ...
Setting up sysvutils (2.86.ds1-14.1ubuntu28) ...
(Reading database ... 165262 files and directories currently installed.)
Preparing to replace ubuntu-minimal 1.71 (using .../ubuntu-minimal_1.72_i386.deb) ...
Unpacking replacement ubuntu-minimal ...
Preparing to replace initscripts 2.86.ds1-14.1ubuntu27 (using .../initscripts_2.86.ds1-14.1ubuntu28_i386.deb) ...
Unpacking replacement initscripts ...
Preparing to replace ubuntu-standard 1.71 (using .../ubuntu-standard_1.72_i386.deb) ...
Unpacking replacement ubuntu-standard ...
Preparing to replace libgutenprintui2-1 5.0.1-0ubuntu3 (using .../libgutenprintui2-1_5.0.1-0ubuntu5_i386.deb) ...
Unpacking replacement libgutenprintui2-1 ...
Preparing to replace gimp-print 5.0.1-0ubuntu3 (using .../gimp-print_5.0.1-0ubuntu5_i386.deb) ...
Unpacking replacement gimp-print ...
Preparing to replace linux-libc-dev 2.6.22-11.33 (using .../linux-libc-dev_2.6.22-12.36_i386.deb) ...
Unpacking replacement linux-libc-dev ...
Preparing to replace xserver-xorg-core 2:1.3.0.0.dfsg-12ubuntu5 (using .../xserver-xorg-core_2%3a1.3.0.0.dfsg-12ubuntu6_i386.deb) ...
Unpacking replacement xserver-xorg-core ...
Setting up hotkey-setup (0.1-17ubuntu19) ...
KDSETKEYCODE: Invalid argument
failed to set scancode 8a to keycode 205
KDSETKEYCODE: Invalid argument
failed to set scancode 87 to keycode 236
KDSETKEYCODE: Invalid argument
failed to set scancode 8b to keycode 227
KDSETKEYCODE: Invalid argument
failed to set scancode 89 to keycode 161
KDSETKEYCODE: Invalid argument
failed to set scancode 85 to keycode 224
KDSETKEYCODE: Invalid argument
failed to set scancode 86 to keycode 225
KDSETKEYCODE: Invalid argument
failed to set scancode 92 to keycode 226
KDSETKEYCODE: Invalid argument
failed to set scancode 81 to keycode 164
KDSETKEYCODE: Invalid argument
failed to set scancode 82 to keycode 128
KDSETKEYCODE: Invalid argument
failed to set scancode 83 to keycode 165
KDSETKEYCODE: Invalid argument
failed to set scancode 84 to keycode 163
KDSETKEYCODE: Invalid argument
failed to set scancode a2 to keycode 164
KDSETKEYCODE: Invalid argument
failed to set scancode 90 to keycode 165
KDSETKEYCODE: Invalid argument
failed to set scancode 99 to keycode 163
KDSETKEYCODE: Invalid argument
failed to set scancode a4 to keycode 166
KDSETKEYCODE: Invalid argument
failed to set scancode ed to keycode 226
invoke-rc.d: initscript hotkey-setup, action "start" failed.
dpkg: error processing hotkey-setup (--configure):
 subprocess post-installation script returned error exit status 1
Setting up libgutenprint2 (5.0.1-0ubuntu5) ...

Setting up cupsys-driver-gutenprint (5.0.1-0ubuntu5) ...
 * Reloading Common Unix Printing System: cupsd [ OK ]

Setting up libgnome2-common (2.20.0-1ubuntu3) ...

Setting up libgnome2-0 (2.20.0-1ubuntu3) ...

Setting up capplets-data (1:2.20.0-0ubuntu2) ...

dpkg: dependency problems prevent configuration of ubuntu-desktop:
 ubuntu-desktop depends on hotkey-setup; however:
  Package hotkey-setup is not configured yet.
dpkg: error processing ubuntu-desktop (--configure):
 dependency problems - leaving unconfigured
Setting up ubuntu-minimal (1.72) ...
Setting up initscripts (2.86.ds1-14.1ubuntu28) ...

Setting up ubuntu-standard (1.72) ...
Setting up libgutenprintui2-1 (5.0.1-0ubuntu5) ...

Setting up gimp-print (5.0.1-0ubuntu5) ...
Setting up linux-libc-dev (2.6.22-12.36) ...
Setting up xserver-xorg-core (2:1.3.0.0.dfsg-12ubuntu6) ...
Setting up libgnome-window-settings1 (1:2.20.0-0ubuntu2) ...

Setting up gnome-control-center (1:2.20.0-0ubuntu2) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 hotkey-setup
 ubuntu-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up hotkey-setup (0.1-17ubuntu19) ...
KDSETKEYCODE: Invalid argument
failed to set scancode 8a to keycode 205
KDSETKEYCODE: Invalid argument
failed to set scancode 87 to keycode 236
KDSETKEYCODE: Invalid argument
failed to set scancode 8b to keycode 227
KDSETKEYCODE: Invalid argument
failed to set scancode 89 to keycode 161
KDSETKEYCODE: Invalid argument
failed to set scancode 85 to keycode 224
KDSETKEYCODE: Invalid argument
failed to set scancode 86 to keycode 225
KDSETKEYCODE: Invalid argument
failed to set scancode 92 to keycode 226
KDSETKEYCODE: Invalid argument
failed to set scancode 81 to keycode 164
KDSETKEYCODE: Invalid argument
failed to set scancode 82 to keycode 128
KDSETKEYCODE: Invalid argument
failed to set scancode 83 to keycode 165
KDSETKEYCODE: Invalid argument
failed to set scancode 84 to keycode 163
KDSETKEYCODE: Invalid argument
failed to set scancode a2 to keycode 164
KDSETKEYCODE: Invalid argument
failed to set scancode 90 to keycode 165
KDSETKEYCODE: Invalid argument
failed to set scancode 99 to keycode 163
KDSETKEYCODE: Invalid argument
failed to set scancode a4 to keycode 166
KDSETKEYCODE: Invalid argument
failed to set scancode ed to keycode 226
invoke-rc.d: initscript hotkey-setup, action "start" failed.
dpkg: error processing hotkey-setup (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ubuntu-desktop:
 ubuntu-desktop depends on hotkey-setup; however:
  Package hotkey-setup is not configured yet.
dpkg: error processing ubuntu-desktop (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 hotkey-setup
 ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done

Revision history for this message
Niko Cavallini (niko-cava) wrote :

same here purging hotkey-setup does not help.

Revision history for this message
Kazade (kazade) wrote :

Some problem here too

Revision history for this message
Craig A. Eddy (tyche-deactivatedaccount) wrote :

Saturday, September 22, 2007 After Latest Gutsy Gibbon Tribe 5 updates:
Errors were encountered while processing
 hotkey-setup
 ubuntu-desktop

This appears to have gone through at least 3 updates (number unconfirmed, due to not always booting to the Gutsy partition).
Equipment:
Dell Inspiron 530N
OS - Factory installed Ubuntu 7.04 (Feisty Faun)
Non-standard factory-installed NVidia graphics card

Revision history for this message
Kazade (kazade) wrote :

I've found a quick workaround to get apt to finish configuring.

Edit: /var/lib/dpkg/info/hotkey-setup.postinst

And change it to this:

if [ -x "/etc/init.d/hotkey-setup" ]; then
        update-rc.d hotkey-setup multiuser >/dev/null
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
                exit $?
        else
                /etc/init.d/hotkey-setup start || exit $?
        fi
fi

That will let apt complete, however I don't know what the side effects will be, if you have a laptop I probably wouldn't recommend it I just blindly removed the line that was breaking so it could coz problems. You have been warned ;)

Revision history for this message
Alexandre Garnier (zigarn) wrote :

Same problem for me

Revision history for this message
Brad Crittenden (bac) wrote :

I have encountered the same problem with hotkey-setup and ubuntu-desktop after applying updates to Gutsy Tribe 5 today.

Revision history for this message
Alexandre Garnier (zigarn) wrote :

duplicate of #140967

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.