为wsl ubuntu 更换软件源
ubuntu默认的软件园在国外,国内访问就是龟速,严重影响使用!下面说说更换国内软件源的方法。
我们来切换到软件仓库的配置目录:
cd /etc/apt
备份原来的仓库配置
cp sources.list sources.list.back
使用nano文本编辑器打开配置文件:
nano sources.list
把光标放到第一行,按住ctrl加k清空文字;
然后复制新的仓库地址,见闻莫;
在命令窗口内鼠标右键执行粘贴操作,粘贴玩后可以用光标键浏览;
检查无误后按ctrl加x,在输入y回车保存配置文件
然后执行:
apt update
换源工作就完成了。
注:若命令无法执行,可在命令前加sudo或用su切到root账户操作。
地址,从中选一个即可
阿里云
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
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic- security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic- updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic- proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
这是一条分割线
中科大
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic- updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic- updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic- backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic- backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic- security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic- security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic- proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
这是一条分割线
清华
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic- proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
博主真是太厉害了!!!
不错不错,我喜欢看
怎么收藏这篇文章?
不错不错,我喜欢看 https://www.237fa.com/
想想你的文章写的特别好www.jiwenlaw.com
你的文章内容非常卖力,让人点赞。http://www.chugongfu.com
你的文章总是能给我带来欢乐,谢谢你!http://www.sf-mda.com
《“大”人物》动作片高清在线免费观看:https://www.jgz518.com/xingkong/52601.html
你的文章让我感受到了快乐,每天都要来看一看。 http://www.55baobei.com/S94gKZx63f.html
你的文章让我感受到了无尽的欢乐,谢谢分享。 https://www.4006400989.com/qyvideo/22262.html
《无你的第二个夏季(录影带版)》电影片高清在线免费观看:https://www.jgz518.com/xingkong/157657.html
你的文章让我学到了很多技能,非常实用。 https://www.yonboz.com/video/62844.html
你的文章充满了欢乐,让人忍不住一笑。 http://www.55baobei.com/aFP631c0yb.html