从17.04升级到17.10后失去了蓝牙function

一天前或之前我从17.04更新到17.10,我能够通过蓝牙连接我的电脑和耳机。 现在我做不到。 我想也许我需要从软件管理器安装蓝牙管理器和蓝牙适配器,但这没有帮助。 有人可以建议我可以通过终端使用的一些代码重新安装蓝牙驱动程序或任何不工作的所以我可以回到我的计算机上使用蓝牙function吗? 在设置上,蓝牙,它说插入加密狗现在使用蓝牙。 之前没有说过这个。

  brian @ brian-Gazelle-Professional:〜$ sudo service bluetooth status
 brian的[sudo]密码: 
 ●bluetooth.service  - 蓝牙服务
   加载:已加载(/lib/systemd/system/bluetooth.service;已启用;供应商预设
   活动:不活动(死机)
     文件:man:bluetoothd(8)

 brian @ brian-Gazelle-Professional:〜$ dmesg |  grep -i blue
 [1837.682565] audit:type = 1400 audit(1509035362.629:112):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.bluetoothctl”pid = 5534 comm =“apparmor_parser”
 [1837.739136] audit:type = 1400 audit(1509035362.686:113):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.bluez”pid = 5536 comm =“apparmor_parser”
 [1837.796899] audit:type = 1400 audit(1509035362.743:114):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.btmgmt”pid = 5538 comm =“apparmor_parser”
 [1837.855706] audit:type = 1400 audit(1509035362.802:115):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.btmon”pid = 5540 comm =“apparmor_parser”
 [1837.906840] audit:type = 1400 audit(1509035362.853:116):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.hciattach”pid = 5542 comm =“apparmor_parser”
 [1837.960018] audit:type = 1400 audit(1509035362.906:117):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.hciconfig”pid = 5544 comm =“apparmor_parser”
 [1838.017010] audit:type = 1400 audit(1509035362.963:118):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.hcidump”pid = 5546 comm =“apparmor_parser”
 [1838.071942] audit:type = 1400 audit(1509035363.018:119):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.hcitool”pid = 5548 comm =“apparmor_parser”
 [1838.121894] audit:type = 1400 audit(1509035363.068:120):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.obex”pid = 5550 comm =“apparmor_parser”
 [1838.170836] audit:type = 1400 audit(1509035363.117:121):apparmor =“STATUS”operation =“profile_load”profile =“unconfined”name =“snap.bluez.obexctl”pid = 5552 comm =“apparmor_parser” 

我昨天将Kubuntu从17.04升级到了17.10。

对我来说大致相同的问题,即使我的蓝牙服务正在运行,我也无法再连接我的蓝牙音箱(RYGHT TANK)。

这是我的sudo service bluetooth statusdmesg | grep -i blue dmesg | grep -i blue结果:

 soul@soul-ZBOX-ID88-ID89-ID90:~$ sudo service bluetooth status ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2017-10-27 23:50:19 CEST; 5min ago Docs: man:bluetoothd(8) Main PID: 11613 (bluetoothd) Status: "Running" Tasks: 1 (limit: 4915) CGroup: /system.slice/bluetooth.service └─11613 /usr/lib/bluetooth/bluetoothd oct. 27 23:50:18 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Starting Bluetooth service... oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 bluetoothd[11613]: Bluetooth daemon 5.46 oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Started Bluetooth service. oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 bluetoothd[11613]: Starting SDP server oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 bluetoothd[11613]: Bluetooth management interface 1.14 initialized soul@soul-ZBOX-ID88-ID89-ID90:~$ dmesg | grep -i blue [ 21.008903] Bluetooth: Core ver 2.22 [ 21.008918] Bluetooth: HCI device and connection manager initialized [ 21.008920] Bluetooth: HCI socket layer initialized [ 21.008922] Bluetooth: L2CAP socket layer initialized [ 21.008927] Bluetooth: SCO socket layer initialized [ 31.455093] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 31.455095] Bluetooth: BNEP filters: protocol multicast [ 31.455098] Bluetooth: BNEP socket layer initialized [ 116.012720] Bluetooth: RFCOMM TTY layer initialized [ 116.012730] Bluetooth: RFCOMM socket layer initialized [ 116.012738] Bluetooth: RFCOMM ver 1.11 

尝试连接后消息的打印屏幕: 连接失败

任何的想法?

编辑(11/05):

 ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2017-11-05 09:42:42 CET; 7h ago Docs: man:bluetoothd(8) Main PID: 958 (bluetoothd) Status: "Running" Tasks: 1 (limit: 4915) CGroup: /system.slice/bluetooth.service └─958 /usr/lib/bluetooth/bluetoothd nov. 05 09:42:40 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Starting Bluetooth service... nov. 05 09:42:40 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: Bluetooth daemon 5.46 nov. 05 09:42:42 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: Starting SDP server nov. 05 09:42:42 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: Bluetooth management interface 1.14 initialized nov. 05 09:42:42 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Started Bluetooth service. nov. 05 16:32:46 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: a2dp-sink profile connect failed for FC:58:FA:55:F4:68: Protocol not available nov. 05 16:32:54 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: a2dp-sink profile connect failed for FC:58:FA:55:F4:68: Protocol not available nov. 05 16:33:02 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: a2dp-sink profile connect failed for FC:58:FA:55:F4:68: Protocol not available 

编辑(11/05)(安装了pulseaudio-module-bluetooth之后):

 soul@soul-ZBOX-ID88-ID89-ID90:~$ service bluetooth status ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2017-11-05 17:05:04 CET; 3min 32s ago Docs: man:bluetoothd(8) Main PID: 875 (bluetoothd) Status: "Running" Tasks: 1 (limit: 4915) CGroup: /system.slice/bluetooth.service └─875 /usr/lib/bluetooth/bluetoothd nov. 05 17:04:57 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Starting Bluetooth service... nov. 05 17:04:58 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Bluetooth daemon 5.46 nov. 05 17:05:04 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Started Bluetooth service. nov. 05 17:05:04 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Starting SDP server nov. 05 17:05:05 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Bluetooth management interface 1.14 initialized nov. 05 17:06:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSource nov. 05 17:06:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSink nov. 05 17:07:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107) nov. 05 17:07:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: connect error: Connection refused (111) nov. 05 17:07:26 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: connect error: Connection refused (111) 

编辑(11/05得到它!):我最终得到了一个解决方案:

 sudo apt install kmix reboot 

然后

 sudo apt install pulseaudio-module-bluetooth reboot pactl load-module module-bluetooth-discover 

(最后一个命令可能失败)

然后删除所有已保存的蓝牙设备并再次配对。

不要忘记将蓝牙设备设置在音频配置列表的顶部: Kmix配置