hotkey-setup did not install properly and crashes

Asked by goinveg

During update of 9.04 there was an error during the install of hotkey-setup. I copied this info on trying to do a manual install:

~$ sudo apt-get install hotkey-setup
Reading package lists... Done
Building dependency tree
Reading state information... Done
hotkey-setup is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up hotkey-setup (0.1-23ubuntu10) ...
/etc/init.d/hotkey-setup: 47: Syntax error: ";;" unexpected (expecting "fi")
invoke-rc.d: initscript hotkey-setup, action "start" failed.
dpkg: error processing hotkey-setup (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 hotkey-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu hotkey-setup Edit question
Assignee:
No assignee Edit question
Solved by:
John Crepezzi
Solved:
Last query:
Last reply:
Revision history for this message
BirdDog (briarpatch-jim) said :
#1

It's happening here too. The package will neither install nor remove. It only returns the above error.

Revision history for this message
BirdDog (briarpatch-jim) said :
#2

Looks like a syntax error in the hotkey-setup script:

/etc/init.d/hotkey-setup: 47: Syntax error: ";;" unexpected (expecting "fi")
invoke-rc.d: initscript hotkey-setup, action "start" failed.
dpkg: error processing hotkey-setup (--configure):
 subprocess post-installation script returned error exit status 2

Revision history for this message
Best John Crepezzi (john-crepezzi) said :
#3

To fix this, i added a line at line 47 of /etc/init.d/hotkey-setup:
fi

then issued a "apt-get upgrade all", everything looks good.
This is only for laptops, look like they just missed a line in the setup

Revision history for this message
goinveg (goinveg) said :
#4

Thanks John Crepezzi, that solved my question.

Revision history for this message
John Crepezzi (john-crepezzi) said :
#5

great! No problem! :)