码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu 20.04 更换阿里源

时间:2021-04-19 15:25:14      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:rop   deb   date   sed   src   保存   打开文件   ubuntu   更换   

Ubuntu 20.04 更换阿里源

sudo cd /etc/apt/sources.list /etc/apt/sources.list.b // 备份原始文件

sudo chmod 777 /etc/apt/sources.list  // 修改文件权限

sudo vi /etc/apt/sources.list // 用 vim 打开文件

复制下面内容到文件里

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

保存后更新

sudo apt update

完成

Ubuntu 20.04 更换阿里源

标签:rop   deb   date   sed   src   保存   打开文件   ubuntu   更换   

原文地址:https://www.cnblogs.com/wheatus/p/14669245.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!