Deepin 15.4 更改为 阿里云源

时间:2024-03-03 15:25:54

自带的 软件包源 不好用,卡顿严重,准备替换它:

方式一:deepin linux 如何更新或者更换软件源(注意:好像不起作用)

方式二:【推荐利用 阿里云 提供的镜像快速更换本地的 yum 源 (CentOS/Ubuntu/Deepin 等系统都被支持),点击右边的“help”,会告诉你如何替换为“阿里云源”

方式三:替换为 “中国科学技术大学”源

sudo vim /etc/apt/sources.list

把其中的 “http://packages.deepin.com”替换为“http://mirrors.ustc.edu.cn”

最后,更新源

sudo apt-get update

 

个人电脑 /etc/apt/sources.list 文件的最终效果

“中国科学技术大学”源 和 阿里云源 混合用

deb http://mirrors.aliyun.com/ubuntu raring main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu raring-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu raring-updates main restricted universe multiverse
# deb http://mirrors.aliyun.com/ubuntu raring-proposed main restricted universe multiverse
# deb http://mirrors.aliyun.com/ubuntu raring-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu raring main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu raring-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu raring-updates main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu raring-proposed main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu raring-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/deepin raring main universe non-free
deb-src http://mirrors.aliyun.com/deepin raring main universe non-free
#deb http://mirrors.aliyun.com/deepin raring-updates main universe non-free
#deb-src http://mirrors.aliyun.com/deepin raring-updates main universe non-free





## Generated by deepin-installer
deb [by-hash=force] http://mirrors.ustc.edu.cn/deepin panda main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/deepin panda main contrib non-free