Ubuntu core 16、Raspberry Pi 3、蓝牙与 apparmor

Ubuntu core 16、Raspberry Pi 3、蓝牙与 apparmor

我在运行 Core 16 的 Rasberry Pi 3 上看不到任何蓝牙控制器。

已安装的快照:

Name             Version       Rev  Developer  Notes
bluez            5.37-2        12   canonical  -
core             16.04.1       645  canonical  -
docker           1.11.2-9      59   canonical  -
hello            2.10          24   canonical  -
network-manager  1.2.2-10      72   canonical  -
pi2-kernel       4.4.0-1030-3  22   canonical  -
pi3              16.04-0.5     6    canonical  -
snapweb          0.21.2        25   canonical  -
wifi-ap          9             28   canonical  -
wireless-tools   2             9    canonical  -

蓝牙控制命令输出:

sudo bluez.bluetoothctl -a 
Agent registered 
[bluetooth]# list
[bluetooth]#

什么也没得到。未找到或列出控制器。

在日志中查找任何与蓝牙相关的内容,似乎硬件就在那里,但是 apparmor 可能阻止了该快照。

sudo grep -i tooth /var/log/syslog 


Dec 14 15:47:58 localhost kernel: [149278.605497] audit: type=1400 audit(1481730478.267:95): apparmor="DENIED" operation="capable" profile="snap.bluez.bluetoothctl" pid=5827 comm="bluetoothctl" capability=1  capname="dac_override"
Dec 14 15:47:58 localhost kernel: [149278.605549] audit: type=1400 audit(1481730478.267:96): apparmor="DENIED" operation="capable" profile="snap.bluez.bluetoothctl" pid=5827 comm="bluetoothctl" capability=2  capname="dac_read_search"
Nov  2 14:54:16 localhost kernel: [   21.892285] audit: type=1400 audit(1478098451.155:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.bluez.bluetoothctl" pid=1100 comm="apparmor_parser"
Dec 14 16:11:39 localhost kernel: [   44.142418] Bluetooth: Core ver 2.21
Dec 14 16:11:39 localhost kernel: [   44.142559] Bluetooth: HCI device and connection manager initialized
Dec 14 16:11:39 localhost kernel: [   44.142587] Bluetooth: HCI socket layer initialized
Dec 14 16:11:39 localhost kernel: [   44.142607] Bluetooth: L2CAP socket layer initialized
Dec 14 16:11:39 localhost kernel: [   44.142648] Bluetooth: SCO socket layer initialized
Dec 14 16:11:39 localhost bluetoothd[1319]: Bluetooth daemon 5.37
Dec 14 16:11:39 localhost bluetoothd[1319]: Starting SDP server
Dec 14 16:11:39 localhost kernel: [   44.256492] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Dec 14 16:11:39 localhost kernel: [   44.256516] Bluetooth: BNEP filters: protocol multicast
Dec 14 16:11:39 localhost kernel: [   44.256542] Bluetooth: BNEP socket layer initialized
Dec 14 16:11:39 localhost bluetoothd[1319]: Bluetooth management interface 1.10 initialized

这是我有点迷失的地方,并且想知道解决这个问题的下一步是什么;我该如何进行?

相关内容