本文主要是介绍Ubuntu 18.04换阿里源,轻松一键换源,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
爱我的话你都说,爱我的事你不做,我来做一做爱读者的事情,换源何必用VIM找网站搞半天,一行命令解决一切。
命令如下,请复制粘贴享受。
bash <(curl -sL https://bash.liuwenwen.net/changesource.sh)
换个其他窗口学习点其他知识珍惜时间,静等换源结束,其实十几秒应该也差不多了。
附具体脚本内容:
sudo tee /etc/apt/sources.list <<-'EOF'
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
EOF
sudo apt update
这篇关于Ubuntu 18.04换阿里源,轻松一键换源的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!