我试图在Windows 10的Linux Bash Shell中更新python3
。
这是我尝试过的方法:
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
但我收到了以下错误:
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Errors were encountered while processing:
ghc
E: Sub-process /usr/bin/dpkg returned an error code (1)
我还尝试搜索了一下,看它是否会覆盖我的Python 3.4并使其无法访问,例如删除它并安装3.6版本,但没有找到结果。
这里有一个安全的升级python3
的方法吗?
[编辑]
将shell升级到16.04后,使用do-release-upgrade
,错误消失了。您可以按照此链接进行更新。