気がついたらRaspberry Piにwatchdogを入れたらエラーが出る様になってた。。。
正確にはwatchdog以外でも出る可能性は多分にあるのですが。。。
Raspbianで修正されてくれると嬉しいのですが、かなり前から発症している問題らしいので直るかは不明。
エラーメッセージはこんな感じです。
# apt-get install watchdog
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
watchdog
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/81.7 kB of archives.
After this operation, 209 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package watchdog.
(Reading database ... 70433 files and directories currently installed.)
Unpacking watchdog (from .../watchdog_5.12-1_armhf.deb) ...
Processing triggers for man-db ...
Setting up watchdog (5.12-1) ...
/run/udev or .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
insserv: warning: script 'mathkernel' missing LSB tags and overrides
insserv: warning: script 'mathkernel' missing LSB tags and overrides
insserv: There is a loop between service watchdog and mathkernel if stopped
insserv: loop involving service mathkernel at depth 2
insserv: loop involving service watchdog at depth 1
insserv: Stopping mathkernel depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing watchdog (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
watchdog
E: Sub-process /usr/bin/dpkg returned an error code (1)
insservでエラーが出ていてパッケージの初期設定が進まない為、正常に導入できません。
Raspberry Pi Forumに情報があります。
http://www.forum-raspberrypi.de/Thread-insserv-warning-script-mathkernel-missing-lsb-tags-and-overrides
/etc/init.d/mathkernelを一部修正して回避します。
以下を#!/bin/shの下に追記します。
### BEGIN INIT INFO
# Provides: mathkernel
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: mathkernel
### END INIT INFO