首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

Linux实战五——替换Linux Mint/Ubuntu的更新源

2013-01-06 
Linux实战5——替换Linux Mint/Ubuntu的更新源1、首先备份操作系统先有的源列表sudo cp /etc/apt/sources.lis

Linux实战5——替换Linux Mint/Ubuntu的更新源
1、首先备份操作系统先有的源列表

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup  //(备份下当前的源列表)


2、修改更新源
sudo gedit /etc/apt/sources.list


3、把里面的列表替换成下面的列表

3.1 163源
deb http://mirrors.163.com/ubuntu/ precise main restricteddeb-src http://mirrors.163.com/ubuntu/ precise main restricteddeb http://mirrors.163.com/ubuntu/ precise-updates main restricteddeb-src http://mirrors.163.com/ubuntu/ precise-updates main restricteddeb http://mirrors.163.com/ubuntu/ precise universedeb-src http://mirrors.163.com/ubuntu/ precise universedeb http://mirrors.163.com/ubuntu/ precise-updates universedeb-src http://mirrors.163.com/ubuntu/ precise-updates universedeb http://mirrors.163.com/ubuntu/ precise multiversedeb-src http://mirrors.163.com/ubuntu/ precise multiversedeb http://mirrors.163.com/ubuntu/ precise-updates multiversedeb-src http://mirrors.163.com/ubuntu/ precise-updates multiversedeb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-security main restricteddeb-src http://mirrors.163.com/ubuntu/ precise-security main restricteddeb http://mirrors.163.com/ubuntu/ precise-security universedeb-src http://mirrors.163.com/ubuntu/ precise-security universedeb http://mirrors.163.com/ubuntu/ precise-security multiversedeb-src http://mirrors.163.com/ubuntu/ precise-security multiversedeb http://extras.ubuntu.com/ubuntu precise maindeb-src http://extras.ubuntu.com/ubuntu precise main


deb ftp://mirrors.ustc.edu.cn/linuxmint/ maya main upstream importdeb http://mirrors.163.com/ubuntu/ precise main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiversedeb http://archive.canonical.com/ubuntu/ precise partnerdeb http://packages.medibuntu.org/ precise free non-free


3.2 sohu源
deb http://mirrors.sohu.com/ubuntu/ precise main restricteddeb-src http://mirrors.sohu.com/ubuntu/ precise main restricteddeb http://mirrors.sohu.com/ubuntu/ precise-updates main restricteddeb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricteddeb http://mirrors.sohu.com/ubuntu/ precise universedeb-src http://mirrors.sohu.com/ubuntu/ precise universedeb http://mirrors.sohu.com/ubuntu/ precise-updates universedeb-src http://mirrors.sohu.com/ubuntu/ precise-updates universedeb http://mirrors.sohu.com/ubuntu/ precise multiversedeb-src http://mirrors.sohu.com/ubuntu/ precise multiversedeb http://mirrors.sohu.com/ubuntu/ precise-updates multiversedeb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiversedeb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiversedeb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ precise-security main restricteddeb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricteddeb http://mirrors.sohu.com/ubuntu/ precise-security universedeb-src http://mirrors.sohu.com/ubuntu/ precise-security universedeb http://mirrors.sohu.com/ubuntu/ precise-security multiversedeb-src http://mirrors.sohu.com/ubuntu/ precise-security multiversedeb http://extras.ubuntu.com/ubuntu precise maindeb-src http://extras.ubuntu.com/ubuntu precise main


3.3 ubuntu.cn99.com源(推荐):
deb http://ubuntu.cn99.com/ubuntu/ precise main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ precise-updates main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ precise-security main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ precise-backports main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu-cn/ precise main restricted universe multiverse


3.4 教育网源
如果你是在校学生,可以使用校园网/教育网,更新速度更快。

#3.4.1 电子科技大学
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiversedeb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiversedeb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiversedeb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiversedeb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiversedeb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiversedeb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiversedeb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiversedeb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiversedeb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse


#3.4.2 中国科技大学

deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiversedeb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiversedeb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiversedeb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiversedeb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiversedeb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiversedeb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiversedeb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiversedeb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiversedeb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse


#3.4.3 北京理工大学
deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universedeb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universedeb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universedeb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universedeb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universedeb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universedeb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universedeb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universedeb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universedeb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe


4、更新源
sudo apt-get update

热点排行