AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1518154
Accepted
el_gallo_azul
el_gallo_azul
Asked: 2024-06-20 13:47:42 +0800 CST2024-06-20 13:47:42 +0800 CST 2024-06-20 13:47:42 +0800 CST

Ubuntu 22.04 snapd 似乎阻止应用程序启动

  • 772

尽管我按照提示更新了浏览器,但我还是反复收到更新 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我无法提取列中的文本,因此我附上了相应的图像:

在此处输入图片描述

snap
  • 1 1 个回答
  • 264 Views

1 个回答

  • Voted
  1. Best Answer
    el_gallo_azul
    2024-07-07T10:12:41+08:002024-07-07T10:12:41+08:00

    https://askubuntu.com/a/1458661/91583

    正如@Lety 所建议的那样,这对我有用,他值得获得赏金。

    • 1

相关问题

  • 如何运行 snapcraft 网络聊天示例?

  • Ubuntu可以在哪里快照写入数据?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve