[Pkg-bluetooth-maintainers] Bug#579773: bluez: package does not install b/c of "no such device"

arne anka debian at ginguppin.de
Fri Apr 30 17:16:21 UTC 2010


Package: bluez
Version: 4.63-1
Severity: normal

today's update updates bluez, but that fails with
Setting up bluez (4.63-1) ...                                                                     
Creating device nodes ...                                                                         
Reloading system message bus config...done.                                                       
insserv: warning: current start runlevel(s) (3 4 5) of script
`bluetooth' overwrites defaults (2 3 4 5).                                                                                            
insserv: warning: current stop runlevel(s) (0 1 2 6) of script
`bluetooth' overwrites defaults (0 1 6).                                                                                             
insserv: warning: current stop runlevel(s) (0 1 6) of script
`nvidia-glx' overwrites defaults (empty).                                                                                              
insserv: warning: current stop runlevel(s) (0 1 2 6) of script
`nvidia-kernel' overwrites defaults (empty).                                                                                         
insserv: warning: current stop runlevel(s) (S) of script `guarddog'
overwrites defaults (empty).  
insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ssh'
overwrites defaults (empty). 
Starting bluetooth:rfkill unlock bluetooth: bluetoothdCan't get device
info: No such device       
invoke-rc.d: initscript bluetooth, action "start" failed.                                         
dpkg: error processing bluez (--configure):                                                       
 subprocess installed post-installation script returned error exit
status 1                       
dpkg: dependency problems prevent configuration of bluetooth:                                     
 bluetooth depends on bluez; however:                                                             
  Package bluez is not configured yet.                                                            
dpkg: error processing bluetooth (--configure):                                                   
 dependency problems - leaving unconfigured                                                       
dpkg: dependency problems prevent configuration of bluez-alsa:                                    
 bluez-alsa depends on bluez; however:                                                            
  Package bluez is not configured yet.                                                            
dpkg: error processing bluez-alsa (--configure):                                                  
 dependency problems - leaving unconfigured                                                       
dpkg: dependency problems prevent configuration of bluez-gstreamer:                               
 bluez-gstreamer depends on bluez; however:                                                       
  Package bluez is not configured yet.                                                            
dpkg: error processing bluez-gstreamer (--configure):                                             
 dependency problems - leaving unconfigured                                                       
dpkg: dependency problems prevent configuration of bluez-audio:                                   
 bluez-audio depends on bluez-alsa (>= 4); however:                                               
  Package bluez-alsa is not configured yet.                                                       
 bluez-audio depends on bluez-gstreamer (>= 4); however:                                          
  Package bluez-gstreamer is not configured yet.                                                  
dpkg: error processing bluez-audio (--configure):                                                 
 dependency problems - leaving unconfigured                               


my laptop does not have included bluetooth but a dongle, which is not
connected all the time -- i guess, that's what makes the script stumble.

the install script should fail graciously, not taking the bt dongle's
existence (and thus the initscript's successful invocation) for granted.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32.3 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bluez depends on:
ii  dbus                         1.2.24-1    simple interprocess messaging syst
ii  libbluetooth3                4.63-1      Library to use the BlueZ Linux Blu
ii  libc6                        2.10.2-7    Embedded GNU C Library: Shared lib
ii  libdbus-1-3                  1.2.24-1    simple interprocess messaging syst
ii  libglib2.0-0                 2.24.0-1    The GLib library of C routines
ii  libnl1                       1.1-5       library for dealing with netlink s
ii  libusb-0.1-4                 2:0.1.12-14 userspace USB programming library
ii  lsb-base                     3.2-23.1    Linux Standard Base 3.2 init scrip
ii  makedev                      2.3.1-89    creates device files in /dev
ii  module-init-tools            3.12~pre2-3 tools for managing Linux kernel mo
ii  udev                         153-1       /dev/ and hotplug management daemo

bluez recommends no packages.

Versions of packages bluez suggests:
ii  python-dbus                   0.83.1-1   simple interprocess messaging syst
ii  python-gobject                2.21.1-1   Python bindings for the GObject li

-- Configuration Files:
/etc/bluetooth/audio.conf changed:
[General]
Enable=Source,Control,Sink
Disable=Gateway
AutoConnect=true
[Headset]
MaxConnections=4
[A2DP]
SourceCount=2
SBCSources=2
MPEG12Sources=2
[AVRCP]
InputDeviceName=AVRCP

/etc/default/bluetooth changed:
HID2HCI_ENABLED=0
HID2HCI_UNDO=0

/etc/init.d/bluetooth changed:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC=bluetooth
DAEMON=/usr/sbin/bluetoothd
HCIATTACH=/usr/sbin/hciattach
HID2HCI=/usr/sbin/hid2hci
HID2HCI_ENABLED=1
HID2HCI_UNDO=1
UART_CONF=/etc/bluetooth/uart
RFCOMM=/usr/bin/rfcomm
RFCOMM_NAME=rfcomm
RFCOMM_CONF=/etc/bluetooth/rfcomm.conf
SDPTOOL=/usr/bin/sdptool
SSD_OPTIONS="--oknodo --quiet --exec $DAEMON"
test -f /etc/default/bluetooth && . /etc/default/bluetooth
test -f /etc/default/rcS && . /etc/default/rcS
.. /lib/lsb/init-functions
set -e
run_sdptool()
{
	test -x $SDPTOOL || return 1
	if ! test -z "$SDPTOOL_OPTIONS" ; then
		oldifs="$IFS"
		IFS=";"
		for o in $SDPTOOL_OPTIONS ; do
			#echo "execing $SDPTOOL $o"
			IFS=" "
			if [ "$VERBOSE" != "no" ]; then
				$SDPTOOL $o
			else
				$SDPTOOL $o >/dev/null 2>&1
			fi
		done
		IFS="$oldifs"
	fi
}
enable_hci_input()
{
    log_progress_msg "switching to HID/HCI no longer done in init script, see /usr/share/doc/bluez/NEWS.Debian.gz"
}
disable_hci_input()
{
    log_progress_msg "switching to HID/HCI no longer done in init script, see /usr/share/doc/bluez/NEWS.Debian.gz"
}
start_uarts()
{
	[ -f $HCIATTACH ] && [ -f $UART_CONF ] || return
	grep -v '^#' $UART_CONF | while read i; do
               if [ "$VERBOSE" != no ]; then
                       $HCIATTACH $i
               else
                       $HCIATTACH $i >/dev/null 2>&1
               fi
	done
}
stop_uarts()
{
	killall hciattach > /dev/null 2>&1 || true
}
start_rfcomm()
{
	if [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] ; then
		# rfcomm must always succeed for now: users
		# may not yet have an rfcomm-enabled kernel
                if [ "$VERBOSE" != no ]; then
                       log_progress_msg "rfcomm"
                       $RFCOMM -f $RFCOMM_CONF bind all || true
                else
                       $RFCOMM -f $RFCOMM_CONF bind all >/dev/null 2>&1 || true
                fi
	fi
}
stop_rfcomm()
{
	if [ -x $RFCOMM ] ; then
               if [ "$VERBOSE" != no ]; then
                       log_progress_msg "rfcomm"
                       $RFCOMM unbind all || true
               else
                       $RFCOMM unbind all >/dev/null 2>&1 || true
               fi
	fi
}
restart_rfcomm()
{
	if [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] ; then
               if [ "$VERBOSE" != no ]; then
                       log_progress_msg  "rfcomm"
                       $RFCOMM unbind all || true
                       $RFCOMM -f $RFCOMM_CONF bind all || true
               else
                       $RFCOMM unbind all >/dev/null 2>&1|| true
                       $RFCOMM -f $RFCOMM_CONF bind all >/dev/null 2>&1 || true
               fi
	fi
}
case "$1" in
  start)
	log_daemon_msg "Starting $DESC"
	if test "$BLUETOOTH_ENABLED" = "0"; then
		log_progress_msg "disabled. see /etc/default/bluetooth"
		log_end_msg 0
		exit 0
	fi
	log_daemon_msg "rfkill unlock bluetooth"
	/usr/local/bin/rfkill unblock bluetooth
	start-stop-daemon --start $SSD_OPTIONS
	log_progress_msg "bluetoothd"
	run_sdptool || true
	start_uarts || true
	if test "$HID2HCI_ENABLED" = "1"; then
		enable_hci_input || true
	fi
	start_rfcomm || true
	if test "$HIDD_ENABLED" = "1" ||
			test "$PAND_ENABLED" = "1" ||
			test "$DUND_ENABLED" = "1"; then
		log_progress_msg "compatibily daemons not started, see bluez-compat package"
	fi
	sleep 1 ; /usr/sbin/hciconfig hci0 lm master; /usr/sbin/hciconfig hci0 lp hold,sniff,park
	
	log_end_msg 0
  ;;
  stop)
	log_daemon_msg "Stopping $DESC"
	if test "$BLUETOOTH_ENABLED" = "0"; then
		log_progress_msg "disabled."
		log_end_msg 0
		exit 0
	fi
	stop_rfcomm || true
	if test "$HID2HCI_UNDO" = "1"; then
		disable_hci_input || true
	fi
	start-stop-daemon --stop $SSD_OPTIONS
	log_progress_msg "bluetoothd"
	stop_uarts || true
	log_end_msg 0
  ;;
  restart|force-reload)
	$0 stop
	sleep 1
	$0 start
  ;;
  status)
	status_of_proc "$DAEMON" "$DESC" && exit 0 || exit $?
  ;;
  *)
	N=/etc/init.d/bluetooth
	# echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
	echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
	exit 1
	;;
esac
exit 0


-- debconf-show failed





More information about the Pkg-bluetooth-maintainers mailing list