![Kali 上的 gammu-smsd 损坏或配置错误](https://linux22.com/image/172627/Kali%20%E4%B8%8A%E7%9A%84%20gammu-smsd%20%E6%8D%9F%E5%9D%8F%E6%88%96%E9%85%8D%E7%BD%AE%E9%94%99%E8%AF%AF.png)
我在 Kali 上的 gammu-smsd 损坏或配置错误。我尝试了通常的方法来自动修复,但不断收到这些错误:
Errors were encountered while processing:gammu-smsd E: Sub-process /usr/bin/dpkg returned an error code (1)
gammu-smsd.service: Unit configuration has fatal error, unit will not be started
~/systemd[1]: /lib/systemd/system/gammu-smsd.service:9: Neither a valid executable name nor an absolute path: ${CMAKE_INSTALL_FULL_BINDIR}/gammu-sms
答案1
复制
/lib/systemd/system/gammu-smsd.service
到/etc/systemd/system/
并编辑它。更改第 9 行:ExecStart=${CMAKE_INSTALL_FULL_BINDIR}/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon
这样
${CMAKE_INSTALL_FULL_BINDIR}
您就拥有了包含gammu-smsd
. (我不知道那是什么,因为我的任何系统上都没有安装该软件包。)跑步
systemctl daemon-reload
跑步
dpkg-reconfigure -a
向 Kali 提交错误报告描述此问题