ubuntu12.04配置apt-get更新源

创作背景:

        之前写过 ubuntu14为例 配置apt-get更新源

         https://blog.csdn.net/frdevolcqzyxynjds/article/details/105040267       

 

现在这篇是 ubuntu12.04配置apt-get更新源

 


下面开始

操作目录

1、先备份好系统自带的源列表

2、修改源列表文件

3、刷新源列表


1、先备份好系统自带的源列表

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

 

2、修改源列表文件

vim /etc/apt/sources.list
# 阿里源:

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

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

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

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

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

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

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

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

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

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

 

3、刷新源列表

sudo apt-get update

 

 


参考链接

       http://www.gzidc.com/FrontCms/getHelpArticleShow/cat_id/135/art_id/875.html

 

 

 

 

 

你可能感兴趣的:(Linux)