連接到藍牙但連接失敗:未註冊音頻端點
我用 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 服務,否則設備連接將失敗並顯示“協議不可用”。
apt install libspa-0.2-bluetooth && apt purge pulseaudio-module-bluetooth reboot
我現在有音頻端點,我仍然可以使用 pavucontrol 進行配置。
這是對突然出現的非常醜陋的問題的非常簡單的解決方法。我希望這可以幫助仍然面臨這個問題的人。
額外的
我發現將載入模組功能添加到 @sup2069 的其他解決方案響應中描述的 /etc/pulse/default.pa 似乎已經糾正了我遇到的一個問題,即它不會記住我的音頻配置文件。每次設備重新連接時,我都必須重新配置 pavucontrol 中的預設音頻源。我只是想把那一點資訊扔出去。感謝大家為這個社區做出的所有貢獻!