Eu compilei o bluez 5.37 de fontes e instalei-o.
Eu gostaria de instalar o pacote bluez-utils, que depende do bluez.
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]
Infelizmente, quando tento, ele tenta instalar o bluez
4.101-0ubuntu13.1 que não instala corretamente no meu host.
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
...
Em outra tentativa, eu tentei instalar o bluez 5 a partir do empacotamento, usando este responder mas também falhou
Tente isto: sudo apt-get limpar bluez # remover versões antigas sudo add-apt-repositório ppa: vidplace7 / bluez5 sudo apt-get update sudo apt-get install bluez
Mais uma vez, recebo uma falha de recarga forçada do dbus:
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) ...
Note também que o meu sistema está atualizado. Só para ter certeza, eu tentei instalar o bluez após uma limpeza e atualização:
$ 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)
Em /etc/init.d existe um script bluetooth. Se eu iniciá-lo, ele não reclama, mas os logs mostram que, na verdade, não está funcionando:
$ 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
Então como eu posso instalar o bluetooth no meu sistema? Eu não me importo muito se eu tiver bluez 4 ou bluez 5 , mas eu quero ser capaz de instale o bluez-utils de uma forma ou de outra ...
Obrigado