Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1699528
  • 博文数量: 358
  • 博客积分: 2180
  • 博客等级: 大尉
  • 技术积分: 1810
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-17 13:47
文章分类

全部博文(358)

文章存档

2016年(17)

2015年(55)

2014年(9)

2013年(67)

2012年(181)

2011年(29)

分类: LINUX

2013-09-17 13:30:08

1. gedit /etc/apt/sources.list 写入一下内容:

点击(此处)折叠或打开

  1. deb http://mirrors.163.com/debian wheezy main non-free contrib
  2. deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
  3. deb-src http://mirrors.163.com/debian wheezy main non-free contrib
  4. deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free

  5. deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
  6. deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
2. 执行apt-get update 
3. 安装需要的软件

注: 寻找最优源的方法
  apt-spy工具可以用来查找最快的镜象源,安装使用方法如下:

点击(此处)折叠或打开

  1. apt-get install apt-spy
  2. apt-spy update
  3. apt-spy -d stable -t 1 -a asia

   apt-spy会生成一个列表位于/etc/apt/sources.list.d/apt-spy.list

   我们可以对照这个列表修改我们的源,保存后,apt-get update即可(如果出现 如:apt-spy.list 的第几行错误 ,注释掉那行就行了)。




 

阅读(1563) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~