![SystemD 重新启动 DHCPD 错误:[email protected] 作业失败,因为服务未采取其单元配置所需的步骤](https://linux22.com/image/194901/SystemD%20%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%20DHCPD%20%E9%94%99%E8%AF%AF%EF%BC%9A%5Bemail%20protected%5D%20%E4%BD%9C%E4%B8%9A%E5%A4%B1%E8%B4%A5%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%9C%8D%E5%8A%A1%E6%9C%AA%E9%87%87%E5%8F%96%E5%85%B6%E5%8D%95%E5%85%83%E9%85%8D%E7%BD%AE%E6%89%80%E9%9C%80%E7%9A%84%E6%AD%A5%E9%AA%A4.png)
我在 Lenovo thinkpad 上安装了 Arch linux。我有Linux 5.13.13-arch1-1
。最近,我的无线网络在启动一段时间后就停止工作。使其再次工作的唯一解决方案是重新启动。当我跑步时我得到:sudo systemctl restart [email protected]
Job for [email protected] failed because the service did not take the steps required by its unit configuration.
See "systemctl status [email protected]" and "journalctl -xeu [email protected]" for details.
输出:systemctl status [email protected]
× [email protected] - dhcpcd on wlan0
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
Active: failed (Result: protocol) since Sat 2021-08-28 01:45:52 CEST; 18s ago
Process: 19655 ExecStart=/usr/bin/dhcpcd -q -w wlan0 (code=exited, status=0/SUCCESS)
CPU: 7ms
输出:sudo journalctl -xeu [email protected]
░░ The unit [email protected] has entered the 'failed' state with result 'protocol'.
srp 28 01:24:08 arch-thinkpad systemd[1]: Failed to start dhcpcd on wlan0.
░░ Subject: A start job for unit [email protected] has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit [email protected] has finished with a failure.
░░
░░ The job identifier is 83 and the job result is failed.
srp 28 01:45:52 arch-thinkpad systemd[1]: Starting dhcpcd on wlan0...
░░ Subject: A start job for unit [email protected] has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit [email protected] has begun execution.
░░
░░ The job identifier is 1353.
srp 28 01:45:52 arch-thinkpad systemd[1]: [email protected]: Can't open PID file /run/dhcpcd/wlan0.pid (yet?) after start: >
srp 28 01:45:52 arch-thinkpad systemd[1]: [email protected]: Failed with result 'protocol'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit [email protected] has entered the 'failed' state with result 'protocol'.
srp 28 01:45:52 arch-thinkpad systemd[1]: Failed to start dhcpcd on wlan0.
░░ Subject: A start job for unit [email protected] has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit [email protected] has finished with a failure.
░░
░░ The job identifier is 1353 and the job result is failed.
我应该怎么做才能防止这种情况发生?
谢谢你的帮助