15 мая 2012 г.

Не устанавливаются пакеты в Debian

Была у меня такая проблема. Пытаешься чтото установить и вываливает в логе:


Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up initscripts (2.88dsf-13.1+squeeze1) ...
insserv: warning: script 'S85vpnagentd_init' missing LSB tags and overrides
insserv: warning: script 'vpnagentd_init' missing LSB tags and overrides
insserv: Starting vpnagentd_init depends on stop-bootlogd and therefore on system facility `$all' which can not be true!
insserv: Starting vpnagentd_init depends on stop-bootlogd and therefore on system facility `$all' which can not be true!
.....
insserv: Starting vpnagentd_init depends on stop-bootlogd and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service vpnagentd_init and stop-bootlogd if started
insserv:  loop involving service stop-bootlogd at depth 23
insserv:  loop involving service vpnagentd_init at depth 1
insserv: Starting vpnagentd_init depends on stop-bootlogd 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 initscripts (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)

Виной этому оказался Cisco Easy VPN Client. а точнее, его инит-файл /etc/init.d/vpnagentd_init. В нем шапку по-умолчанию заменяем на:

#!/bin/sh

### BEGIN INIT INFO
# Provides: vpnagentd_init
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Cisco vpn agent daemon at boot time
# Description: Cisco vpn agent daemon (believe installed by company ssl client)
### END INIT INFO


После этого пакеты должны устанавливаться нормально.