清除 Apache 后 Lighttpd 无法启动

清除 Apache 后 Lighttpd 无法启动

我尝试在 kubuntu 16.04 上从 Apache 迁移到 Lighttpd。apt-get remove --purge apache2然后我使用了apt-get install lighttpd

运行后systemctl start lighttpd我收到错误消息

 Job for lighttpd.service failed because the control process exited with error code. See "systemctl status ligttpd.service" and "journalctl -xe" for details.

journalctl -xe的内容为:结果失败。

Mai 25 15:25:36 Heizschrank systemd[1]: lighttpd.service: Unit entered failed state.
Mai 25 15:25:36 Heizschrank systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Mai 25 15:25:36 Heizschrank systemd[1]: Reloading.
Mai 25 15:25:36 Heizschrank systemd[1]: apt-daily.timer: Adding 7h 10min 31.972833s random time.
Mai 25 15:25:36 Heizschrank systemd[1]: Started CUPS Scheduler.

-- Subject: Unit cups.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cups.service has finished starting up.
-- 
-- The start-up result is done.

Mai 25 15:25:36 Heizschrank systemd[1]: Started ACPI event daemon.
-- Subject: Unit acpid.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit acpid.service has finished starting up.
-- 
-- The start-up result is done.

Mai 25 15:25:41 Heizschrank sudo[22105]: pam_unix(sudo:session): session closed for user root

status的输出systemctl是:

● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mi 2016-05-25 15:25:36 CEST; 26min ago

Mai 25 15:25:36 Heizschrank systemd[1]: Starting Lighttpd Daemon...
Mai 25 15:25:36 Heizschrank lighttpd[23079]: /usr/sbin/lighttpd: symbol lookup error: /usr/sbin/lighttpd: undefined symbol: FAMNoExists
Mai 25 15:25:36 Heizschrank systemd[1]: lighttpd.service: Control process exited, code=exited status=127
Mai 25 15:25:36 Heizschrank systemd[1]: Failed to start Lighttpd Daemon.
Mai 25 15:25:36 Heizschrank systemd[1]: lighttpd.service: Unit entered failed state.
Mai 25 15:25:36 Heizschrank systemd[1]: lighttpd.service: Failed with result 'exit-code'.</p>

我尝试重新安装lighttpd多次,但出现相同的错误。我现在如何才能运行lighttpd而不导致错误?

答案1

好的,我在新输出中看到这是一个已知错误。请参阅https://bugs.launchpad.net/ubuntu/+source/lighttpd/+bug/1453463

我寻找的文本是:

undefined symbol: FAMNoExists

建议的解决方法是:

sudo apt-get install gamin

相关内容