首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法连接到snappy或在Ubuntu17.10上运行snappy命令

无法连接到snappy或在Ubuntu17.10上运行snappy命令
EN

Ask Ubuntu用户
提问于 2018-01-20 16:14:08
回答 1查看 2.9K关注 0票数 0

自从升级到Ubuntu17.10之后,我一直无法连接到snap守护进程。因此,例如,如果我从命令行使用它,并键入:"sudo snap find hello",它将无法告诉我无法连接到localhost上的服务。

在尝试启动该服务时,我得到以下信息:

代码语言:javascript
复制
-- 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快照,而且它确实在工作,但我不确定它是否正在更新。

EN

回答 1

Ask Ubuntu用户

发布于 2018-01-21 11:09:31

多亏了snapcraft.io网站上的一篇文章,我终于找到了问题的根源。

我的/var/lib/ and /state.json已损坏,因此我对文件进行了备份,并使用"systemctl start snapd.service“重新启动了快照。

票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/998057

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档