我在 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 提交错误报告描述此问题