sudo apt-get remove --purge bluez
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 1139kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 189818 files and directories currently installed.)
Removing bluez ...
* Stopping bluetooth bluetoothd: no process killed
invoke-rc.d: initscript bluetooth, action "stop" failed.
dpkg: error processing bluez (--purge):
subprocess pre-removal script returned error exit status 1
postinst called with unknown argument `abort-remove'
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)