尝试安装任何 snap 时失败

尝试安装任何 snap 时失败

我正在尝试运行以下命令:

sudo snap install core

但我收到一条错误消息:

error: cannot perform the following tasks:
- Mount snap "core" (1689) ([start snap-core-1689.mount] failed with exit 
status 6: Failed to issue method call: Unit systemd-fsck@dev-disk-
by\x2duuid-60797469\x2d195d\x2d415b\x2d8bfd\x2d4f048b15ec67.service failed 
to load: No such file or directory. See system logs and 'systemctl status 
systemd-fsck@dev-disk-by\x2duuid-
60797469\x2d195d\x2d415b\x2d8bfd\x2d4f048b15ec67.service' for details.
)

uname -a 的结果:

 4.4.0-59-generic #80~14.04.1-Ubuntu SMP Fri Jan 6 18:02:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

和 systemctl 状态

Failed to issue method call: No such interface 'org.freedesktop.DBus.Properties' on object at path /org/freedesktop/systemd1/unit/systemd_2dfsck_40dev_2ddisk_2dbyx2duuid_2d60797469x2d195dx2d415bx2d8bfdx2d4f048b15ec67_2eservice

并 snap --version

snap    2.25~14.04
snapd   2.25~14.04
series  16
ubuntu  14.04
kernel  4.4.0-59-generic

我在虚拟机中运行,所以可能与此有关

答案1

创建一个虚假的服务来解决错误:

sudo touch /etc/systemd/system/[email protected]
sudo systemctl enable [email protected]

相关内容