今天在使用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
测试结果:亲测有效,软件成功安装。