Linux实战5——替换Linux Mint/Ubuntu的更新源
1、首先备份操作系统先有的源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup //(备份下当前的源列表)
sudo gedit /etc/apt/sources.list
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
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
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
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
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
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
sudo apt-get update