刪除 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"

我可以從命令列安裝所有快照包,但快照儲存除外,因為它無法配置掛鉤任務

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

我甚至嘗試重新安裝快照環境

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 調試。這是嘗試安裝快照儲存時的日誌輸出

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

幫忙表示感謝!

相關內容