1、准备工作
给树莓派上电,打开putty,输入IP(如果树莓派网卡设置的自动获取,需要登录路由器查看树莓派IP地址)。
2、登录树莓派
点击连接,进入登录界面,输入账户:pi,密码:raspberry
3、编辑软件源地址
#sudo -s //切换到超级用户。
#cd /etc/apt //切换到该目录
#cp sources.list sources.list_backup //备份
#nano sources.list //进入编辑页面
添加软件源地址:
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://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
4、更新软件源
#apt-get update
#apt-get upgrade