修改树莓派更新源及设置代理配置
作者:互联网
更新源
默认树莓派的更新源使用的是英国的源,速度奇慢;改成国内树莓派的更新源方法,看下边:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old 在这里找到适合国内的更新源,我一般使用的是中科大的源
sudo nano /etc/apt/sources.list
deb http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian wheezy main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi Ctrl + X确认并保存
sudo apt-get update sudo apt-get upgrade |
代理设置
有时候上网需要设定代理,方法看这边:
cd /etc/apt/apt.conf.d
sudo nano 10proxy
sudo nano /etc/apt/apt.conf.d/10proxy
Acquire::http::Proxy "http://web-proxy.corp.xx.com:8080";
Acquire::http::Proxy "http://username:password@yourproxyaddress:proxyport/"; Ctrl + X确认并保存,然后查看树莓派是否可以在代理下上网 |
Andy Yang
2015.09.22
转载于:https://www.cnblogs.com/zygoses2gether/p/4829515.html
标签:树莓,http,sudo,代理,apt,etc,源及,raspbian 来源: https://blog.csdn.net/weixin_30500289/article/details/96824698