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

Ubuntu 如何更换阿里源

时间:2018-11-12 17:48:37      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:ali   .com   阿里   uri   style   restrict   multi   res   bak   

#进入源地址

cd /etc/apt

#备份源文件

sudo cp sources.list sources.list.bak

#编辑

sudo vim /etc/apt/sources.list

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

#更新源

sudo apt-get update

#更新软件

sudo apt-get upgrade

ps:系统中没有 vim 时,sudo apt-get install vim-gtk

Ubuntu 如何更换阿里源

标签:ali   .com   阿里   uri   style   restrict   multi   res   bak   

原文地址:https://www.cnblogs.com/lmaster/p/9947028.html

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