vnstat apt-get Fehler

RobotSox

New Member
Hallo.

Ich habe heute versucht mir auf meinem 64Bit Debian Root das vnstat zu installieren. Leider bekomme ich da aber immer folgende Fehlermeldung retour:

Code:
dpkg: Fehler beim Bearbeiten von vnstat (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
configured to not write apport reports
                                      Fehler traten auf beim Bearbeiten von:
 vnstat
E: Sub-process /usr/bin/dpkg returned an error code (1)

Weis jemand wie ich dies beheben kann?

Habe schon versucht via apt-get remove --purge vnstat das Paket zu deinstallieren und neu zu installieren, doch leider ohne Erfolg.

Ich hoffe Ihr könnt mir helfen.
 
Einmal:

Code:
apt-get update
apt-get upgrade
apt-get install vnstat

Und die komplette Ausgabe hier pasten.
 
Code:
# apt-get update
OK   http://mirror.eu.oneandone.net squeeze Release.gpg
Ign http://mirror.eu.oneandone.net/debian/ squeeze/contrib Translation-de
Ign http://mirror.eu.oneandone.net/debian/ squeeze/contrib Translation-en
OK   http://mirror.eu.oneandone.net/debian/ squeeze/main Translation-de
Ign http://mirror.eu.oneandone.net/debian/ squeeze/main Translation-en
Ign http://mirror.eu.oneandone.net/debian/ squeeze/non-free Translation-de
Ign http://mirror.eu.oneandone.net/debian/ squeeze/non-free Translation-en
Hole:1 http://mirror.eu.oneandone.net squeeze/updates Release.gpg [836 B]
Ign http://mirror.eu.oneandone.net/debian-security/ squeeze/updates/contrib Translation-de
Ign http://mirror.eu.oneandone.net/debian-security/ squeeze/updates/contrib Translation-en
Ign http://mirror.eu.oneandone.net/debian-security/ squeeze/updates/main Translation-de
Ign http://mirror.eu.oneandone.net/debian-security/ squeeze/updates/main Translation-en
Ign http://mirror.eu.oneandone.net/debian-security/ squeeze/updates/non-free Translation-de
Ign http://mirror.eu.oneandone.net/debian-security/ squeeze/updates/non-free Translation-en
OK   http://mirror.eu.oneandone.net squeeze Release
Hole:2 http://mirror.eu.oneandone.net squeeze/updates Release [87,0 kB]
OK   http://mirror.eu.oneandone.net squeeze/main Sources
OK   http://mirror.eu.oneandone.net squeeze/contrib Sources
OK   http://mirror.eu.oneandone.net squeeze/non-free Sources
OK   http://mirror.eu.oneandone.net squeeze/main amd64 Packages
OK   http://mirror.eu.oneandone.net squeeze/contrib amd64 Packages
OK   http://mirror.eu.oneandone.net squeeze/non-free amd64 Packages
OK   http://mirror.eu.oneandone.net squeeze/updates/main Sources
OK   http://mirror.eu.oneandone.net squeeze/updates/contrib Sources
OK   http://mirror.eu.oneandone.net squeeze/updates/non-free Sources
OK   http://mirror.eu.oneandone.net squeeze/updates/main amd64 Packages
OK   http://mirror.eu.oneandone.net squeeze/updates/contrib amd64 Packages
OK   http://mirror.eu.oneandone.net squeeze/updates/non-free amd64 Packages
Es wurden 87,8 kB in 0 s geholt (4.074 kB/s)
Paketlisten werden gelesen... Fertig


Code:
# apt-get upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


Code:
# apt-get install vnstat
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
Vorgeschlagene Pakete:
  vnstati
Die folgenden NEUEN Pakete werden installiert:
  vnstat
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 82,4 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 311 kB Plattenplatz zusätzlich benutzt.
Vormals abgewähltes Paket vnstat wird gewählt.
(Lese Datenbank ... 86268 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacken von vnstat (aus .../vnstat_1.10-1_amd64.deb) ...
Trigger für man-db werden verarbeitet ...
vnstat (1.10-1) wird eingerichtet ...
insserv: warning: script 'K02drwebd' missing LSB tags and overrides
insserv: warning: script 'K02bot_start.sh' missing LSB tags and overrides
insserv: warning: script 'bot_start.sh' missing LSB tags and overrides
insserv: warning: script 'drwebd' missing LSB tags and overrides
insserv: warning: script 'firewall' missing LSB tags and overrides
insserv: warning: script 'bot.sh' missing LSB tags and overrides
insserv: warning: script 'bot_check.sh' missing LSB tags and overrides
insserv: There is a loop between service munin-node and firewall if stopped
insserv:  loop involving service firewall at depth 2
insserv:  loop involving service munin-node at depth 1
insserv: Stopping firewall depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: Stopping bot.sh depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: Stopping bot_check.sh depends on munin-node 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: Fehler beim Bearbeiten von vnstat (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
configured to not write apport reports
                                      Fehler traten auf beim Bearbeiten von:
 vnstat
E: Sub-process /usr/bin/dpkg returned an error code (1)


Ich hoffe das hilft weiter
 
Code:
insserv: There is a loop between service munin-node and firewall if stopped

Was steht denn in /etc/init.d/firewall und /etc/init.d/munin-node?
 
firewall:

Code:
#!/bin/sh

      #DOS ATTACK
      iptables -A INPUT -p tcp --syn -m limit --limit 1/s --limit-burst 30 -j DROP
      iptables -I INPUT -p tcp -m state --state NEW --dport 80 -m recent --name slowloris --set
      iptables -I INPUT -p tcp -m state --state NEW --dport 80 -m recent --name slowloris --update --seconds 15 --hitcount 15 -j DROP
      iptables -A INPUT -p tcp --dport 80 -j ACCEPT

munin-node:

Code:
#! /bin/bash

### BEGIN INIT INFO
# Provides:          munin-node
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Should-Start:      $all
# Should-Stop:       $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/stop Munin-Node
# Description:       Start/stop Munin-Node
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/munin-node
PIDFILE=/var/run/munin/munin-node.pid
CONFFILE=/etc/munin/munin-node.conf

# log_daemon_msg() and log_progress_msg() isn't present in present in Sarge.
# Below is a copy of them from lsb-base 3.0-5, for the convenience of back-
# porters.  If the installed version of lsb-base provides these functions,
# they will be used instead.

log_daemon_msg () {
    if [ -z "$1" ]; then
        return 1
    fi

    if [ -z "$2" ]; then
        echo -n "$1:"
        return
    fi
    
    echo -n "$1: $2"
}

log_progress_msg () {
    if [ -z "$1" ]; then
        return 1
    fi
    echo -n " $@"
}

. /lib/lsb/init-functions
[ -r /etc/default/munin-node ] && . /etc/default/munin-node

if [ ! -x $DAEMON ]; then
	log_failure_msg "Munin-Node appears to be uninstalled."
	exit 5
elif [ ! -e $CONFFILE ]; then
	log_failure_msg "Munin-Node appears to be unconfigured."
	exit 6
fi

# Figure out if the pid file is in a non-standard location
while read line; do
	line=${line%%\#*} # get rid of comments
	set -f
	line=$(echo $line) # get rid of extraneous blanks
	set +f
	if [ "$line" != "${line#pid_file }" ]; then
		PIDFILE=${line#pid_file }
	fi
done < $CONFFILE

verify_superuser() {
	action=$1
	[ $EUID -eq 0 ] && return
	log_failure_msg "Superuser privileges required for the" \
			"\"$action\" action."
	exit 4
}

start() {
	log_daemon_msg "Starting Munin-Node"
	mkdir -p /var/run/munin
	chown munin:root /var/run/munin
	chmod 0755 /var/run/munin
	if pidofproc -p $PIDFILE $DAEMON >/dev/null; then
		log_progress_msg "started beforehand"
		log_end_msg 0
		exit 0
	fi
	start_daemon -p $PIDFILE $DAEMON $DAEMON_ARGS
	ret=$?
	# start_daemon() isn't thorough enough, ensure the daemon has been
	# started manually
	attempts=0
	until pidofproc -p $PIDFILE $DAEMON >/dev/null; do
		attempts=$(( $attempts + 1 ))
		sleep 0.05
		[ $attempts -lt 20 ] && continue
		log_end_msg 1
		return 1
	done
	[ $ret -eq 0 ] && log_progress_msg "done"
	log_end_msg $ret
	return $ret
}

stop() {
	log_daemon_msg "Stopping Munin-Node"
	# killproc() doesn't try hard enough if the pid file is missing,
	# so create it is gone and the daemon is still running
	if [ ! -r $PIDFILE ]; then
		pid=$(pidofproc -p $PIDFILE $DAEMON)
		if [ -z "$pid" ]; then
			log_progress_msg "stopped beforehand"
			log_end_msg 0
			return 0
		fi
		echo $pid 2>/dev/null > $PIDFILE
		if [ $? -ne 0 ]; then
			log_end_msg 1
			return 1
		fi
	fi
	killproc -p $PIDFILE /usr/bin/munin-node
	ret=$?
	# killproc() isn't thorough enough, ensure the daemon has been
	# stopped manually
	attempts=0
	until ! pidofproc -p $PIDFILE $DAEMON >/dev/null; do
		attempts=$(( $attempts + 1 ))
		sleep 0.05
		[ $attempts -lt 20 ] && continue
		log_end_msg 1
		return 1
	done
	[ $ret -eq 0 ] && log_progress_msg "done"
	log_end_msg $ret
	return $ret
}

if [ "$#" -ne 1 ]; then
	log_failure_msg "Usage: /etc/init.d/munin-node" \
			"{start|stop|restart|force-reload|try-restart}"
	exit 2
fi

case "$1" in
  start)
  	verify_superuser $1
  	start
	exit $?
	;;
  stop)
  	verify_superuser $1
  	stop
	exit $?
	;;
  restart|force-reload)
  	verify_superuser $1
  	stop || exit $?
	start
	exit $?
	;;
  try-restart)
  	verify_superuser $1
	pidofproc -p $PIDFILE $DAEMON >/dev/null
	if [ $? -eq 0 ]; then
		stop || exit $?
		start
		exit $?
	fi
	log_success_msg "Munin-Node was stopped beforehand and thus not" \
			"restarted."
	exit 0
	;;
  reload)
  	log_failure_msg "The \"reload\" action is not implemented."
	exit 3
	;;
  status)
  	pid=$(pidofproc -p $PIDFILE $DAEMON)
	ret=$?
	pid=${pid% } # pidofproc() supplies a trailing space, strip it
	if [ $ret -eq 0 ]; then
		log_success_msg "Munin-Node is running (PID: $pid)"
		exit 0
	# the LSB specifies that I in this case (daemon dead + pid file exists)
	# should return 1, however lsb-base returned 2 in this case up to and
	# including version 3.1-10 (cf. #381684).  Since that bug is present
	# in Sarge, Ubuntu Dapper, and (at the time of writing) Ubuntu Etch,
	# and taking into account that later versions of pidofproc() do not
	# under any circumstance return 2, I'll keep understanding invalid
	# return code for the time being, even though the LSB specifies it is
	# to be used for the situation where the "program is dead and /var/lock
	# lock file exists".  
	elif [ $ret -eq 1 ] || [ $ret -eq 2 ]; then
		log_failure_msg "Munin-Node is dead, although $PIDFILE exists."
		exit 1
	elif [ $ret -eq 3 ]; then
		log_warning_msg "Munin-Node is not running."
		exit 3
	fi
	log_warning_msg "Munin-Node status unknown."
	exit 4
        ;;
  *)
	log_failure_msg "Usage: /etc/init.d/munin-node" \
			"{start|stop|restart|force-reload|try-restart}"
	exit 2
	;;
esac

log_failure_msg "Unexpected failure, please file a bug."
exit 1
 
Aus
firewall:

Code:
#!/bin/sh

      #DOS ATTACK
      iptables -A INPUT -p tcp --syn -m limit --limit 1/s --limit-burst 30 -j DROP
      iptables -I INPUT -p tcp -m state --state NEW --dport 80 -m recent --name slowloris --set
      iptables -I INPUT -p tcp -m state --state NEW --dport 80 -m recent --name slowloris --update --seconds 15 --hitcount 15 -j DROP
      iptables -A INPUT -p tcp --dport 80 -j ACCEPT

Wird nun:

Code:
#!/bin/sh

### BEGIN INIT INFO
# Provides:          firewall
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Should-Start:      $all
# Should-Stop:       $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/stop iptables DOS-Attack Firewall
# Description:       Start/stop iptables DOS-Attack Firewall
### END INIT INFO

case "$1" in
	start)
		iptables -A INPUT -p tcp --syn -m limit --limit 1/s --limit-burst 30 -j DROP
		iptables -I INPUT -p tcp -m state --state NEW --dport 80 -m recent --name slowloris --set
		iptables -I INPUT -p tcp -m state --state NEW --dport 80 -m recent --name slowloris --update --seconds 15 --hitcount 15 -j DROP
		iptables -A INPUT -p tcp --dport 80 -j ACCEPT
	;;
	stop)
		iptables -D INPUT -p tcp --syn -m limit --limit 1/s --limit-burst 30 -j DROP
		iptables -D INPUT -p tcp -m state --state NEW --dport 80 -m recent --name slowloris --set
		iptables -D INPUT -p tcp -m state --state NEW --dport 80 -m recent --name slowloris --update --seconds 15 --hitcount 15 -j DROP
		iptables -D INPUT -p tcp --dport 80 -j ACCEPT
	;;
	*)
		echo "Usage: $0 {start|stop}"
	;;
esac

exit 0
 
Back
Top