我看见这次讨论这表明其他人也遇到了这种情况。我最近也从 18.04 升级到了 20.04。症状如下:
$ systemctl status networking
Failed to parse bus message: No such device or address
$ systemctl --user status valheim
Failed to parse bus message: No such device or address
然而,一个简单的systemctl status
作品。
另外,如果我以 root 身份运行并查询特定服务,它会起作用:
$ sudo systemctl status networking
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: active (exited) since Sun 2021-03-28 22:39:17 EDT; 1 day 16h ago