现象
执行systemctl status snapd
命令出现下面错误
systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5.systemd[1]: Stopped Snap Daemon. systemd[1]: snapd.service: Start request repeated too quickly. systemd[1]: snapd.service: Failed with result 'exit-code'. systemd[1]: Failed to start Snap Daemon. systemd[1]: snapd.service: Triggering OnFailure= dependencies.
修复
执行service snapd force-reload
命令强制重新载入snapd
服务- 或者执行下面的命令重装
snapd
需要慎重, 可能会影响通过snapd安装的包sudo apt purge snapdsudo apt install snapd
- 可以通过执行
/usr/lib/snapd/snapd
命令查看具体报错信息
参考
- MariaDB(mysql)运行状态:This usually indicates unclean termination of a previous run
- After system repair, snapd service is not running/fails to restart
来源地址:https://blog.csdn.net/qq_26545503/article/details/128769681