Ubuntu换中国源

以前用了他人详细介绍的在sources中GUI改动源,从英国的转到我国的源,但是里边的包免费下载速率都不太好,安裝一个git都能整一个钟头。并且沒有阿里巴巴源和清华大学源。只有手动式换一个:
在这里插入图片描述
在换了阿里巴巴源以后,免费下载安裝都快多了!
在这里插入图片描述

最先在进到Ubuntu的情况下别进到游人方式,否则会出現沒有管理权限改动不上sources.list的状况。备份数据,开启sources.list
或是桌面上开启终端设备,实行指令备份数据:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

实行指令开启文档:

sudo gedit /etc/apt/sources.list 
删掉里边的內容,黏贴阿里巴巴源和清华大学源在其中随意一个,储存(留意,假如沒有安裝VMTool,是没法开展黏贴拷贝)
阿里巴巴源:
deb ubuntu/ xenial main restricted universe multiversedeb ubuntu/ xenial-security main restricted universe multiversedeb ubuntu/ xenial-updates main restricted universe multiversedeb ubuntu/ xenial-proposed main restricted universe multiversedeb ubuntu/ xenial-backports main restricted universe multiversedeb-src ubuntu/ xenial main restricted universe multiversedeb-src ubuntu/ xenial-security main restricted universe multiversedeb-src ubuntu/ xenial-updates main restricted universe multiversedeb-src ubuntu/ xenial-proposed main restricted universe multiversedeb-src ubuntu/ xenial-backports main restricted universe multiverse

清华大学源:

deb ubuntu/ bionic main restricted universe multiversedeb-src ubuntu/ bionic main restricted universe multiversedeb ubuntu/ bionic-updates main restricted universe multiversedeb-src ubuntu/ bionic-updates main restricted universe multiversedeb ubuntu/ bionic-backports main restricted universe multiversedeb-src ubuntu/ bionic-backports main restricted universe multiversedeb ubuntu/ bionic-security main restricted universe multiversedeb-src ubuntu/ bionic-security main restricted universe multiversedeb ubuntu/ bionic-proposed main restricted universe multiversedeb-src ubuntu/ bionic-proposed main restricted universe multiverse
升级源
在终端设备中实行指令,进行换源:
sudo apt update

文中连接: news_show_411697.aspx   共享到: 腾迅 新浪网 每个人网 电子邮件 个人收藏夹 拷贝网站地址 大量



扫描二维码分享到微信