我用 Windows11 做双引导 Kali-Linux。所以问题是我想连接我的蓝牙扬声器(JBL GO),但不幸的是我无法连接。我使用 GUI 和 CLI 连接到我的扬声器。它以前工作得很好。我可以在 Windows 中连接,但不能在我的 Kali 中连接。
这是使用 GUI 的消息:
这是使用 CLI 的消息:
$ bluetoothctl
Agent registered
[bluetooth]# agent KeyboardOnly
Agent is already registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:15 Discovering: yes
[CHG] Device 30:C0:1B:95:1D:C3 RSSI: -51
[CHG] Device 30:C0:1B:95:1D:C3 TxPower: 0
[bluetooth]# remove 30:C0:1B:95:1D:C3
[DEL] Device 30:C0:1B:95:1D:C3 JBL GO
Device has been removed
[NEW] Device 30:C0:1B:95:1D:C3 JBL GO
[CHG] Device 30:C0:1B:95:1D:C3 TxPower: 0
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 0000110d-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[bluetooth]# trust 30:C0:1B:95:1D:C3
[CHG] Device 30:C0:1B:95:1D:C3 Trusted: yes
Changing 30:C0:1B:95:1D:C3 trust succeeded
[bluetooth]# pair 30:C0:1B:95:1D:C3
Attempting to pair with 30:C0:1B:95:1D:C3
[CHG] Device 30:C0:1B:95:1D:C3 Connected: yes
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 30:C0:1B:95:1D:C3 ServicesResolved: yes
[CHG] Device 30:C0:1B:95:1D:C3 Paired: yes
Pairing successful
[CHG] Device 30:C0:1B:95:1D:C3 ServicesResolved: no
[CHG] Device 30:C0:1B:95:1D:C3 Connected: no
[bluetooth]# connect 30:C0:1B:95:1D:C3
Attempting to connect to 30:C0:1B:95:1D:C3
Failed to connect: org.bluez.Error.Failed
[bluetooth]# exit
我检查了蓝牙服务:
$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2021-11-06 08:32:21 WIB; 47min ago
Docs: man:bluetoothd(8)
Main PID: 3844 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 38347)
Memory: 2.0M
CPU: 439ms
CGroup: /system.slice/bluetooth.service
└─3844 /usr/libexec/bluetooth/bluetoothd
Nov 06 09:12:21 [hostname] bluetoothd[3844]: Endpoint registered: sender=:1.87 path=/MediaEndpoint/A2DPSink/sbc
Nov 06 09:12:21 [hostname] bluetoothd[3844]: Endpoint registered: sender=:1.87 path=/MediaEndpoint/A2DPSource/sbc
Nov 06 09:12:21 [hostname] bluetoothd[3844]: Endpoint registered: sender=:1.87 path=/MediaEndpoint/A2DPSink/sbc_xq_453
Nov 06 09:12:21 [hostname] bluetoothd[3844]: Endpoint registered: sender=:1.87 path=/MediaEndpoint/A2DPSource/sbc_xq_453
Nov 06 09:12:21 [hostname] bluetoothd[3844]: Endpoint registered: sender=:1.87 path=/MediaEndpoint/A2DPSink/sbc_xq_512
Nov 06 09:12:21 [hostname] bluetoothd[3844]: Endpoint registered: sender=:1.87 path=/MediaEndpoint/A2DPSource/sbc_xq_512
Nov 06 09:12:21 [hostname] bluetoothd[3844]: Endpoint registered: sender=:1.87 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Nov 06 09:12:21 [hostname] bluetoothd[3844]: Endpoint registered: sender=:1.87 path=/MediaEndpoint/A2DPSource/sbc_xq_552
Nov 06 09:12:30 [hostname] bluetoothd[3844]: /org/bluez/hci0/dev_30_C0_1B_95_1D_C3/sep1/fd0: fd(42) ready
Nov 06 09:12:30 [hostname] bluetoothd[3844]: profiles/audio/avctp.c:avctp_connect_browsing_cb() Browsing: connect to 30:C0:1B:95:1D:C3: Connection refused (111)
我已经尝试过了rfkill
,alsa
但没有结果。但是当我尝试这些命令时:
$ pulseaudio -k
$ pulseaudio -D
$ pulseaudio --start
, 有用。但我无法在pavucontrol
. 现在我被困住了:|
这是我的 Kali 版本:
$ uname -a
Linux [my_hostname] 5.14.0-kali2-amd64 #1 SMP Debian 5.14.9-2kali1 (2021-10-04) x86_64 GNU/Linux
蓝牙版本:bluetoothctl: 5.61
蓝人版:2.2.2-1
我一直在为这个问题打我的头。自从最新一轮适用于 Kali 的 apt 更新以来,我已经遇到了几天。在做了一些挖掘之后,我发现有一些与 PipeWire 和 pulseaudio 组件相关的包更改(特别是 pipewire-media-session 的删除、pipewire-pulse 的新安装以及对 pipewire 的升级)
我找到了以下文章:https ://wiki.debian.org/BluetoothUser/a2dp#PipeWire
“至少,您需要安装 libspa-0.2-bluetooth 软件包,删除 pulseaudio-module-bluetooth 软件包(如果之前已安装),然后重新启动计算机或重新启动 PipeWire 服务,否则设备连接将失败并显示“协议不可用”。
我现在有音频端点,我仍然可以使用 pavucontrol 进行配置。
这是对突然出现的非常丑陋的问题的非常简单的解决方法。我希望这可以帮助仍然面临这个问题的人。
额外的
我发现将加载模块功能添加到 @sup2069 的其他解决方案响应中描述的 /etc/pulse/default.pa 似乎已经纠正了我遇到的一个问题,即它不会记住我的音频配置文件。每次设备重新连接时,我都必须重新配置 pavucontrol 中的默认音频源。我只是想把那一点信息扔出去。感谢大家为这个社区做出的所有贡献!
我和你有同样的问题,我的搜索把我带到了这里。做了更多的挖掘,我在我的 Debian Sid 构建中解决了我的问题。
/etc/pulse/default.pa
在or中添加了以下内容/etc/pulse/default.pa.d/bluez5.pa
。我创建并将我的插入到bluez5.pa
.保存并退出。
我重新启动(可能不需要)然后运行以下命令以在启动时加载脉冲音频(导致端点错误是因为它没有要绑定的音频;直到您使用
pulseaudio -D
and手动启动它pulsaudio --start
)。接下来,运行这些命令以在用户登录时加载pulseaudio,但不要以特权访问权限运行它,否则您可能会遇到错误。
然后我取下我的蓝牙耳机并重新配对。他们连接并出现在混音器面板中。您还可以进一步关闭蓝牙设备,然后重新打开,再次配对。
注意:由于我的代表,我无法在评论中提问以从您那里收集更多信息。