教小白轻松更换WSL2源(ubuntu可用源)
前言
前几天捣鼓WSL2安装了一个ubuntu20,现在记录一下换源的简单操作
使用
先备份原来的配置文件
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
新建源配置文件
sudo vi /etc/apt/sources.list
ubuntu源
deb http://cn.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
##測試版源
deb http://cn.archive.ubuntu.com/ubuntu/ focal-proposed main restricted universe multiverse
# 源碼
deb-src http://cn.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
##測試版源
deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-proposed main restricted universe multiverse
更新
apt update
apt upgrade
版权声明:
作者:ivpsr.com
链接:https://ivpsr.com/2467.html
文章版权归作者所有,未经允许请勿转载。
THE END