一。修改root密码
pi@raspberrypi:~ $ sudo passwd root
New password: #在这输入你要设置的密码
Retype new password: #在输一遍你要设置的密码
passwd: password updated successfully #设置成功
二。修改更新源
pi@raspberrypi:~ $ su root #切换到root用户
Password: #输入root的密码
root@raspberrypi:/home/pi# echo "deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib rpi" >/etc/apt/sources.list
root@raspberrypi:/home/pi# echo "deb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib rpi" >>/etc/apt/sources.list
root@raspberrypi:/home/pi# apt-get update #获取更新
root@raspberrypi:/home/pi# apt-get upgrade #更新系统