WSL
1. 安装
- 查看可用的Linux发行版本
wsl --list --online - 安装指定版本
wsl --install -d Ubuntu-22.04 - 重启
- 输入用户名username, 输入密码 password, 重复密码 retype password
- 在文件管理器地址栏输入
\\wsl$, 查看已安装版本 win+R运行%userprofile%, 创建.wslconfig文件, 配置代理[experimental] networkingMode=mirrored dnsTunneling=true firewall=true autoProxy=true
2. sources.list
配置软件镜像源
2.1. 阿里云镜像源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
2.2. 清华大学镜像源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
2.3. 中科大镜像源
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
2.4. 华为源地址
deb <https://repo.huaweicloud.com/ubuntu/> focal main restricted
deb <https://repo.huaweicloud.com/ubuntu/> focal-updates main restricted
deb <https://repo.huaweicloud.com/ubuntu/> focal universe
deb <https://repo.huaweicloud.com/ubuntu/> focal-updates universe
deb <https://repo.huaweicloud.com/ubuntu/> focal-backports main restricted universe
deb <https://repo.huaweicloud.com/ubuntu/> focal-security main restricted
deb <https://repo.huaweicloud.com/ubuntu/> focal-security universe
2.5. 163源地址
deb <http://mirrors.163.com/ubuntu/> bionic main restricted universe multiverse
deb <http://mirrors.163.com/ubuntu/> bionic-security main restricted universe multiverse
deb <http://mirrors.163.com/ubuntu/> bionic-updates main restricted universe multiverse
deb <http://mirrors.163.com/ubuntu/> bionic-proposed main restricted universe multiverse
deb <http://mirrors.163.com/ubuntu/> bionic-backports main restricted universe multiverse
deb-src <http://mirrors.163.com/ubuntu/> bionic main restricted universe multiverse
deb-src <http://mirrors.163.com/ubuntu/> bionic-security main restricted universe multiverse
deb-src <http://mirrors.163.com/ubuntu/> bionic-updates main restricted universe multiverse
deb-src <http://mirrors.163.com/ubuntu/> bionic-proposed main restricted universe multiverse
deb-src <http://mirrors.163.com/ubuntu/> bionic-backports main restricted universe multiverse
3. 重装
wsl --uninstall
wsl --install Ubuntu