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

ubuntu apt 换源

时间:2019-08-14 12:14:38      阅读:1012      评论:0      收藏:0      [点我收藏+]

标签:ali   install   back   uri   color   镜像   source   security   成功   

修改配置文件/etc/apt/sources.list

内容替换为

阿里镜像源

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

执行,正常则表示成功

apt-get update

安装tree,用于查看目录

apt-get install tree

 

ubuntu apt 换源

标签:ali   install   back   uri   color   镜像   source   security   成功   

原文地址:https://www.cnblogs.com/huay/p/11351064.html

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