The school has set up a cache server, so you don't have to say much about the benefits. Occasionally, it also brings some troubles.
If the source is updated every day like Ubuntu, the Cache Server often accesses the unupdated source file, causing a message similar to the following when updating the source:
Hit http://mirrors.163.comprecise-proposed/restricted translation-en
Hit http://mirrors.163.comprecise-proposed/Universe translation-en
Fetched 16.8 MB in 2 min 21 s (119 KB/s)
W: failed to fetchbzip2:/var/lib/APT/lists/partial/extras.ubuntu.com _ ubuntu_dists_precise_main_source_sourcesHash sum Mismatch
W: failed to fetchbzip2:/var/lib/APT/lists/partial/extras.ubuntu.com _ ubuntu_dists_precise_main_binary-amd64_PackagesHash sum Mismatch
W: failed to fetchbzip2:/var/lib/APT/lists/partial/extras.ubuntu.com _ ubuntu_dists_precise_main_binary-i386_PackagesHash sum Mismatch
W: failed to fetchbzip2:/var/lib/APT/lists/partial/mirrors.163.com _ ubuntu_dists_precise_restricted_source_sourcesHash sum Mismatch
W: failed to fetchbzip2:/var/lib/APT/lists/partial/mirrors.163.com _ ubuntu_dists_precise-updates_main_binary-i386_PackagesHash sum Mismatch
W: failed to fetchbzip2:/var/lib/APT/lists/partial/mirrors.163.com _ ubuntu_dists_precise-proposed_universe_binary-amd64_PackagesHash sum Mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
This embarrassing situation can be solved by using the goagent agent.
1. Enable the goagent agent
Installation & Configuration tutorial http://code.google.com/p/goagent/
Registration and activation are actually completed in windows, which is relatively simple. After configuration, copy it to Linux. Note that the execution permission is added to the folder.
The simple method is chmod 777 goagent-*-R.
Pay special attention to the configuration of the runtime environment in Ubuntu:
Sudo apt-Get install Python
Sudo apt-Get install Python-Dev
Sudo apt-Get install Python-appindicator
Sudo apt-Get install Python-VTE
2. Run goagent
Execute commands such as goagent-goagent-291bebf/local/Proxy. py
Note: you only need to enter the script name to run the Python script.
3. The running interface is displayed as follows, indicating that the startup is successful. Do not close this command window:
4. Enable another terminal to update the source:
Run the following command: sudo apt-get-O acquire: http: proxy = "http: // 127.0.0.1: 8087/" Update
Running Effect. Execution successful:
Many things are not explained anymore... Have fun!