Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Can not activate bluetooth
-
- Posts: 190
- Joined: 2018-05-05 22:30
Re: Can not activate bluetooth
What a surprise, permissions problems. Not being a guru, I can't tell if "the configuration file" is for dbus or bluez, but that's where I'd start looking.
Re: Can not activate bluetooth
Here is a link to textuploader http://txt.do/1dmyfchaanakya wrote:Hmm, okay. Could you upload it to a site like https://textuploader.com/ and paste the URL here? I just don't want the forum or your copy-pasting to strip out valuable info.LarsF wrote:When I try to upload an attachment I get an error The extension txt is not allowed.
Re: Can not activate bluetooth
Did you modify /usr/share/dbus/system-services/org.bluez.service? Could you try the following? That should hopefully reset the security policy and hopefully fix the issue.
Code: Select all
sudo apt purge bluez && sudo apt install bluez
Re: Can not activate bluetooth
That didn't work.chaanakya wrote:Did you modify /usr/share/dbus/system-services/org.bluez.service? Could you try the following?That should hopefully reset the security policy and hopefully fix the issue.Code: Select all
sudo apt purge bluez && sudo apt install bluez
I dont know if it is related but I made a
Code: Select all
sudo apt update && sudo apt upgrade
Code: Select all
Havde:1 http://security.debian.org/debian-security stretch/updates InRelease
Ignorerer:2 http://ftp.dk.debian.org/debian stretch InRelease
Ignorerer:3 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu eoan InRelease
Havde:4 http://ftp.dk.debian.org/debian stretch-updates InRelease
Havde:5 http://ftp.dk.debian.org/debian stretch Release
Fejl:6 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu eoan Release
404 Not Found
Indlæser pakkelisterne... Færdig
E: Arkivet »http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu eoan Release« har ikke en udgivelsesfil.
N: Opdatering, fra et sådant arkiv, kan ikke udføres sikkert og er derfor deaktiveret som standard.
N: Se apt-secure(8)-manualsiden for detaljer om arkivoprettelse og brugerkonfiguration.
Re: Can not activate bluetooth
This is sort of unrelated, but you added a PPA (which is for Ubuntu) to Debian. You made a FrankenDebian. Enlightenment exists in the Debian repositories, and you should directly pull from their git repository if you want a newer version (or switch to Testing or Unstable). Don't use PPAs in Debian.
As for bluez, I'm not really sure, since purging and reinstalling should have reset the security policy. What is the output of the following?
How about this?
Did you change anything bluetooth related, like the systemd service or the D-Bus policy?
As for bluez, I'm not really sure, since purging and reinstalling should have reset the security policy. What is the output of the following?
Code: Select all
cat /usr/share/dbus-1/system-services/org.bluez.service
Code: Select all
systemctl cat bluetooth.service
Re: Can not activate bluetooth
thats either here nor there, y cant u give him the right entries for the sources.list?chaanakya wrote:This is sort of unrelated, but you added a PPA (which is for Ubuntu) to Debian. You made a FrankenDebian. Enlightenment exists in the Debian repositories, and you should directly pull from their git repository if you want a newer version (or switch to Testing or Unstable). Don't use PPAs in Debian.
As for bluez, I'm not really sure, since purging and reinstalling should have reset the security policy. What is the output of the following?How about this?Code: Select all
cat /usr/share/dbus-1/system-services/org.bluez.service
Did you change anything bluetooth related, like the systemd service or the D-Bus policy?Code: Select all
systemctl cat bluetooth.service
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Can not activate bluetooth
LarsF wrote:Sorry it is in danish. Is there any way to get it in english
Code: Select all
sudo -i
LC_ALL=C apt update
LC_ALL=C apt upgrade
exit
deadbang
Re: Can not activate bluetooth
Because you don't need any extra repositories to use Enlightenment? And I clearly said that it was unrelated to the problem.sickpig wrote:thats either here nor there, y cant u give him the right entries for the sources.list?
Yup. Still not sure why purging and re-installing bluez didn't fix the permissions problem though. As far as I can tell, the service files (both the systemd service and the D-Bus policy) are installed by that package, and I don't think the default policy files are that strict.Head_on_a_Stick wrote:@chaanakya: +1 about the PPAs but in this case the OP's system hasn't used the sources because it can't find the Release file.
OH! LarsF, is your user in the bluetooth group? I mean, that shouldn't matter, since that only affects whether your user can use bluetooth stuff. It shouldn't affect whether bluetooth is activated in the first place.
Re: Can not activate bluetooth
The codechaanakya wrote:This is sort of unrelated, but you added a PPA (which is for Ubuntu) to Debian. You made a FrankenDebian. Enlightenment exists in the Debian repositories, and you should directly pull from their git repository if you want a newer version (or switch to Testing or Unstable). Don't use PPAs in Debian.
As for bluez, I'm not really sure, since purging and reinstalling should have reset the security policy. What is the output of the following?How about this?Code: Select all
cat /usr/share/dbus-1/system-services/org.bluez.service
Did you change anything bluetooth related, like the systemd service or the D-Bus policy?Code: Select all
systemctl cat bluetooth.service
Code: Select all
cat /usr/share/dbus-1/system-services/org.bluez.service
[D-BUS Service]
Name=org.bluez
Exec=/bin/false
User=root
SystemdService=dbus-org.bluez.service
Code: Select all
systemctl cat bluetooth.service
# /lib/systemd/system/bluetooth.service
[Unit]
Description=Bluetooth service
# /lib/systemd/system/bluetooth.service
[Unit]
Description=Bluetooth service
Documentation=man:bluetoothd(8)
ConditionPathIsDirectory=/sys/class/bluetooth
[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/lib/bluetooth/bluetoothd
NotifyAccess=main
#WatchdogSec=10
#Restart=on-failure
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
LimitNPROC=1
ProtectHome=true
ProtectSystem=full
[Install]
WantedBy=bluetooth.target
Alias=dbus-org.bluez.service
# /etc/systemd/system/bluetooth.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/lib/bluetooth/bluetoothhd --debug -n
Re: Can not activate bluetooth
chaanakya wrote:Because you don't need any extra repositories to use Enlightenment? And I clearly said that it was unrelated to the problem.sickpig wrote:thats either here nor there, y cant u give him the right entries for the sources.list?
Yup. Still not sure why purging and re-installing bluez didn't fix the permissions problem though. As far as I can tell, the service files (both the systemd service and the D-Bus policy) are installed by that package, and I don't think the default policy files are that strict.Head_on_a_Stick wrote:@chaanakya: +1 about the PPAs but in this case the OP's system hasn't used the sources because it can't find the Release file.
OH! LarsF, is your user in the bluetooth group? I mean, that shouldn't matter, since that only affects whether your user can use bluetooth stuff. It shouldn't affect whether bluetooth is activated in the first place.
Here it is in englishHead_on_a_Stick wrote:LarsF wrote:Sorry it is in danish. Is there any way to get it in english@chaanakya: +1 about the PPAs but in this case the OP's system hasn't used the sources because it can't find the Release file.Code: Select all
sudo -i LC_ALL=C apt update LC_ALL=C apt upgrade exit
Code: Select all
LC_ALL=C apt update
Ign:1 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu eoan InRelease
Ign:2 http://ftp.dk.debian.org/debian stretch InRelease
Get:3 http://ftp.dk.debian.org/debian stretch-updates InRelease [91.0 kB]
Err:4 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu eoan Release
404 Not Found
Get:5 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Hit:6 http://ftp.dk.debian.org/debian stretch Release
Get:7 http://security.debian.org/debian-security stretch/updates/main Sources [207 kB]
Get:9 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [495 kB]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu eoan Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Code: Select all
LC_ALL=C apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
apache2-bin fonts-linuxlibertine fonts-sil-gentium fonts-sil-gentium-basic
gir1.2-appindicator3-0.1 hyphen-en-us kactivities-bin kactivitymanagerd kio
kpackagelauncherqml kpackagetool5 libapache2-mod-dnssd libappindicator3-1
libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
libbasicusageenvironment1 libbsh-java libcddb2 libdbusmenu-glib4
libdbusmenu-gtk3-4 libdbusmenu-qt5-2 libdouble-conversion1 libdvbpsi10
libebml4v5 libfam0 libgpgmepp6 libgroupsock8 libindicator3-7
libkf5activities5 libkf5archive5 libkf5attica5 libkf5auth-data libkf5auth5
libkf5bluezqt-data libkf5bluezqt6 libkf5bookmarks-data libkf5bookmarks5
libkf5calendarevents5 libkf5codecs-data libkf5codecs5 libkf5completion-data
libkf5completion5 libkf5config-bin libkf5config-data libkf5configcore5
libkf5configgui5 libkf5configwidgets-data libkf5configwidgets5
libkf5coreaddons-data libkf5coreaddons5 libkf5crash5 libkf5dbusaddons-bin
libkf5dbusaddons-data libkf5dbusaddons5 libkf5declarative-data
libkf5declarative5 libkf5globalaccel-bin libkf5globalaccel-data
libkf5globalaccel5 libkf5globalaccelprivate5 libkf5guiaddons5
libkf5i18n-data libkf5i18n5 libkf5iconthemes-bin libkf5iconthemes-data
libkf5iconthemes5 libkf5itemviews-data libkf5itemviews5
libkf5jobwidgets-data libkf5jobwidgets5 libkf5kiocore5 libkf5kiofilewidgets5
libkf5kiontlm5 libkf5kiowidgets5 libkf5notifications-data
libkf5notifications5 libkf5package-data libkf5package5 libkf5plasma5
libkf5plasmaquick5 libkf5quickaddons5 libkf5service-bin libkf5service-data
libkf5service5 libkf5solid5 libkf5solid5-data libkf5sonnet5-data
libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5
libkf5wallet-bin libkf5wallet-data libkf5wallet5 libkf5widgetsaddons-data
libkf5widgetsaddons5 libkf5windowsystem-data libkf5windowsystem5
libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5 libkwalletbackend5-5
liblivemedia57 libmatroska6v5 libmicrodns0 libopenmpt-modplug1 libpcre16-3
libphonon4qt5-4 libpolkit-qt5-1-1 libprotobuf-lite10 libproxy-tools
libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5printsupport5
libqt5qml5 libqt5quick5 libqt5script5 libqt5sql5 libqt5sql5-sqlite
libqt5svg5 libqt5widgets5 libqt5x11extras5 libqt5xml5 libreoffice
libreoffice-help-en-us libreoffice-librelogo libreoffice-nlpsolver
libreoffice-ogltrans libreoffice-pdfimport libreoffice-script-provider-bsh
libreoffice-script-provider-js libreoffice-script-provider-python
libreoffice-wiki-publisher libresid-builder0c2a libsdl-image1.2 libsidplay2
libupnp6 libusageenvironment3 libva-wayland1 libvlc-bin libvlc5 libvlccore9
libxcb-composite0 libxcb-damage0 libxcb-xinerama0 mythes-en-us phonon4qt5
phonon4qt5-backend-vlc plasma-framework qml-module-org-kde-bluezqt
qml-module-org-kde-kio qml-module-org-kde-kquickcontrols
qml-module-org-kde-kquickcontrolsaddons qml-module-qtgraphicaleffects
qml-module-qtquick-controls qml-module-qtquick-layouts
qml-module-qtquick-window2 qml-module-qtquick2 qt5-gtk-platformtheme
qttranslations5-l10n sonnet-plugins vlc-data vlc-plugin-base
vlc-plugin-video-output
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
libvlc-bin libvlc5 libvlccore9 vlc-data vlc-plugin-base
vlc-plugin-video-output
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 4505 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org/debian-security stretch/updates/main amd64 libvlccore9 amd64 3.0.7-0+deb9u1 [537 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 libvlc5 amd64 3.0.7-0+deb9u1 [172 kB]
Get:3 http://security.debian.org/debian-security stretch/updates/main amd64 vlc-plugin-video-output amd64 3.0.7-0+deb9u1 [257 kB]
Get:4 http://security.debian.org/debian-security stretch/updates/main amd64 vlc-plugin-base amd64 3.0.7-0+deb9u1 [2971 kB]
Get:5 http://security.debian.org/debian-security stretch/updates/main amd64 vlc-data all 3.0.7-0+deb9u1 [445 kB]
Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 libvlc-bin amd64 3.0.7-0+deb9u1 [122 kB]
Fetched 4505 kB in 1s (3030 kB/s)
Reading changelogs... Done
(Reading database ... 205851 files and directories currently installed.)
Preparing to unpack .../0-libvlccore9_3.0.7-0+deb9u1_amd64.deb ...
Unpacking libvlccore9:amd64 (3.0.7-0+deb9u1) over (3.0.6-0+deb9u1) ...
Preparing to unpack .../1-libvlc5_3.0.7-0+deb9u1_amd64.deb ...
Unpacking libvlc5:amd64 (3.0.7-0+deb9u1) over (3.0.6-0+deb9u1) ...
Preparing to unpack .../2-vlc-plugin-video-output_3.0.7-0+deb9u1_amd64.deb ...
Unpacking vlc-plugin-video-output:amd64 (3.0.7-0+deb9u1) over (3.0.6-0+deb9u1) ...
Preparing to unpack .../3-vlc-plugin-base_3.0.7-0+deb9u1_amd64.deb ...
Unpacking vlc-plugin-base:amd64 (3.0.7-0+deb9u1) over (3.0.6-0+deb9u1) ...
Preparing to unpack .../4-vlc-data_3.0.7-0+deb9u1_all.deb ...
Unpacking vlc-data (3.0.7-0+deb9u1) over (3.0.6-0+deb9u1) ...
Preparing to unpack .../5-libvlc-bin_3.0.7-0+deb9u1_amd64.deb ...
Unpacking libvlc-bin:amd64 (3.0.7-0+deb9u1) over (3.0.6-0+deb9u1) ...
Setting up vlc-data (3.0.7-0+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libvlccore9:amd64 (3.0.7-0+deb9u1) ...
Setting up bluez (5.43-2+deb9u1) ...
Job for bluetooth.service failed because the control process exited with error code.
See "systemctl status bluetooth.service" and "journalctl -xe" for details.
invoke-rc.d: initscript bluetooth, action "start" failed.
* bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/bluetooth.service.d
`-override.conf
Active: failed (Result: exit-code) since Wed 2019-06-12 16:29:06 CEST; 6ms ago
Docs: man:bluetoothd(8)
Process: 12320 ExecStart=/usr/lib/bluetooth/bluetoothhd --debug -n (code=exited, status=203/EXEC)
Main PID: 12320 (code=exited, status=203/EXEC)
Jun 12 16:29:06 Acer systemd[1]: Starting Bluetooth service...
Jun 12 16:29:06 Acer systemd[1]: bluetooth.service: Main process exited, co…EXEC
Jun 12 16:29:06 Acer systemd[1]: Failed to start Bluetooth service.
Jun 12 16:29:06 Acer systemd[1]: bluetooth.service: Unit entered failed state.
Jun 12 16:29:06 Acer systemd[1]: bluetooth.service: Failed with result 'exi…de'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package bluez (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up vlc-plugin-base:amd64 (3.0.7-0+deb9u1) ...
Setting up libvlc5:amd64 (3.0.7-0+deb9u1) ...
Setting up vlc-plugin-video-output:amd64 (3.0.7-0+deb9u1) ...
Setting up libvlc-bin:amd64 (3.0.7-0+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for libvlc-bin:amd64 (3.0.7-0+deb9u1) ...
Errors were encountered while processing:
bluez
E: Sub-process /usr/bin/dpkg returned an error code (1)
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Can not activate bluetooth
Why have you over-ridden bluetoothhd.service?
Does the package update succesfully if you remove the over-ride?
Disclaimer: I don't use bluetooth so I have no idea how to fix this.
Does the package update succesfully if you remove the over-ride?
Code: Select all
# rm -r /etc/systemd/system/bluetooth.service.d
deadbang
Re: Can not activate bluetooth
The override was to get more debugging info in the log. I asked LarsF to do that. It doesn't affect whether the bluetooth works or not.Head_on_a_Stick wrote:Why have you over-ridden bluetoothhd.service?
Does the package update succesfully if you remove the over-ride?Disclaimer: I don't use bluetooth so I have no idea how to fix this.Code: Select all
# rm -r /etc/systemd/system/bluetooth.service.d
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Can not activate bluetooth
Gaaah, sorry chaanakya
Note to self: read thread before wading in...
Note to self: read thread before wading in...
deadbang
Re: Can not activate bluetooth
You have a typo in your override file (/usr/lib/bluetooth/bluetoothhd instead of /usr/lib/bluetooth/bluetoothd) which you should fix first.LarsF wrote:And yes my user is in the bluetooth group
So for now, can you remove the PPA repository (I'm not sure how you added it, but it's either a line starting with deb http://ppa.launchpad.net in /etc/apt/sources.list or it's a file in /etc/apt/sources.list.d), and run
Code: Select all
sudo apt update && sudo apt purge bluez && sudo apt upgrade
After that completes without any errors, can you make sure the file /etc/dbus-1/system.d/bluetooth.conf doesn't exist? Just to be sure it was removed (since that's actually where the security policy is stored...I did some research). Now do a
Code: Select all
sudo apt install bluez