我有一个四年前的笔记本电脑,最初运行Ubuntu18.10,然后每六个月升级到每个“正常”Ubuntu版本。目前,它正在运行22.10。当我运行一个snap list
命令时,我得到以下输出:
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✓ -
我真的需要在我的系统上使用core18
、gnome-3-28-2004
和其他任何上面列出的快照吗?
在类似的测试系统上,我尝试过:
# 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
来纠正这个问题。
其他的快照可以安全地从我的系统中删除吗?
发布于 2023-04-05 11:53:24
感谢评论中的指点。
我想出了
$ 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
或
$ 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
。
https://askubuntu.com/questions/1462400
复制相似问题