如果我运行任何 snap 命令它都会失败。
我发现 snapd 服务没有运行。我尝试启动它,但出现了这个错误
Job for snapd.service failed because the control process exited with error code.
See "systemctl status snapd.service" and "journalctl -xe" for details.
我运行了journalctl -xe
,这是输出 أبريل 29 03:15:09 Ryok
snap-failure[48189]: error: snapd failed: exit status 1 أبريل 29 03:15:09 Ryok systemd[1]: snapd.failure.service: Main process exited,
>
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit snapd.failure.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1. أبريل 29 03:15:09 Ryok systemd[1]: snapd.failure.service: Failed with result 'e>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit snapd.failure.service has entered the 'failed' state with result 'e> أبريل 29 03:15:09 Ryok systemd[1]: Failed to start Failure handling of the snap>
-- Subject: A start job for unit snapd.failure.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit snapd.failure.service has finished with a failure.
--
-- The job identifier is 14440 and the job result is failed.
如果我尝试例如
snap install postman
抛出此错误
error: cannot communicate with server: Post http://localhost/v2/snaps/postman: dial unix /run/snapd.socket: connect: connection refused
Snap 版本
snap 2.44.3+20.04
snapd unavailable
series -
操作系统:Ubuntu 20.04 LTS
我尝试重新安装,然后卸载再安装,但都没有用。我读了很多相关资料,但似乎没有办法解决问题。
谢谢你的时间