[Pkg-utopia-maintainers] Bug#423380: dbus: Does not upgrade cleanly
with file-rc
Marc Haber
mh+debian-bugs at zugschlus.de
Fri May 11 10:46:36 UTC 2007
Package: dbus
Version: 1.0.2-5
Severity: normal
Hi,
on my sid system, dbus does not upgrade:
A package failed to install. Trying to recover:
Setting up dbus (1.0.2-5) ...
Removing stale PID file /var/run/dbus/pid.
Starting system message bus: dbusUnknown group "netdev" in message bus configuration file
.
Starting Hardware abstraction layer: hald/usr/sbin/hald already running.
run-parts: /etc/dbus-1/event.d/20hal exited with return code 1
invoke-rc.d: initscript dbus, action "start" failed.
netdev is mentioned in /etc/dbus-1/system.d/wpa_supplicant.conf which
belongs to wpasupplicant, so this may be a wpasupplicant issue. Please
reassign appropriately.
After commenting out the lines mentioning the netdev group, dbis
installation fails differently:
Setting up dbus (1.0.2-5) ...
Removing stale PID file /var/run/dbus/pid.
Starting system message bus: dbus.
Starting Hardware abstraction layer: hald/usr/sbin/hald already running.
run-parts: /etc/dbus-1/event.d/20hal exited with return code 1
invoke-rc.d: initscript dbus, action "start" failed.
dpkg: error processing dbus (--configure):
subprocess post-installation script returned error exit status 1
Manually killing hald doesn't help as well:
Setting up dbus (1.0.2-5) ...
Removing stale PID file /var/run/dbus/pid.
Starting system message bus: dbus.
Starting Hardware abstraction layer: hald.
invoke-rc.d: initscript dbus, action "start" failed.
dpkg: error processing dbus (--configure):
subprocess post-installation script returned error exit status 1
bash -x on /etc/init.d/dbus start ends in:
+ '[' -d /etc/rc2.d/ ']'
+ '[' -f /etc/runlevel.conf ']'
++ grep -l '^# Required-Start:.*dbus' /etc/init.d/acpid /etc/init.d/acpi-support /etc/init.d/alsa /etc/init.d/alsa-utils /etc/init.d/anacron /etc/init.d/apache2 /etc/init.d/apt-cacher /etc/init.d/atd /etc/init.d/atftpd /etc/init.d/bind9 /etc/init.d/binfmt-support /etc/init.d/bittorrent /etc/init.d/bluetooth /etc/init.d/bootclean /etc/init.d/bootclean.sh.dpkg-old /etc/init.d/bootlogd /etc/init.d/bootmisc.sh /etc/init.d/checkfs.sh /etc/init.d/checkroot.sh /etc/init.d/clamav-freshclam /etc/init.d/console-log /etc/init.d/console-screen.kbd.sh /etc/init.d/cpufrequtils /etc/init.d/cron /etc/init.d/cryptdisks /etc/init.d/cryptdisks-early /etc/init.d/cupsys /etc/init.d/dbus /etc/init.d/dhcp3-server /etc/init.d/discover /etc/init.d/dns-clean /etc/init.d/dovecot /etc/init.d/exim4 /etc/init.d/fail2ban /etc/init.d/festival /etc/init.d/fprobe /etc/init.d/glibc.sh /etc/init.d/halt /etc/init.d/hddtemp /etc/init.d/hdparm /etc/init.d/hostname.sh /etc/init.d/hwclockfirst.sh /etc/init.d/hwclock.sh /etc/init.d/ifplugd /etc/init.d/ifupdown /etc/init.d/ifupdown-clean /etc/init.d/ifupdown-scripts-zg2 /etc/init.d/inetd.real /etc/init.d/inetd.real.dpkg-new /etc/init.d/initrd-tools.sh /etc/init.d/inn2 /etc/init.d/ippl /etc/init.d/kdm /etc/init.d/keymap.sh /etc/init.d/killprocs /etc/init.d/klogd /etc/init.d/knockd /etc/init.d/laptop-mode /etc/init.d/libdevmapper1.00 /etc/init.d/libdevmapper1.01 /etc/init.d/libdevmapper1.02 /etc/init.d/libdevmapper1.02.1 /etc/init.d/lisa /etc/init.d/lm-sensors /etc/init.d/lvm /etc/init.d/lvm2 /etc/init.d/makedev /etc/init.d/mdadm /etc/init.d/mdadm-raid /etc/init.d/module-init-tools /etc/init.d/modutils /etc/init.d/mountall-bootclean.sh /etc/init.d/mountall.sh /etc/init.d/mountdevsubfs.sh /etc/init.d/mountkernfs.sh /etc/init.d/mountnfs-bootclean.sh /etc/init.d/mountnfs.sh /etc/init.d/mtab.sh /etc/init.d/munin-node /etc/init.d/mysql /etc/init.d/mysql.dpkg-old /etc/init.d/mysql-ndb /etc/init.d/mysql-ndb-mgm /etc/init.d/nagios2 /etc/init.d/nessusd /etc/init.d/netperf /etc/init.d/networking /etc/init.d/nfdump /etc/init.d/nsca /etc/init.d/nstxcd /etc/init.d/nstxd /etc/init.d/ntp /etc/init.d/nviboot /etc/init.d/oidentd /etc/init.d/openbsd-inetd /etc/init.d/openvpn /etc/init.d/partimaged /etc/init.d/pcmciautils /etc/init.d/powernowd /etc/init.d/pppd-dns /etc/init.d/procps.sh /etc/init.d/radeontool /etc/init.d/rc /etc/init.d/rc.local /etc/init.d/rcS /etc/init.d/README /etc/init.d/reboot /etc/init.d/resolvconf /etc/init.d/rmnologin /etc/init.d/rng-tools /etc/init.d/rsync /etc/init.d/samba /etc/init.d/screen-cleanup /etc/init.d/sendsigs /etc/init.d/ser2net /etc/init.d/shorewall /etc/init.d/single /etc/init.d/skeleton /etc/init.d/sl-modem-daemon /etc/init.d/smartmontools /etc/init.d/smokeping /etc/init.d/snmpd /etc/init.d/spamassassin /etc/init.d/ssh /etc/init.d/stop-bootlogd /etc/init.d/stop-bootlogd-single /etc/init.d/stunnel4 /etc/init.d/sudo /etc/init.d/sysfsutils /etc/init.d/sysklogd /etc/init.d/timidity /etc/init.d/tor /etc/init.d/torrus-common /etc/init.d/udev /etc/init.d/udev.dpkg-old /etc/init.d/udev-mtab /etc/init.d/umountfs /etc/init.d/umountnfs.sh /etc/init.d/umountroot /etc/init.d/urandom /etc/init.d/vbesave /etc/init.d/vmware-player /etc/init.d/wpa-ifupdown /etc/init.d/x11-common /etc/init.d/xfree86-common /etc/init.d/xinetd /etc/init.d/xserver-xorg
+ list=
I suspect that the following code in /etc/init.d/dbus is the culprit:
list=$(grep -l "^# Required-Start:.*dbus" /etc/init.d/*)
If grep does not find anything, it exits with 1, which causes the init
script to bomb out. At least changing the code to
list=$(grep -l "^# Required-Start:.*dbus" /etc/init.d/* || true)
seemed to solve the issue.
Debugging was quite hard since I was misled by two error messages that
were spewed but did not have anything to do with the real issue.
Let me add that I am not very comfortable with the way how your init
script messes with sysvinit's and file-rc's internals. I am not
whether these are stable interfaces meant to dock magic scripts to.
Greetings
Marc
-- System Information:
Debian Release: lenny/sid
APT prefers oldstable
APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.21.1-scyw00225 (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages dbus depends on:
ii adduser 3.102 Add and remove users and groups
ii dbus-x11 1.0.2-5 simple interprocess messaging syst
ii debianutils 2.18 Miscellaneous utilities specific t
ii libc6 2.5-7 GNU C Library: Shared libraries
ii libdbus-1-3 1.0.2-5 simple interprocess messaging syst
ii libexpat1 1.95.8-3.4 XML parsing C library - runtime li
ii libselinux1 2.0.15-2 SELinux shared libraries
ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip
dbus recommends no packages.
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list