帮助清理 ubuntu 22.04 中的 snap

帮助清理 ubuntu 22.04 中的 snap

大家好,这些天我正在清理我的 ubuntu 22.04 系统,它是从 20.04 升级而来的,而 20.04 是从 18.04 升级而来的,而 18.04 是从 16.04 升级而来的...只是为了尽可能地清理,并学习新的东西。

我的问题是我面临这个快照列表:

    eduardo@MiPcLinux:/opt/AppImages$ snap list --all
Nombre                     Versión                     Rev    Seguimiento      Editor               Notas
atom                       1.60.0                      286    latest/stable    snapcrafters         classic
atom                       1.57.0                      282    latest/stable    snapcrafters         desactivado,classic
bare                       1.0                         5      latest/stable    canonical✓           base
canonical-livepatch        10.1.5                      138    latest/stable    canonical✓           desactivado
canonical-livepatch        10.2.3                      146    latest/stable    canonical✓           -
chromium                   105.0.5195.52               2076   latest/stable    canonical✓           -
chromium                   104.0.5112.101              2064   latest/stable    canonical✓           desactivado
communitheme               0.1                         1768   latest/stable    didrocks             desactivado
communitheme               29.187                      1987   latest/stable    didrocks             -
core                       16-2.56                     13308  latest/stable    canonical✓           core,desactivado
core                       16-2.56.2                   13425  latest/stable    canonical✓           core
core18                     20220428                    2409   latest/stable    canonical✓           base,desactivado
core18                     20220706                    2538   latest/stable    canonical✓           base
core20                     20220805                    1611   latest/stable    canonical✓           base
core20                     20220729                    1593   latest/stable    canonical✓           base,desactivado
cups                       2.4.2-2                     766    latest/stable    openprinting✓        desactivado
cups                       2.4.2-2                     774    latest/stable    openprinting✓        -
dbeaver-ce                 22.1.4.202208051447         204    latest/stable    dbeaver-corp         desactivado
dbeaver-ce                 22.1.5.202208211008         205    latest/stable    dbeaver-corp         -
discord                    0.0.19                      138    latest/stable    snapcrafters         desactivado
discord                    0.0.19                      141    latest/stable    snapcrafters         -
eclipse                    2019-03                     40     latest/stable    snapcrafters         desactivado,classic
eclipse                    2019-12                     48     latest/stable    snapcrafters         classic
exelearning                2.6                         9      latest/stable    exelearning-project  desactivado
exelearning                2.7                         10     latest/stable    exelearning-project  -
firefox                    104.0.1-1                   1794   latest/stable    mozilla✓             -
firefox                    104.0.1-1                   1775   latest/stable    mozilla✓             desactivado
gnome-3-26-1604            3.26.0.20210629             104    latest/stable    canonical✓           -
gnome-3-26-1604            3.26.0.20210401             102    latest/stable    canonical✓           desactivado
gnome-3-28-1804            3.28.0-19-g98f9e67.98f9e67  161    latest/stable    canonical✓           -
gnome-3-28-1804            3.28.0-19-g98f9e67.98f9e67  145    latest/stable    canonical✓           desactivado
gnome-3-38-2004            0+git.891e5bc               115    latest/stable    canonical✓           -
gnome-3-38-2004            0+git.891e5bc               112    latest/stable    canonical✓           desactivado
gtk-common-themes          0.1-79-ga83e90c             1534   latest/stable    canonical✓           desactivado
gtk-common-themes          0.1-81-g442e511             1535   latest/stable    canonical✓           -
gtk2-common-themes         0.1                         13     latest/stable    canonical✓           -
intellij-idea-ultimate     2022.2.1                    380    latest/stable    jetbrains✓           classic
intellij-idea-ultimate     2022.2                      377    latest/stable    jetbrains✓           desactivado,classic
jdownloader2               0+git.c17098b               17     latest/stable    fnkr                 -
jdownloader2               0+git.295de45               16     latest/stable    fnkr                 desactivado
onlyoffice-desktopeditors  7.1.0                       115    latest/stable    onlyoffice✓          desactivado
onlyoffice-desktopeditors  7.1.1                       121    latest/stable    onlyoffice✓          -
onlyoffice-ds              7.1.1                       88     latest/edge      onlyoffice✓          desactivado
onlyoffice-ds              7.1.1                       90     latest/edge      onlyoffice✓          -
p7zip-desktop              16.02.2                     220    latest/stable    ernytech             -
phpstorm                   2022.2                      286    latest/stable    jetbrains✓           desactivado,classic
phpstorm                   2022.2.1                    289    latest/stable    jetbrains✓           classic
pycharm-professional       2022.2                      297    latest/stable    jetbrains✓           desactivado,classic
pycharm-professional       2022.2.1                    300    latest/stable    jetbrains✓           classic
snap-store                 3.38.0-66-gbd5b8f7          558    latest/stable    canonical✓           -
snapd-desktop-integration  0.1                         14     latest/stable/…  canonical✓           -
spark                      1.2.0                       24     latest/edge      kwmonroe             -
spotify                    1.1.80.699.gc3dac750        58     latest/stable    spotify✓             desactivado
spotify                    1.1.84.716.gc5f8b819        60     latest/stable    spotify✓             -
webstorm                   2022.2.1                    276    latest/stable    jetbrains✓           classic
webstorm                   2022.2                      274    latest/stable    jetbrains✓           desactivado,classic

所以我遇到了一些问题:

1 - 例如,据我所知,ubuntu 22.04.1 附带 gnome 42,而一些应用程序仍在 gnome 41 中,因此我可以安全地删除 gnome-3-26-1604、gnome-3-28-1804 和 gnome gnome-3-38-2004 snap 包吗?我也可以删除它们各自的版本吗?

2 - 那么核心呢?我有 core、core18、core20……我猜这是 snap 的核心,所以我应该保存至少一个核心?最新的那个?

3 - Snapd-desktop-integration 是必要的……它的名字表明它很重要,但 0.1 版本表明它是废弃软件或不再使用的东西……也许集成在其他地方

提前致谢

答案1

您可以尝试删除您认为未使用的快照。如果您错了,系统只会返回一个错误,告诉您哪些快照正在使用它gnome-core-

以下是尝试删除的两个示例core-

me@me:~$ sudo snap remove core18
core18 removed

me@me:~$ sudo snap remove core20
error: cannot remove "core20": snap "core20" is not removable: snap is being used by snaps discord,
       firefox, gnome-3-38-2004, snap-store, snapd-desktop-integration and 1 more.

不要删除snapd-desktop-integration

相关内容