我已将 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)
Run Code Online (Sandbox Code Playgroud)
所以当我尝试$ sudo systemctl start bluetooth
输出时:
Failed to start bluetooth.service : Unit bluetooth.service failed to load: No such file or directory
Run Code Online (Sandbox Code Playgroud)
$ bluetoothd -v
输出:
4.79
如何启动蓝牙服务以及为什么 bluetooth.service 文件丢失?我是 Linux 新手,我使用 raspbian jessie 在 rp1 上运行 bluez。任何帮助表示赞赏。
我有一个带有以下curl命令的bash脚本:
curl -v -X GET https://example.com -H ~/Desktop/headers.txt -o ~/Desktop/file.txt
Run Code Online (Sandbox Code Playgroud)
当我运行 bash 脚本时,我收到了 unothorized 401。显然我没有正确读取头文件。我的头文件看起来像“授权:承载 40bsafsdgds34234....”。我的curl版本是7.26