小编tuk*_*tuk的帖子

无法激活服务“org.freedesktop.systemd1”:超时

在 ubuntu 16.04.6 上尝试屏蔽 systemd 服务。我看到如下错误。

systemctl mask hadoop-hdfs-zkfc.service
Failed to activate service 'org.freedesktop.systemd1': timed out
Run Code Online (Sandbox Code Playgroud)

我使用的是 Ubuntu 16.04.6 附带的默认 systemd 版本。

ubuntu@platform1:~$ systemctl --version
systemd 229
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP
+LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS
+KMOD -IDN
Run Code Online (Sandbox Code Playgroud)

这个问题并不总是出现。但一旦遇到此问题,恢复 systemd 的唯一方法就是进行硬重启。

查看系统日志,系统似乎已中止。

May 18 08:49:24 platform3 systemd[1]: Removed slice User Slice of support.
May 18 08:49:27 platform3 systemd[1]: Assertion 's->type ==
SERVICE_ONESHOT' failed at ../src/core/service.c:1792, function
service_enter_start(). Aborting.
May 18 08:49:27 platform3 …
Run Code Online (Sandbox Code Playgroud)

init systemd 16.04

5
推荐指数
2
解决办法
6万
查看次数

标签 统计

16.04 ×1

init ×1

systemd ×1