尽管我按照提示更新了浏览器,但我还是反复收到更新 Brave 浏览器的提示,并且我看到它来自“Snap Store”,因此我卸载并重新安装了 snapd。我卸载并重新安装了 Brave 浏览器,但现在 Brave 浏览器会尝试启动,但无法启动。
我尝试从 CLI 启动 Brave 浏览器,发生了以下情况:
el_gallo_azul@desktop-ubuntu:~$ brave
Command 'brave' not found, but can be installed with:
sudo snap install brave
el_gallo_azul@desktop-ubuntu:~S sudo snap tnstall brave
[sudo] password for el_gallo_azul:
error: cannot perform the following tasks:
Run configure hook of "brave" snap if present (run hook "configure": cannot locate base snap core22: No such file or directory)
el_gallo_azul@desktop-ubuntu:~$ standard-notes
cannot locate base snap core22: No such file or directory
el_gallo_azul@desktop-ubuntu:~$ sudo snap install core22
snap "core22" is already installed, see 'snap help refresh'
我刚刚用 Mozilla Firefox 浏览器运行了同样的操作,试图将 CLI 文本粘贴到这个 AskUbuntu 问题中,但它无法启动。当我尝试从 CLI 启动它时发生了类似的问题,当我尝试安装它时再次发生了类似的问题(尽管它已经安装好了)。
然后,我尝试使用标准 Notes 应用程序来存储此 CLI 文本,以便我可以将其跨操作系统传输并粘贴到 AskUbuntu 中,但标准 Notes 应用程序也无法启动。
我刚刚又试了一次,发现有东西core22
缺失了,然后我安装了它,但并没有什么区别。
我无法使用 Ubuntu 22.04。目前我只能使用 Tails 6.4。
编辑 20240630:根据要求,我添加以下内容。
我已经有几周没用过 Ubuntu 了,所以当我启动它时,我做的第一件事就是进行一次大更新,其中包括内核映像和大量“快照”更新。我错误地抱有希望。然后我做了以下事情。
$ brave
Command brave' not found, but can be installed with:
sudo snap install brave
$ sudo snap install brave
[sudo] password for el_gallo_azul:
error: cannot perform the following tasks:
Run configure hook of "brave" snap if present (run hook "configure": cannot locate base snap core22: No such file or directory)
$ sudo snap refresh
error: cannot perform the following tasks:
Run post-refresh hook of "firefox" snap if present (run hook "post-refresh": cannot locate base snap core22: No such file or directory)
编辑 20240704 我根据评论中的更多建议添加了以下内容。我希望我已经纠正了所有 OCR 错误。
el_gallo_azul@desktop-ubuntu:~$ sudo snap remove firefox
[sudo] password for el_gallo_azul:
error: cannot perform the following tasks:
Remove data for snap "firefox" (4424) (unlinkat /var/snap/firefox/common/host-hunspell/en_AU.aff: read-only file systen)
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:~$ brave
Command 'brave' not found, but can be installed with:
sudo snap install brave
el_gallo_azul@desktop-ubuntu:~$ sudo snap install brave
error: cannot perform the following tasks:
Run configure hook of "brave" snap if present (run hook "configure": cannot locate base snap core22: No such file
el_gallo_azul@desktop-ubuntu:~$ sudo snap refresh brave
error: snap "brave" is not installed
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:-$ sudo snap refresh brave
error: snap "brave" is not installed
el_gallo_azul@desktop-ubuntu:~$ apt policy snapd
snapd:
Installed: 2.63+22.04
Candidate: 2.63+22.04
Version table:
*** 2.63+22.04 500
500 http://au.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.58+22.04.1 500
500 http://security.ubuntu.com/ubuntu jammy-security/main and64 Packages
2.55.3+22.04 500
500 http://au.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:~$ cd ~/snap
el_gallo_azul@desktop-ubuntu:~/snap$ ls
canonical-livepatch drawing firefox snapd-desktop-integration snap-store standard-notes
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:~/snap$ sudo apt purge snapd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was autonatically installed and ts no longer required:
libopenshot25
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
snapd*
0 to upgrade, 0 O newly install, 1 to remove and 6 not to upgrade.
After this operation, 104 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 218837 files and directories currently installed.)
Removing snapd (2.63+22.04)
stopping snap.canonical-livepatch.canonical-livepatchd.service
stopping unit snap.canonical-livepatch.canonical-livepatchd.service
Maiting until unit snap.canontcal-livepatch.canontcal-livepatchd.service ls stopped [attenpt 1]
snap.canonical-livepatch.canontcal-livepatchd.service is stopped
Harning: Stopping snapd.service, but it can still be activated by:
snapd.socket
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1)
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Processing triggers for matlcap (3.70+nmulubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
(Reading database ... 218747 files and directories currently installed.)
Purging configuration files for snapd (2.63+22.04)
Stopping snap.canontcal-livepatch.canonical-livepatchd.service
"..
Stopping unit snap.canonical-livepatch.canonical-livepatchd.service
Hatting until untt snap.canontcal-livepatch.canontcal-Ltvepatchd.service is stopped [attenpt 1]
snap.canonical-livepatch.canonical-livepatchd.service is stopped
Removing snap.canonical-livepatch.canonical-livepatchd.service
Stopping snap-bare-5.mount
Stopping unit snap-bare-5.mount
Waiting until unit snap-bare-5.nount is stopped [attempt 1]
snap-bare-5.mount ts stopped
Removing snap bare and revision 5
Removing snap-bare-5.mount
Stopping snap-canonical\x2dlivepatch-282.mount
Stopping unit snap-canonical\x2dlivepatch-282.mount
Hatting until untt snap-canontcal\x2dltvepatch-282.mount ts stopped [attenpt 1]
snap-canonical|x2dlivepatch-282.mount is stopped.
Removing snap canontcal-livepatch and reviston 282
Removing snap-canonical\x2dlivepatch-282.mount
Stopping snap-core18- 2823.mount
Stopping untt snap-core18-2823 Mount
Waiting untll unit snap-core18-2823.mount ts stopped [attempt 1]
snap-core18-2823.mount is stopped.
Removing snap core18 and reviston 2823
Removing snap-core18-2823.mount
Stopping snap- core18-2829.
Mount
Stopping untt snap-core18-2829.mount
Hatting untll untt snap-core18-2829.mount ls stopped [attenpt 1]
Snap- Core18-2829. .nount ts stopped.
Removing SOAD core1R and revision 7879
(remove overlap)
snap-core18-2829.mount is stopped
Removing snap core18 and revision 2829
Removing snap-core18-2829.mount
Stopping snap-core20-2318.mount
Stopping untt snap-core20-2318.mount
Waiting until untt snap-core20-2318.mount is stopped [attempt 1]
snap-core20-2318.mount is stopped.
Removing snap core20 and revision 2318
Removing snap-core20-2318.mount
Stopping snap-core22-1380.mount
Stopping unit snap-core22-1380.mount
Waiting until unit snap-core22-1380.mount is stopped [attempt 1]
Removing snap core22 and revision 1380
Removing snap-core22-1380.mount
Stopping snap-firefox-4424.mount
Stopping unit snap-firefox-4424.mount
Waiting until unit snap-firefox-4424.mount is stopped [attempt 1]
snap-firefox-4424.mount is stopped.
Removing snap firefox and revision 4424
rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_AU.aff': Read-only file system
rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_AU.dic': Read-only file system
rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_US.aff': Read-only file system
rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_US.dic': Read-only file systen
dpkg: error processing package snapd (--purge):
installed snapd package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
snapd
E: Sub-process /usr/btn/dpkg returned_an error code (1)
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:~$ sudo snap refresh
[sudo] password for el_gallo_azul:
All snaps up to date.
el_gallo_azul@desktop-ubuntu:-$
最后,snap list
我无法提取列中的文本,因此我附上了相应的图像:
https://askubuntu.com/a/1458661/91583
正如@Lety 所建议的那样,这对我有用,他值得获得赏金。