windows10子系统安装软件时提示Could not read response to hello message from hook解决办法

今天在使用WSL子系统安装软件时遇到如下问题:

提示: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

解决办法:删除apt相关配置文件

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

测试结果:亲测有效,软件成功安装。

猜你喜欢

转载自blog.csdn.net/fangye945a/article/details/107724328