Linux换源
前言
最近学校的ipv6坏了,导致从deepin本身获取的源速度极慢,笔者实在忍无可忍,随后在同学指导下换了清华大学ipv4的源
步骤
sudo gedit /etc/apt/sources.list
将文件中原本的deepin源(其他debian和ubuntu系也是如此)进行修改
原来的:
## Generated by deepin-installer
deb [by-hash=force] http://packages.deepin.com/deepin unstable main contrib non-free
#deb-src http://packages.deepin.com/deepin unstable main contrib non-free
改成:
## Generated by deepin-installer
deb [by-hash=force] http://mirrors4.tuna.tsinghua.edu.cn/deepin unstable main contrib non-free
#deb-src http://packages.deepin.com/deepin unstable main contrib non-free
然后在
sudo apt-get update
tips
不过还是有一个不成熟的小建议,如果教育网内,能用ipv6还是用ipv6吧