删除 Snap Store 后无法重新安装

删除 Snap Store 后无法重新安装

我的系统

snap version
 
snap    2.54.4
snapd   2.54.4
series  16
ubuntu  21.10
kernel  5.13.0-39-generic

uname -a

Linux 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/lsb-release 

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.10
DISTRIB_CODENAME=impish
DISTRIB_DESCRIPTION="Ubuntu 21.10"

我可以从命令行安装所有 snap 包,但 snap-store 除外,因为它无法完成配置钩子任务

sudo snap install snap-store
INFO Waiting for automatic snapd restart...
error: cannot perform the following tasks:
- Run configure hook of "snap-store" snap if present (run hook "configure": sanity timeout expired: Interrupted system call)

我尝试过以不同的方式安装商店,但都以相同的方式失败

sudo snap install snap-store --candidate
sudo snap install snap-store --beta
snap install snap-store --ignore-running --ignore-validation --no-wait

我甚至尝试重新安装 snap 环境

sudo apt purge snapd
sudo apt install -y snapd
sudo snap install snap-store

error: cannot perform the following tasks:
- Run configure hook of "snap-store" snap if present (run hook "configure": sanity timeout expired: Interrupted system call)

我启用了 snapd 调试。以下是尝试安装 snap-store 时的日志输出

SNAPD_DEBUG=1
sudo snap install snap-store
journalctl -u snapd

snapd[23547]: api_snaps.go:307: Installing snap "snap-store" revision unset
snapd[23547]: taskrunner.go:271: [change 5 "Run configure hook of \"snap-store\" snap if present" task] failed: run hook "configure": sanity timeout expired: Interrupted system c>
snapd[23547]: handlers.go:644: Reported install problem for "snap-store" as

感谢帮助!

相关内容