Bluez - bluetooth.serviceを起動できません

Bluez - bluetooth.serviceを起動できません

bluezバージョンを5から4.79にダウングレードしました。まず、sudo apt-get purgeを使用してbluez5を削除し、sudo apt-get autoremoveを使用して削除しました。その後、tarファイルをインポートしてクラシック./configure、make、sudo make installを実行してもエラーは発生しません。

問題は次のとおりです。 $ systemctl status bluetooth出力は次のとおりです。

*bluetooth.service 
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

だから出力しようとすると次のようになります$ sudo systemctl start bluetooth

Failed to start bluetooth.service : Unit bluetooth.service failed to load: No such file or directory

$ bluetoothd -v出力:

4.79

Bluetoothサービスを起動する方法とbluetooth.serviceファイルが見つからないのはなぜですか?私はLinuxを初めて使用し、raspbian jessieを使用してrp1でbluezを実行しています。助けてくれてありがとう。

ベストアンサー1

$ sudo systemctl enable bluetooth
Failed to enable unit: Unit file bluetooth.service does not exist.

上記のエラーが発生し、すべてのbluezパッケージをインストールしようとしました。

sudo apt-get install bluez*

インストール後にBluetoothを有効にしました

$ sudo systemctl enable bluetooth
Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bluetooth

$ sudo systemctl start bluetooth

おすすめ記事