Ubuntu 源

原文地址: Ubuntu 12.04添加源

sudo vim /etc/apt/sources.list

#网易163  
deb http://mirrors.163.com/ubuntu/ precise main restricted  
deb-src http://mirrors.163.com/ubuntu/ precise main restricted  
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted  
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted  
deb http://mirrors.163.com/ubuntu/ precise universe  
deb-src http://mirrors.163.com/ubuntu/ precise universe  
deb http://mirrors.163.com/ubuntu/ precise-updates universe  
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe  
deb http://mirrors.163.com/ubuntu/ precise multiverse  
deb-src http://mirrors.163.com/ubuntu/ precise multiverse  
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse  
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse  
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  
deb http://mirrors.163.com/ubuntu/ precise-security main restricted  
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted  
deb http://mirrors.163.com/ubuntu/ precise-security universe  
deb-src http://mirrors.163.com/ubuntu/ precise-security universe  
deb http://mirrors.163.com/ubuntu/ precise-security multiverse  
deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse  
  
#搜狐  
deb http://mirrors.sohu.com/ubuntu/ precise main restricted  
deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted  
deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted  
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted  
deb http://mirrors.sohu.com/ubuntu/ precise universe  
deb-src http://mirrors.sohu.com/ubuntu/ precise universe  
deb http://mirrors.sohu.com/ubuntu/ precise-updates universe  
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe  
deb http://mirrors.sohu.com/ubuntu/ precise multiverse  
deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse  
deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse  
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse  
deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse  
deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse  
deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted  
deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted  
deb http://mirrors.sohu.com/ubuntu/ precise-security universe  
deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe  
deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse  
deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse  
deb http://extras.ubuntu.com/ubuntu precise main  
deb-src http://extras.ubuntu.com/ubuntu precise main  
  
#电子科技大学  
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse  
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse  
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse  
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse  
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  
  
#中国科技大学  
deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse  
deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse  
deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  
deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse  
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse  
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  
  
#北京理工大学  
deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe  
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe  
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe  
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe  
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe  
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe  
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe  
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe  
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe  
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe  

然后sudo apt-get update,sudo apt-get upgrade若出现
W: 无法下载 bzip2:/var/lib/apt/lists/partial/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages Hash 校验和不符
这样的错误,则将/var/lib/apt/lists/下的文件清空
#sudo rm -vf /var/lib/apt/lists/*
#sudo apt-get update

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。