e
首先进入WSL,执行cd /etc/apt。
然后再windows的C:\Users\%USERNAME%\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs目录下找到sources.list文件。用下列内容覆盖。
1  | deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  | 
接着,回到WSL,执行:
1  | sudo apt-get update # 更新源  |