如何更改APT软件源
Tofloor
poster avatar
markson
deepin
2017-02-25 05:49
Author
系统默认的软件源很慢,而控制中心只能改系统更新时用的软件源。因此,在这里讲讲怎么替换APT默认软件源。

首先我们需要Root权限,打开终端输入:
sudo su
输入密码后我们就在终端进入了root用户。

输入 gedit打开文本编辑器。
打开 /etc/apt/sources.list
以替换为清华大学的软件源为例,我们在现有官方源的链接上打上#号,这样APT就不会读取这行链接。
然后我们加上清华大学的软件源:
deb [by-hash=force] https://mirrors.tuna.tsinghua.edu.cn/deepin/ unstable main contrib non-free

然后关闭,在终端运行:apt update
官方给出的已有源链接:https://www.deepin.org/mirrors/packages/
PS:官方源里的Google Chrome更新比官方慢了一拍,所以我们可以建立一个文本文件,命名为google-chrome.list,把它保存在/etc/apt/sources.list.d里面,然后在里面填上
deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
Reply Favorite View the author
All Replies
avatar
markson
deepin
2017-02-25 05:54
#1
Google Chrome添加谷歌官方源后的信息
Reply View the author
avatar
mutong
deepin
2017-02-25 08:09
#2
标题改下,手动修改apt源,提高系统更新速度
Reply View the author
avatar
markson
deepin
2017-02-25 17:37
#3
https://bbs.deepin.org/post/135212
标题改下,手动修改apt源,提高系统更新速度

好像改不了标题了,就这样吧,搜索时搜得到这个帖子就行
Reply View the author
avatar
markson
deepin
2017-03-11 20:00
#4
注:此文针对15.3以下系统,15.4已经支持智能软件源
Reply View the author