赞
踩
wsl --install -d Ubuntu-24.04
wsl --export Ubuntu-24.04 D:\tmp\Ubuntu-24.04.tar
wsl --unregister Ubuntu-24.04
F:\VirtualPCs\Ubuntu-24.04
目录,wsl --import Ubuntu-24.04 F:\VirtualPCs\Ubuntu-24.04 D:\tmp\Ubuntu-24.04.tar
wsl
exit
wsl --shutdown -d Ubuntu-24.04
20240427时点,清华大学还不支持24.04 LTS:https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
mv /etc/apt/sources.list /etc/apt/sources.list.bak
cat << EOF > /etc/apt/sources.list
deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
# deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
EOF
refer: https://developer.aliyun.com/mirror/ubunt
sudo apt update && sudo apt upgrade
完结!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。