1. 编辑文件:sudo vi /etc/apt/sources.list
2. 添加国内清华大学的源,内容如下:
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
3. 然后sudo apt-get update一下
原文地址:http://blog.csdn.net/bnanoou/article/details/43448573