Solve the error of updating the source hash sum mismatch in Ubuntu in the school network environment.

Source: Internet
Author: User
Tags goagent

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.