首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >删除旧的(和不需要的)快照

删除旧的(和不需要的)快照
EN

Ask Ubuntu用户
提问于 2023-04-05 11:24:06
回答 1查看 225关注 0票数 0

我有一个四年前的笔记本电脑,最初运行Ubuntu18.10,然后每六个月升级到每个“正常”Ubuntu版本。目前,它正在运行22.10。当我运行一个snap list命令时,我得到以下输出:

代码语言:javascript
运行
复制
Name                            Version             Rev    Tracking         Publisher   Notes
bare                            1.0                 5      latest/stable    canonical✓  base
core                            16-2.58.3           14946  latest/stable    canonical✓  core
core18                          20230320            2721   latest/stable    canonical✓  base
core20                          20230308            1852   latest/stable    canonical✓  base
core22                          20230325            607    latest/stable    canonical✓  base
firefox                         111.0.1-2           2487   latest/stable    mozilla✓    -
gnome-3-38-2004                 0+git.6f39565       137    latest/stable    canonical✓  -
gnome-42-2204                   0+git.e7d97c7       68     latest/stable    canonical✓  -
gtk-common-themes               0.1-81-g442e511     1535   latest/stable    canonical✓  -
hunspell-dictionaries-1-7-2004  1.7-20.04+pkg-6fd6  2      latest/stable    brlin       -
snap-store                      41.3-66-gfe1e325    638    latest/stable    canonical✓  -
snapd-desktop-integration       0.1                 57     latest/stable/…  canonical✓  -

我真的需要在我的系统上使用core18gnome-3-28-2004和其他任何上面列出的快照吗?

在类似的测试系统上,我尝试过:

代码语言:javascript
运行
复制
# snap remove gnome-3-38-2004
gnome-3-38-2004 removed
# snap remove core18
core18 removed

没有警告或错误信息。但是,在那之后,firefox没有开始,给了我一条ERROR: not connected to the gnome-3-38-2004 content interface.消息。

所以,我不得不做snap install gnome-3-38-2004来纠正这个问题。

其他的快照可以安全地从我的系统中删除吗?

EN

回答 1

Ask Ubuntu用户

发布于 2023-04-05 11:53:24

感谢评论中的指点。

我想出了

代码语言:javascript
运行
复制
$ grep "default-provider:\|base:" /snap/*/*/meta/snap.yaml | awk '{print $NF}' | sort -u
bare
core20
core22
gnome-3-38-2004
gnome-42-2204
gtk-common-themes

代码语言:javascript
运行
复制
$ grep "default-provider:\|base:" /snap/*/current/meta/snap.yaml | awk '{print $NF}' | sort -u
bare
core20
core22
gnome-3-38-2004
gnome-42-2204
gtk-common-themes

列出不应该删除的快照;换句话说,是其他快照的依赖项。

请注意,无法或不应移除该未定义警告我的snap系统gnome-3-38-2004

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

https://askubuntu.com/questions/1462400

复制
相关文章

相似问题

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