软件源更改
备份原配置
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
查看版本号
lsb_release -a
修改文件
1
sudo vi /etc/apt/sources.list
#stretch 版本
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
#wheezy 版本
#清华
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
2
sudo vi /etc/apt/sources.list.d/raspi.list
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui
其他源
中国科学技术大学
Raspbian http://mirrors.ustc.edu.cn/raspbian/raspbian/
阿里云
Raspbian http://mirrors.aliyun.com/raspbian/raspbian/
清华大学
Raspbian http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/
华中科技大学
Raspbian http://mirrors.hustunique.com/raspbian/raspbian/
Arch Linux ARM http://mirrors.hustunique.com/archlinuxarm/
华南农业大学(华南用户)
Raspbian http://mirrors.scau.edu.cn/raspbian/
大连东软信息学院源(北方用户)
Raspbian http://mirrors.neusoft.edu.cn/raspbian/raspbian/
重庆大学源(中西部用户)
Raspbian http://mirrors.cqu.edu.cn/Raspbian/raspbian/
更新系统
sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade ; sudo rpi-update
更改pip源
新建~/.pip/pip.conf文件,写入其地址。阿里云、中科大、豆瓣等都有pip源。
[global]
index-url = http://pypi.douban.com/simple/
安装中文字体
sudo apt-get install ttf-wqy-zenhei ttf-wqy-microhei
sudo raspi-config