卸载 snapd 后 WSL 损坏

testoflow

当我输入:

sudo apt install zsh
>Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apparmor file liblzo2-2 libmagic-mgc libmagic1 libmpdec2 libpython3-stdlib libpython3.7-minimal libpython3.7-stdlib mime-support python3 python3-minimal python3.7
  python3.7-minimal squashfs-tools
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  zsh-common
Suggested packages:
  zsh-doc

E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true: Success

E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true: Success

每次我想安装一个软件包时它都会失败,所以我被卡住了。也许我应该重新安装所有东西。

我已经卸载snapd了,问题出现了。我正在使用一个Debian应用程序。

哈里姆克

您可以像这样手动删除错误的 apt 钩子:

sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf

(先备份。)

来源

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章