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

Ubuntu 源

时间:2015-05-24 18:42:33      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:

原文地址: 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

Ubuntu 源

标签:

原文地址:http://www.cnblogs.com/inthedark/p/4526104.html

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