在不影响系统性能的情况下处理 Ubuntu 22.04 启动时的挂载单元故障

在不影响系统性能的情况下处理 Ubuntu 22.04 启动时的挂载单元故障

此问题出现在 Ubuntu 22.04 的启动过程中。尽管系统运行正常,没有任何明显的性能缺陷,但我一直遇到一系列与挂载单元故障相关的错误消息。系统检查报告以下内容:

/dev/nvme0n1p7: clean, 2041902/42721280 files, 67243365/170864384 blocks
[    2.464992] /var/lib/snapd/snaps/canonical-livepatch_229.snap: Can't open blockdev
[    2.464992] /var/lib/snapd/snaps/canonical-livepatch_229.snap: Can't open blockdev
[    2.468568] /var/lib/snapd/snaps/chromium_2614.snap: Can't open blockdev
[    2.471267] /var/lib/snapd/snaps/core_15925.snap: Can't open blockdev
[    2.472090] /var/lib/snapd/snaps/core_16202.snap: Can't open blockdev
[    2.482007] /var/lib/snapd/snaps/firefox_3068.snap: Can't open blockdev
[    2.484331] /var/lib/snapd/snaps/firefox_3206.snap: Can't open blockdev
[    2.487835] /var/lib/snapd/snaps/gnome-42-2204_120.snap: Can't open blockdev
[    2.490344] /var/lib/snapd/snaps/gnome-42-2204_141.snap: Can't open blockdev
[    2.498566] /var/lib/snapd/snaps/slack_89.snap: Can't open blockdev
[FAILED] Failed to mount Mount unit for canonical-livepatch, revision 229.
[FAILED] Failed to mount Mount unit for chromium, revision 2614.
[FAILED] Failed to mount Mount unit for core, revision 15925.
[FAILED] Failed to mount Mount unit for core, revision 16202.
[FAILED] Failed to mount Mount unit for firefox, revision 3068.
[FAILED] Failed to mount Mount unit for firefox, revision 3206.
[FAILED] Failed to mount Mount unit for gnome-42-2204, revision 120.
[FAILED] Failed to mount Mount unit for gnome-42-2204, revision 141.
[FAILED] Failed to mount Mount unit for slack, revision 89.

这些消息表明在启动期间无法打开各种快照的 blockdev,随后无法安装其各自的单元。

虽然这些错误似乎不会影响操作系统的功能,但我担心可能存在一些可能不会立即显现的潜在问题。此外,我有兴趣了解这些错误的原因以及如何解决它们以实现更清洁的启动过程。

以下是我已经尝试过的故障排除步骤:

使用 fsck 检查文件系统是否有错误。确保所有 snap 包都更新到最新版本。尝试手动重新安装上述单元,但没有成功。如果您能对以下问题提供任何见解,我将不胜感激:

在启动过程中,这些错误消息的潜在原因是什么?有没有办法修复这些安装单元故障而不影响当前系统稳定性?这些错误是否表明即将发生需要采取先发制人行动的系统问题?任何建议或诊断建议都将不胜感激!

PS 这是我在 snap list --all 之后得到的结果:

snap list --all
Name                        Version           Rev    Tracking         Publisher       Notes
bare                        1.0               5      latest/stable    canonical✓      base
canonical-livepatch         10.8.2            278    latest/stable    canonical✓      -
canonical-livepatch         10.8.1            264    latest/stable    canonical✓      disabled
chromium                    124.0.6367.60     2828   latest/stable    canonical✓      disabled
chromium                    124.0.6367.91     2839   latest/stable    canonical✓      -
core                        16-2.61.2         16928  latest/stable    canonical✓      core
core                        -                 16202  latest/stable    canonical✓      disabled, broken
core18                      20240416          2823   latest/stable    canonical✓      base
core18                      20231027          2812   latest/stable    canonical✓      base, disabled
core20                      20230801          2015   latest/stable    canonical✓      base, disabled
core20                      20240227          2264   latest/stable    canonical✓      base
core22                      20240408          1380   latest/stable    canonical✓      base
core22                      20240111          1122   latest/stable    canonical✓      base, disabled
cups                        2.4.8-1           1047   latest/stable    openprinting✓   -
cups                        2.4.7-8           1044   latest/stable    openprinting✓   disabled
firefox                     125.0.3-1         4209   latest/stable/...mozilla✓        -
firefox                     125.0.2-1         4173   latest/stable/...mozilla✓        disabled
gnome-3-34-1804             0+git.3556cb3     93     latest/stable    canonical✓      -
gnome-3-38-2004             0+git.6f39565     140    latest/stable/...canonical✓      disabled
gnome-3-38-2004             0+git.efb213a     143    latest/stable/...canonical✓      -
gnome-42-2204               0+git.510a601     176    latest/stable    canonical✓      -
gnome-42-2204               -                 141    latest/stable    canonical✓      disabled, broken
gtk-common-themes           0.1-81-g442e511   1535   latest/stable/...canonical✓      -
keepassxc                   2.7.6             1762   latest/stable    keepassxreboot  -
kf5-5-105-qt-5-15-9-core22  5.105             11     latest/stable    kde✓            -
slack                       4.36.138          130    latest/stable    slack✓          disabled
slack                       4.37.101          142    latest/stable    slack✓          -
snap-store                  41.3-71-g709398e  959    latest/stable/...canonical✓      disabled
snap-store                  41.3-77-g7dc86c8  1113   latest/stable/...canonical✓      -
snapd                       2.61.1            20671  latest/stable    canonical✓      snapd, disabled
snapd                       2.62              21465  latest/stable    canonical✓      snapd
snapd-desktop-integration   0.9               157    latest/stable/...canonical✓      -
snapd-desktop-integration   0.9               83     latest/stable/...canonical✓      disabled
enter code here

相关内容