libcap-ng: bluetooth bluez-utils: failure to install in Raspbian

Bug #1008593 reported by mpthompson
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Raspbian
Fix Released
High
mpthompson

Bug Description

Reported by bop_binz in Raspbian forums:

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=6628

Tried the following command:

sudo apt-get install bluetooth bluez-utils

and received the following output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  bluez dbus gir1.2-glib-2.0 libcap-ng0 libgirepository-1.0-1
  libsystemd-login0 python-dbus python-dbus-dev python-gi
Suggested packages:
  dbus-x11 python-dbus-doc python-dbus-dbg python-gi-cairo
Recommended packages:
  bluez-alsa bluez-cups bluez-gstreamer
The following NEW packages will be installed:
  bluetooth bluez bluez-utils dbus gir1.2-glib-2.0 libcap-ng0
  libgirepository-1.0-1 libsystemd-login0 python-dbus python-dbus-dev
  python-gi
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,450 kB of archives.
After this operation, 5,946 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.raspbian.org/raspbian/ wheezy/main libcap-ng0 armhf 0.6.6-1 [12.0 kB]
Get:2 http://archive.raspbian.org/raspbian/ wheezy/main libsystemd-login0 armhf 37-1.1 [23.6 kB]
Get:3 http://archive.raspbian.org/raspbian/ wheezy/main dbus armhf 1.5.12-1 [348 kB]
Get:4 http://archive.raspbian.org/raspbian/ wheezy/main libgirepository-1.0-1 armhf 1.32.1-1 [96.0 kB]
Get:5 http://archive.raspbian.org/raspbian/ wheezy/main gir1.2-glib-2.0 armhf 1.32.1-1 [170 kB]
Get:6 http://archive.raspbian.org/raspbian/ wheezy/main python-gi armhf 3.2.0-3 [479 kB]
Get:7 http://archive.raspbian.org/raspbian/ wheezy/main python-dbus-dev all 1.1.0-1 [108 kB]
Get:8 http://archive.raspbian.org/raspbian/ wheezy/main python-dbus armhf 1.1.0-1 [244 kB]
Get:9 http://archive.raspbian.org/raspbian/ wheezy/main bluez armhf 4.99-2 [895 kB]
Get:10 http://archive.raspbian.org/raspbian/ wheezy/main bluetooth all 4.99-2 [37.5 kB]
Get:11 http://archive.raspbian.org/raspbian/ wheezy/main bluez-utils all 4.99-2 [37.4 kB]
Fetched 2,450 kB in 8s (286 kB/s)
Selecting previously unselected package libcap-ng0.
(Reading database ... 39713 files and directories currently installed.)
Unpacking libcap-ng0 (from .../libcap-ng0_0.6.6-1_armhf.deb) ...
Selecting previously unselected package libsystemd-login0.
Unpacking libsystemd-login0 (from .../libsystemd-login0_37-1.1_armhf.deb) ...
Selecting previously unselected package dbus.
Unpacking dbus (from .../dbus_1.5.12-1_armhf.deb) ...
Selecting previously unselected package libgirepository-1.0-1.
Unpacking libgirepository-1.0-1 (from .../libgirepository-1.0-1_1.32.1-1_armhf.deb) ...
Selecting previously unselected package gir1.2-glib-2.0.
Unpacking gir1.2-glib-2.0 (from .../gir1.2-glib-2.0_1.32.1-1_armhf.deb) ...
Selecting previously unselected package python-gi.
Unpacking python-gi (from .../python-gi_3.2.0-3_armhf.deb) ...
Selecting previously unselected package python-dbus-dev.
Unpacking python-dbus-dev (from .../python-dbus-dev_1.1.0-1_all.deb) ...
Selecting previously unselected package python-dbus.
Unpacking python-dbus (from .../python-dbus_1.1.0-1_armhf.deb) ...
Selecting previously unselected package bluez.
Unpacking bluez (from .../bluez_4.99-2_armhf.deb) ...
Selecting previously unselected package bluetooth.
Unpacking bluetooth (from .../bluetooth_4.99-2_all.deb) ...
Selecting previously unselected package bluez-utils.
Unpacking bluez-utils (from .../bluez-utils_4.99-2_all.deb) ...
Processing triggers for man-db ...
Setting up libcap-ng0 (0.6.6-1) ...
Setting up libsystemd-login0 (37-1.1) ...
Setting up dbus (1.5.12-1) ...
[ ok ] Starting system message bus: dbus.
Setting up libgirepository-1.0-1 (1.32.1-1) ...
Setting up gir1.2-glib-2.0 (1.32.1-1) ...
Setting up python-gi (3.2.0-3) ...
Setting up python-dbus-dev (1.1.0-1) ...
Setting up python-dbus (1.1.0-1) ...
Remove stale byte-compiled files...
Setting up bluez (4.99-2) ...
[ ok ] Reloading system message bus config...done.
[....] Starting bluetooth:Segmentation fault
invoke-rc.d: initscript bluetooth, action "start" failed.
dpkg: error processing bluez (--configure):
 subprocess installed post-installation script returned error exit status 139
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-utils:
 bluez-utils depends on bluetooth; however:
  Package bluetooth is not configured yet.
dpkg: error processing bluez-utils (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 bluez
 bluetooth
 bluez-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
mpthompson (mpthompson) wrote :

Reported by louisb in the forums:

I also get a segfault on bluez. here is the back trace:

Program received signal SIGSEGV, Segmentation fault.
0x4015b014 in ?? () from /usr/lib/libcap-ng.so.0
(gdb) bt
#0 0x4015b014 in ?? () from /usr/lib/libcap-ng.so.0
#1 0x400121c0 in __tls_get_addr () from /lib/arm-linux-gnueabihf/ld-linux.so.3
#2 0x4015b220 in capng_clear () from /usr/lib/libcap-ng.so.0
#3 0x4015b220 in capng_clear () from /usr/lib/libcap-ng.so.0
#4 0x2a00c618 in main (argc=1073782848, argv=0xb) at src/main.c:451

running readelf -A /usr/lib/libcap-ng.so.0 using readelf -A I get:

raspbian@pisces:/etc/init.d$ readelf -A /usr/lib/libcap-ng.so.0.0.0
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "6"
  Tag_CPU_arch: v6
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  Tag_FP_arch: VFPv2
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_ABI_HardFP_use: SP and DP
  Tag_ABI_VFP_args: VFP registers
  Tag_ABI_optimization_goals: Aggressive Speed
  Tag_DIV_use: Not allowed

should it really have Tag_ABI_optimization_goals: Aggressive Speed?

Changed in raspbian:
assignee: nobody → mpthompson (mpthompson)
Revision history for this message
mpthompson (mpthompson) wrote :

Note, /usr/lib/libcap-ng.so.0 is not in Bluez, but is part of libcap-ng0.

This library implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels. These capabilities are a partitioning of the all powerful root privilege into a set of distinct privileges.

The libcap-ng library is intended to make programming with POSIX capabilities much easier than the traditional libcap library.

Revision history for this message
mpthompson (mpthompson) wrote :

As reported by mauimauer in the forums:

Check: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631807
The attached patch worked on my RPi with Raspbian.

Revision history for this message
mpthompson (mpthompson) wrote :

Fixed by applying the patches described above.

New version: libcap-ng0_0.6.6-1+rpi1

summary: - bluetooth bluez-utils: failure to install in Raspbian
+ libcap-ng: bluetooth bluez-utils: failure to install in Raspbian
Changed in raspbian:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.