蓝牙无法在 Kali Linux 上运行

蓝牙无法在 Kali Linux 上运行

我遇到了蓝牙总是关闭的问题。我进入配置->蓝牙,每次我试图关闭它,过了一会儿又恢复为关闭状态。我尝试使用这个命令:

aptitude install bluetooth

然后跑了

/etc/init.d/bluetooth start

之后我运行了它/etc/init.d/bluetooth status,结果显示如下:

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-01-17 21:13:47 UTC; 29s ago
     Docs: man:bluetoothd(8)
 Main PID: 7939 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─7939 /usr/lib/bluetooth/bluetoothd

Jan 17 21:13:47 kali bluetoothd[7939]: Error adding Link Loss service
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Current Time Service could not be re...ed
Jan 17 21:13:47 kali bluetoothd[7939]: gatt-time-server: Input/output error (5)
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Sap driver initialization failed.
Jan 17 21:13:47 kali bluetoothd[7939]: sap-server: Operation not permitted (1)
Hint: Some lines were ellipsized, use -l to show in full.

我的电脑是索尼 VAIO SVF15A17CLV。

谢谢你!!

编辑:运行服务重启命令后,有些人建议我得到以下输出:

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2018-05-03 23:44:12 UTC; 5min ago
     Docs: man:bluetoothd(8)
 Main PID: 3882 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─3882 /usr/lib/bluetooth/bluetoothd

May 03 23:44:12 kali systemd[1]: Starting Bluetooth service...
May 03 23:44:12 kali bluetoothd[3882]: Bluetooth daemon 5.36
May 03 23:44:12 kali systemd[1]: Started Bluetooth service.
May 03 23:44:12 kali bluetoothd[3882]: Starting SDP server
May 03 23:44:12 kali bluetoothd[3882]: Bluetooth management interface 1.12 ...ed
Hint: Some lines were ellipsized, use -l to show in full.

看起来好多了,但还是不起作用。当我进入蓝牙设置时,它总是关闭的。按下开始后,它保持如下图所示:

蓝牙设置已关闭

附言:我知道这不是硬件问题,因为如果我使用 Windows 10 启动它就可以正常工作。

答案1

我相信我们遇到了同样的问题。我的蓝牙无法打开,并且一直处于关闭状态。以下是我修复此问题的方法:

service bluetooth restart

这重新启动了蓝牙服务,我能够将其打开并保持开启状态。我还能够看到蓝牙设备并再次连接到我的耳机。

答案2

几分钟前我遇到了同样的问题,直到我以 root 用户身份从终端重新启动蓝牙服务。我通过在终端上输入以下内容来修复它:

sudo service bluetooth restart

在 systemd 系统上:

sudo systemctl restart bluetooth

然后返回设置并在蓝牙菜单下,您将看到可用的设备。

答案3

我做了以下操作来解决这个问题。

我从重启服务开始:

 $ sudo service bluetooth restart

然后系统控制重启:

 $ sudo systemctl restart bluetooth

进入bin目录:

 $ cd //bin

然后以 bin 中的 exec 形式运行服务文件

 $ sudo ./bluetoothctl

使用 bluetoothctl,使用 blutoothctl 中的终端命令进行扫描(通过打开它)

 $ scan on

然后连接设备(使用设备的数字ID,不需要名称,复制粘贴很快):

 $ connect 00:00:00:00:00

*注意,请仔细检查 rfkill 并确保它未被阻止。如果被阻止,以下操作(假设蓝牙 ID 列为设备 0)将解除阻止:

 $ sudo rfkill unblock 0

答案4

对我来说,启动该服务已成功。

/etc/init.d/bluetooth start

我能够找到蓝牙设备并连接。
然后我尝试使用

bluetooth manager / bluetooth adapter - no go
service was not running for me. 

相关内容