我在我的WSL Ubuntu 18.04安装中遇到了apt问题。每当我尝试使用apt安装软件包时,我都会得到以下错误提示:
我相信snapd/snappy是罪魁祸首,但我一直没有找到解决办法。据我所知,WSL不支持snapd,并且我猜它是在更新中被安装的。
我希望能找到一个解决方案,而不需要重新安装整个系统并花费数小时重新设置所有内容。
提前感谢您的帮助。
编辑:原始输出来自
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required: [...]
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/snappy是罪魁祸首,但我一直没有找到解决办法。据我所知,WSL不支持snapd,并且我猜它是在更新中被安装的。
我希望能找到一个解决方案,而不需要重新安装整个系统并花费数小时重新设置所有内容。
提前感谢您的帮助。
编辑:原始输出来自
apt --version
是apt 1.6.8 (amd64)
。升级到1.7.0 (amd64)
似乎没有解决这个问题。
dpkg
。从 https://packages.ubuntu.com/ 下载所需的软件包,然后手动安装它。你还应该将apt --version
的输出添加到你的问题中。 - Melebiusapt 1.6.8 (amd64)
,所以我下载并升级到了apt 1.7.0 (amd64)
,在解决了依赖问题之后,我仍然遇到了一些困难。 - 173467321476C