snap-store 错误

snap-store 错误

我有一台全新的笔记本电脑。我做的第一件事是从 apt 卸载 Firefox 和 Thunderbird,然后从 snap-store 卸载 Firefox。我不确定这是否与错误有关。

在我从 snap-store 卸载 Firefox 之前,它显示有一些更新可用。卸载 Firefox 后,snap-store 停止并再次启动,没有更新。

从控制台运行我看到:未处理操作刷新失败的错误:E:无法获取http://il.archive.ubuntu.com/ubuntu/dists/jammy/InRelease
E:获取失败http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease
E:获取失败http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease
E:获取失败http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease
E:获取失败https://dl.google.com/linux/chrome/deb/dists/stable/InRelease
E:部分索引文件下载失败。它们已被忽略或使用旧文件代替。

17:07:09:0735 Gs  not handling error failed for action refresh: E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/dists/jammy/InRelease  
E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  
E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  
E: Failed to fetch https://dl.google.com/linux/chrome/deb/dists/stable/InRelease  
E: Some index files failed to download. They have been ignored, or old ones used instead.

我已连接到互联网(在上述笔记本电脑上写下这个问题)

我谷歌了一下,看到有人建议停止并刷新 snap-store(sudo snap refresh snap-store)。没用。然后我看到有人建议卸载 snap-store 并重新安装(sudo snap remove snap-storesudo snap install snap-store)。所以我照做了。显然,这删除了上面配置的一些存储库。现在我看到这个错误:

17:09:59:0693 Gs  not handling error failed for action refresh: E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  
E: Some index files failed to download. They have been ignored, or old ones used instead.

还有其他建议吗?另外,我该如何重新添加存储库?

更新:我尝试通过在 /etc 中搜索来找到存储库的定义位置,但出现以下错误:

grep:/etc/systemd/system/snap-snapdx2ddesktopx2dintegration-49.mount:没有此文件或目录 grep:/etc/systemd/system/snap-snapdx2ddesktopx2dintegration-83.mount:没有此文件或目录

grep: /etc/systemd/system/snap-gnomex2d42x2d2204-141.mount: No such file or directory
grep: /etc/systemd/system/snap-gtkx2dcommonx2dthemes-1535.mount: No such file or directory
grep: /etc/systemd/system/snap-gnomex2d3x2d38x2d2004-119.mount: No such file or directory
grep: /etc/systemd/system/snap-snapx2dstore-959.mount: No such file or directory
grep: /etc/systemd/system/snap-gnomex2d3x2d38x2d2004-143.mount: No such file or directory

相关内容