Ubuntu 16.04 Configuration Domestic high-speed Apt-get update source

Source: Internet
Author: User
Tags aliyun

Ubuntu 16.04 download software speed is a bit slow, because the default is to download software from abroad, then replace the domestic relatively good fast update source (that is, the server where these software), General direct Baidu Ubuntu Update source can come out a lot, At this time it is best to find and their own version of Ubuntu consistent update source, my Ubuntu version is 16.04, below is I found a better update source.

1. Find the domestic mirror source

https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/


2. Configure Source list sources

Sources.list system comes with, the source is to Ubuntu's official website! The installation package is slow, so it's best to switch to domestic

[Email protected]:~$ cd/etc/apt

[Email protected]:/etc/apt$ sudo cp sources.list Sources.list.bak

[Email protected]:/etc/apt$ vim sources.list

# default comment source image to improve apt update speed, if necessary, can be self-uncomment

Deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial main restricted universe multiverse

Deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-updates main restricted universe multiverse

# deb-src Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-updates main restricted universe multiverse

Deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-backports main restricted universe multiverse

# deb-src Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-backports main restricted universe multiverse

Deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-security main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-security main restricted universe multiverse

# Pre-release software source, not recommended to enable

# deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-proposed main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-proposed main restricted universe multiverse

3. Update the source

[Email protected]:/etc/apt$ sudo apt-get update

Hit: 1 Http://mirrors.aliyun.com/ubuntu xenial inrelease

Hit: 2 Http://mirrors.aliyun.com/ubuntu xenial-updates inrelease

Hit: 3 Http://mirrors.aliyun.com/ubuntu xenial-backports Inrelease

Hit: 4 Http://mirrors.aliyun.com/ubuntu xenial-security Inrelease

Reading Package List ... Complete

Test: Install the SL package

[Email protected]:/etc/apt$ sudo apt-get install SL

[Email protected]:/etc/apt$ SL

4. Some other commands

sudo apt-get update source

sudo apt-get install package

sudo apt-get Remove Package

sudo Apt-cache search Package

sudo apt-cache Show package get information about packages, such as description, size, version, etc.

sudo apt-get install package--reinstall Reinstall packages

sudo apt-get-f Install repair installation

sudo apt-get Remove package--purge Delete packages, including configuration files, etc.

sudo apt-get BUILD-DEP Package Installation-related compilation environment

sudo apt-get upgrade update installed packages

sudo apt-get Dist-upgrade upgrade system

The sudo apt-cache depends package understands that using the package depends on those packages

sudo apt-cache rdepends package to see which packages are dependent on the package

sudo apt-get source package downloads The source code for the bundle

sudo apt-get clean && sudo apt-get autoclean cleanup of useless packages

sudo apt-get check to see if there is a corrupted dependency


Ubuntu 16.04 Configuration Domestic high-speed Apt-get update source

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.