1.首先管理员模式打卡powershell,执行
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
2.执行 wsl --update
wsl --set-version 2
wsl --install -d Ubuntu-20.04
wsl -l -v
sudo passwd
https://www.litreily.top/2020/05/08/putty-wsl/
#更新ca证书
sudo apt-get update
sudo apt-get upgrade ca-certificates
vi /etc/profile
export https_proxy=http://192.168.3.139:7890
export http_proxy=http://192.168.3.139:7890
DFX_VERSION=0.15.2 sh -ci “$(curl -fsSL https://internetcomputer.org/install.sh)”
dfx ping ic
dfx --version