Ubuntu12.04apt-getupdateerror

Source: Internet
Author: User
Problem Description: W: Failedtofetchbzip2: varlibaptlistspartialsecurity.ubuntu.com _ ubuntu_dists_precise-security_main_source_SourcesHashSummismatch

Solution:

① Switch to the root account first

Su root

② Run the command vi/etc/apt. conf. d/00aptitude to open the file.

Acquire: CompressionTypes: Order "gz ";

Paste the above sentence to the end of the file and exit vi.

③ Sudo apt-get update

(Source: ubuntu.cnssuestc.org. this is the best server selected in system settings-> software souces. the software souces of ubuntu12.04 can be found in the edit of the software center, if the best server cannot find this source, I directly edited/etc/apt/sources. list file, sudo sed-I's/***/ubuntu.cnssuestc.org/g'/etc/apt/sources. list, ** content depends on the sources before modification. list)

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.