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

ubuntu 18.04 更换源

时间:2020-04-20 13:23:40      阅读:79      评论:0      收藏:0      [点我收藏+]

标签:nbsp   class   span   multi   str   cti   备份   mirrors   bio   

1.备份原有的源文件  

cd /etc/apt/

sudo cp -p sources.list sources.list.bak

2.修改源文件

sudo vim sources.list

删除sources.list 文件中所有内容添加一下内容 保存退出。

 

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

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

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

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

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

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

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

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

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

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

 

3.

sudo  apt-get update 

 

ubuntu 18.04 更换源

标签:nbsp   class   span   multi   str   cti   备份   mirrors   bio   

原文地址:https://www.cnblogs.com/wanghuixi/p/12736969.html

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