Всем добрый день.
Столкнулся вчера с такой багой. При обновлении системы получил следующую ошибку:
/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
Все решается очень просто:
1. sudo /etc/init.d/hotkey-setup
. Ввоидм рутовый пароль.
2. Смотрим код скрипта. находим место
# This entire block does nothing on desktops right now
if laptop-detect; then
do_video
;;
restart|force-reload)
$0 stop || true
$0 start
3. Добавляем маленькую fi
# This entire block does nothing on desktops right now
if laptop-detect; then
do_video;
fi;
;;
restart|force-reload)
$0 stop || true
$0 start
4. Сохраняем документ.
5. Теперь можно еще раз запустить обновление системы.