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

ubuntu18 修改apt-get 源

时间:2020-09-17 22:56:00      阅读:41      评论:0      收藏:0      [点我收藏+]

标签:ror   edit   shu   ted   port   替换   mirror   yun   uri   

引用 http://jianshu.com

1.备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2.修改
sudo gedit /etc/apt/sources.list

3.替换内容

阿里云源

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

4.更新
sudo apt-get update

ubuntu18 修改apt-get 源

标签:ror   edit   shu   ted   port   替换   mirror   yun   uri   

原文地址:https://www.cnblogs.com/rainouyang/p/13656421.html

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