我现在在 I9 cpu + Nvidia Geforce RTX 2080 ti 和驱动程序 545 上运行 Ubuntu 23.10。一切都很好,但不是很快。我从头开始安装 Ubuntu 后就尝试将其删除,但出现了问题,现在我在启动过程中看到以下错误:
/var/lib/snapd/snaps/bare_5.snap: Can't open blockdev
/var/lib/snapd/snaps/core22_607.snap: Can't open blockdev
/var/lib/snapd/snaps/core22_864.snap: Can't open blockdev
/var/lib/snapd/snaps/firefox_2517.snap: Can't open blockdev
/var/lib/snapd/snaps/firmware-updater_109.snap: Can't open blockdev
/var/lib/snapd/snaps/gnome-42-2204_141.snap: Can't open blockdev
/var/lib/snapd/snaps/gnome-42-2204_87.snap: Can't open blockdev
/var/lib/snapd/snaps/gtk-common-themes_1535.snap: Can't open blockdev
/var/lib/snapd/snaps/snap-store_1046.snap: Can't open blockdev
/var/lib/snapd/snaps/snap-store_959.snap: Can't open blockdev
/var/lib/snapd/snaps/snapd_18933.snap: Can't open blockdev
/var/lib/snapd/snaps/snapd_20290.snap: Can't open blockdev
/var/lib/snapd/snaps/snapd-desktop-integration_83.snap: Can't open blockdev
不管怎样,snap 似乎工作正常(因为我重新安装了它,目的是当我能够修复错误时再次删除它):
# snap list
Name Version Rev Tracking Publisher Notes
core 16-2.60.4 16202 latest/stable canonical✓ core
hello-world 6.4 29 latest/stable canonical✓ -
我真正想做的是完全删除快照,包括您在上面看到的错误。我尝试了不同的方法,但没有任何效果,错误不断出现。
答案1
删除snapd
孤立包:
sudo apt autoremove --purge snapd
阻止更新:
sudo apt-mark hold snapd
您还可以手动删除这些文件夹:
rm -rf ~/snap
sudo rm -rf /snap
sudo rm -rf /var/snap
sudo rm -rf /var/lib/snapd