Bluetoothに接続しましたが失敗しました。オーディオエンドポイントが登録されていません。

Bluetoothに接続しましたが失敗しました。オーディオエンドポイントが登録されていません。

Windows 11を使用してKali-Linuxをデュアルブートします。だから問題は、Bluetoothスピーカー(JBL GO)を接続したいのですが、残念ながら接続できないということです。 GUIとCLIを使用してスピーカーに接続します。以前はうまくいきました。 Windowsでは接続できますが、Kaliでは接続できません。

以下は、GUIを使用したメッセージです。 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

Bluetoothサービスを確認してください。

$ 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。今詰まっています:| GUIが接続されました

これは私の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

Bluetooth制御バージョン:bluetoothctl: 5.61

ブルーマンバージョン:2.2.2-1

ベストアンサー1

私はこの問題に悩んできました。 Kaliが最新の適切なアップデートを提供してから数日間、この問題が発生しました。もう少し調査したところ、PipeWireおよびpulseaudioコンポーネントに関連するいくつかのパッケージ変更があることがわかりました(特に、パイプラインメディアセッションの削除、パイプラインパルスの新規インストール、およびパイプラインワイヤのアップグレード)。

次の記事を見つけました。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でデフォルトのオーディオソースを再設定する必要があります。私はその小さな情報をそこに投げたかったのです。このコミュニティに貢献してくれた皆さんに感謝します!

おすすめ記事