自从升级到Ubuntu17.10之后,我一直无法连接到snap守护进程。因此,例如,如果我从命令行使用它,并键入:"sudo snap find hello",它将无法告诉我无法连接到localhost上的服务。
在尝试启动该服务时,我得到以下信息:
-- Unit snapd.service has begun starting up.
Jan 20 17:58:00 hostname snapd[7848]: AppArmor status: apparmor is enabled but some features are missing: dbus, network
Jan 20 17:58:00 hostname snapd[7848]: AppArmor status: apparmor is enabled but some features are missing: dbus, network
Jan 20 17:58:00 hostname snapd[7848]: error: invalid character 'e' looking for beginning of value
Jan 20 17:58:00 hostname systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 17:58:00 hostname systemd[1]: Failed to start Snappy daemon.
-- Subject: Unit snapd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit snapd.service has failed.
--
-- The result is failed.
Jan 20 17:58:00 hostname systemd[1]: snapd.service: Unit entered failed state.
Jan 20 17:58:00 hostname systemd[1]: snapd.service: Failed with result 'exit-code'.
Jan 20 17:58:00 hostname systemd[1]: snapd.service: Service hold-off time over, scheduling restart.我试过重新安装snappy,但没有用。
我最近不得不使用一个4.15 rc8内核(用于WiFi驱动程序),但我也尝试使用4.13-25内核,认为它可能缺少安全特性,但这也没有帮助。
我很难理解“寻找价值的开始”这个“无效的角色”意味着什么,因为我认为这将引导我找到解决方案。
顺便提一句,快速应用程序是有效的,因为我使用的是Rocket.chat快照,而且它确实在工作,但我不确定它是否正在更新。
发布于 2018-01-21 11:09:31
多亏了snapcraft.io网站上的一篇文章,我终于找到了问题的根源。
我的/var/lib/ and /state.json已损坏,因此我对文件进行了备份,并使用"systemctl start snapd.service“重新启动了快照。
https://askubuntu.com/questions/998057
复制相似问题