Wave Spread...

解决 Debian 系统报错 Failed to create bus connection

分类:Linux 评论: 0

使用 Google Engine 时使用默认系统镜像 Debian 9 ,但使用 systemd 系列命令后会报错。

报错信息如下

$ timedatectl
Failed to create bus connection: No such file or directory

且时间同步服务也报错

# systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
           └─disable-with-time-daemon.conf
   Active: inactive (dead)
Condition: start condition failed at Thu 2019-01-03 22:11:36 PST; 28s ago
           └─ ConditionFileIsExecutable=!/usr/sbin/chronyd was not met
     Docs: man:systemd-timesyncd.service(8)

在最小化安装的系统上不会默认安装 dbus 因此会导致此问题。

解决

# apt-get install dbus

参考链接

回复