Update source
The default Raspberry Pi update source uses the British source, the speed is very slow; change to the domestic Raspberry Pi Update source method, see below:
- Backing Up source list files
sudo cp/etc/apt/sources.list/etc/apt/sources.list.old Here to find suitable for domestic update source, I generally use is the source of Tsinghua
sudo nano/etc/apt/sources.list
- Delete the original content
Deb Http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian wheezy main contrib non-free RPI
- Modify to the following content
Deb Http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/wheezy main contrib Non-free RPI Ctrl + x confirm and save
- System Update (see if the speed is up)
sudo apt-get update sudo apt-get upgrade |
?
Proxy settings
Sometimes the internet needs to set up agents, methods to look this way:
Cd/etc/apt/apt.conf.d
- Create a new file named 10proxy
sudo nano 10proxy
sudo nano/etc/apt/apt.conf.d/10proxy
- If authentication is not required, the following formats can be
Acquire::http::P Roxy "http://web-proxy.corp.xx.com:8080";
- If authentication is required, follow the format below
Acquire::http::P Roxy "Http://username:[email protected]address:proxyport/"; Ctrl + x confirm and save and see if the Raspberry Pi can surf the internet under the agent |
?
Andy Yang
2015.09.22
Modify the Raspberry Pi Update source and set the agent configuration