After replacing the source in Ubuntu 12.04, the software installation is slow and some packages are damaged.

Source: Internet
Author: User

I have encountered problems and slow installation packages in Ubuntu recently. Replacing the source is the easiest and quickest solution. Of course, it is limited to some problems.
Record memo.

1. Back up the original file

Root permission is required for the following operations.

Cp/etc/apt/sources. list/etc/apt/sources. list. backup

2. Modify the source file

Cp/etc/apt/sources. list/etc/apt/sources. list. backup

3. Select an appropriate source to replace the content in the original file:

163 source

Deb http://mirrors.163.com/ubuntu/ precise main restricted
Deb-src http://mirrors.163.com/ubuntu/ precise main restricted
Deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
Deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
Deb http://mirrors.163.com/ubuntu/ precise universe
Deb-src http://mirrors.163.com/ubuntu/ precise universe
Deb http://mirrors.163.com/ubuntu/ precise-updates universe
Deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
Deb http://mirrors.163.com/ubuntu/ precise multiverse
Deb-src http://mirrors.163.com/ubuntu/ precise multiverse
Deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
Deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
Deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
Deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ precise-security main restricted
Deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
Deb http://mirrors.163.com/ubuntu/ precise-security universe
Deb-src http://mirrors.163.com/ubuntu/ precise-security universe
Deb http://mirrors.163.com/ubuntu/ precise-security multiverse
Deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
Deb http://extras.ubuntu.com/ubuntu precise main
Deb-src http://extras.ubuntu.com/ubuntu precise main
Sohu source

Deb http://mirrors.sohu.com/ubuntu/ precise main restricted
Deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted
Deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
Deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
Deb http://mirrors.sohu.com/ubuntu/ precise universe
Deb-src http://mirrors.sohu.com/ubuntu/ precise universe
Deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
Deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
Deb http://mirrors.sohu.com/ubuntu/ precise multiverse
Deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
Deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
Deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
Deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
Deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
Deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted
Deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted
Deb http://mirrors.sohu.com/ubuntu/ precise-security universe
Deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe
Deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse
Deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse
Deb http://extras.ubuntu.com/ubuntu precise main
Deb-src http://extras.ubuntu.com/ubuntu precise main

4. Update source

Apt-get update

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.