windows上的wsl下载ubuntu即可。
参考:https://zhuanlan.zhihu.com/p/61542198

配置软件源

  1. #使用 root 权限登录,后续输入密码
  2. sudo -i
  3. #接下来备份当前源,输入以下命令
  4. cp /etc/apt/sources.list /etc/apt/sources.list.old
  5. #这个sources.list文件就是源文件,删除该文件,重新写一个
  6. rm /etc/apt/sources.list
  7. vim /etc/apt/sources.list
  8. # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
  9. deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
  10. deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
  11. deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
  12. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
  13. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
  14. deb http://mirrors.aliyun.com/ubuntu/ xenial universe
  15. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
  16. deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
  17. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
  18. deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
  19. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
  20. deb http://archive.canonical.com/ubuntu xenial partner
  21. deb-src http://archive.canonical.com/ubuntu xenial partner
  22. deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
  23. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
  24. deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
  25. deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
  26. sudo apt update #更新软件源
  27. sudo apt upgrade #更新软件包