我不断收到这些错误:
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-smsd
答案1
出现的错误消息如下:
maj 11 01:30:45 htpc.home.local systemd[1]: gammu-smsd.service: Unit configuration has fatal error, unit will not be started.
maj 11 01:30:45 htpc.home.local systemd[1]: /lib/systemd/system/gammu-smsd.service:9: Neither a valid executable name nor an absolute path: ${CMAKE_INSTALL_FULL_BINDIR}/gammu-smsd
maj 11 01:30:45 htpc.home.local systemd[1]: gammu-smsd.service: Unit configuration has fatal error, unit will not be started.
为了解决上述错误,我必须执行以下步骤:
cp /lib/systemd/system/gammu-smsd.service /etc/systemd/system/
// Edit line number 9
vim /etc/systemd/system/gammu-smsd.service +9
在我的情况下,在该文件中输入绝对路径:
ExecStart=/usr/bin/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon
因此删除以下内容,它看起来像:
${CMAKE_INSTALL_FULL_BINDIR}/gammu-smsd
并将其替换为绝对路径。