web-dev-qa-db-ja.com

bluez-5.37(またはbluez-4.101)を使用してbluetoothまたはbluez-utilsパッケージをインストールできない

ソースからbluez 5.37をコンパイルし、インストールしました。 bluezに依存するパッケージbluez-utilsをインストールしたいと思います。

Sudo apt-get install bluez-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  bluetooth bluez bluez-alsa bluez-gstreamer
Suggested packages:
  bluez-hcidump
The following NEW packages will be installed:
  bluetooth bluez bluez-alsa bluez-gstreamer bluez-utils
0 upgraded, 5 newly installed, 0 to remove and 18 not upgraded.
Need to get 0 B/777 kB of archives.
After this operation, 3,497 kB of additional disk space will be used.
Do you want to continue? [Y/n]

残念ながら、私がしようとすると、bluez 4.101-0ubuntu13.1をインストールしようとしますが、これはホストに正しくインストールされません。

Selecting previously unselected package bluez.
(Reading database ... 557098 files and directories currently installed.)
Preparing to unpack .../bluez_4.101-0ubuntu13.1_AMD64.deb ...
Unpacking bluez (4.101-0ubuntu13.1) ...
Selecting previously unselected package bluetooth.
Preparing to unpack .../bluetooth_4.101-0ubuntu13.1_all.deb ...
Unpacking bluetooth (4.101-0ubuntu13.1) ...
Selecting previously unselected package bluez-alsa:AMD64.
Preparing to unpack .../bluez-alsa_4.101-0ubuntu13.1_AMD64.deb ...
Unpacking bluez-alsa:AMD64 (4.101-0ubuntu13.1) ...
Selecting previously unselected package bluez-gstreamer.
Preparing to unpack .../bluez-gstreamer_4.101-0ubuntu13.1_AMD64.deb ...
Unpacking bluez-gstreamer (4.101-0ubuntu13.1) ...
Selecting previously unselected package bluez-utils.
Preparing to unpack .../bluez-utils_4.101-0ubuntu13.1_all.deb ...
Unpacking bluez-utils (4.101-0ubuntu13.1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up bluez (4.101-0ubuntu13.1) ...
reload: Job is not running: dbus
invoke-rc.d: initscript dbus, action "force-reload" failed.
start: Job failed to start
invoke-rc.d: initscript bluetooth, action "start" failed.
dpkg: error processing package bluez (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bluetooth:
bluetooth depends on bluez; however:
Package bluez is not configured yet.
dpkg: error processing package bluetooth (--configure):
dependency problems - leaving unconfigured
...

別の試みでは、私は この回答を使用して、パッケージからbluez 5をインストールしようとしました しかし、それも失敗しました

これを試してください:Sudo apt-get purge bluez#古いバージョンを削除Sudo add-apt-repository ppa:vidplace7/bluez5 Sudo apt-get update Sudo apt-get install bluez

繰り返しますが、dbus force-reloadエラーが発生します。

Preparing to unpack .../bluez_5.35.0+upstream-201601200846~rev18516~pkg9~ubuntu14.04.1_AMD64.deb ...
Unpacking bluez (5.35.0+upstream-201601200846~rev18516~pkg9~ubuntu14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up bluez (5.35.0+upstream-201601200846~rev18516~pkg9~ubuntu14.04.1) ...
reload: Job is not running: dbus
invoke-rc.d: initscript dbus, action "force-reload" failed.
bluetooth start/running
Processing triggers for ureadahead (0.100.0-16) ...

また、私のシステムが最新であることにも注意してください。念のため、クリーンアップと更新後にbluezをインストールしようとしました。

$ Sudo apt-get purge bluez.*
$ Sudo apt-get update 
$ Sudo apt-get upgrade
$ Sudo apt-get dist-upgrade
$ Sudo apt-get install bluez
...
Setting up bluez (4.101-0ubuntu13.1) ...
reload: Job is not running: dbus
invoke-rc.d: initscript dbus, action "force-reload" failed.
start: Job failed to start
invoke-rc.d: initscript bluetooth, action "start" failed.
dpkg: error processing package bluez (--configure):
subprocess installed post-installation script returned error exit   status 1
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
bluez
E: Sub-process /usr/bin/dpkg returned an error code (1)

/etc/init.dにbluetoothスクリプトがあります。私はそれを起動した場合、文句を言いませんが、ログは実際に動作していないことを示しています:

$ Sudo /etc/init.d/bluetooth restart
 * Stopping bluetooth                                                    [ OK ] 
 * Starting bluetooth                                                    [ OK ] 



$ dmesg | tail 
[523602.147016] init: bluetooth main process (2672) terminated with status 1
[523602.147023] init: bluetooth main process ended, respawning
[523602.162789] init: bluetooth main process (2681) terminated with status 1
[523602.162797] init: bluetooth respawning too fast, stopped

だからシステムにbluetoothをインストールするにはどうすればいいですか?bluez 4またはbluez 5を持っている場合はそれほど気にしません、しかし、私はbluez-utilsを何らかの方法でインストールできるようにしたい...

ありがとう

3
user369353

問題は、bluezがシステムに正しくインストールされず、メッセージが表示されることでした

reload:ジョブが実行されていません:dbus invoke-rc.d:initscript dbus、アクション「force-reload」が失敗しました。 start:ジョブはinvoke-rc.dの開始に失敗しました:initscript bluetooth、アクション "start"が失敗しました。

2月では、アップグレードでは問題は解決しませんでしたが、数か月後の8月では解決します。あなたは単にする必要があります:

Sudo apt-get purge bluez*; Sudo apt-get update && Sudo apt-get dist-upgrade; Sudo apt-get autoremove

その後、再インストールします。

$ Sudo apt-get install bluez-utils
...
Setting up bluez (4.101-0ubuntu13.1) ...
reload: Job is not running: dbus
invoke-rc.d: initscript dbus, action "force-reload" failed.
bluetooth start/running, process 21366

Bluezのリロードは「失敗」しますが、パッケージは引き続き正しくインストールされることに注意してください。

ii  bluez                                             4.101-0ubuntu13.1                            AMD64        Bluetooth tools and daemons
1
user369353