ubuntu 14.04 16.04 18.04 use Alibaba source

   Copyright statement: The original articles on this blog cannot be used for commercial purposes or traditional media without my permission. Please indicate the source for reprinting online media, otherwise it is an infringement. https://blog.csdn.net/bin_zhang1/article/details/81008645

First back up the original sources.list

cp /etc/apt/sources.list /etc/apt/sources.list.bak

Then modify sources.list

sudo vi /etc/apt/sources.list

Then replace the content in sources.list with the corresponding content according to your version
Ubuntu 14.04.5 LTS

deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

## Not recommended
# deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

ubuntu 16.04 is configured as follows

deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main

deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

ubuntu 18.04 is configured as follows

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

Last update

sudo apt-get update

Recommended Posts

ubuntu 14.04 16.04 18.04 use Alibaba source
Ubuntu use notes
ubuntu zip/unzip use
ubuntu replacement source
Ubuntu update software source
Use supervisor in ubuntu
Ubuntu make offline source
Use iptables under ubuntu
Use of Anaconda in Ubuntu
Use sublime tex under ubuntu
Use of mediawiki under ubuntu
Use virtualbox to deploy ubuntu
How to use hanlp in ubuntu
Use QQ under Ubuntu 13.10, suitable for 14.10
Use disk quota in ubuntu multi-user
Android source code compilation (ubuntu16.04 64-bit)
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Ubuntu 20.04 use must install tool software
Ubuntu configuration source and installation software
Use Ubuntu 16.04 for initial server setup
Use mendeley to insert references under ubuntu
How to replace apt-get source on Ubuntu 18.04
Ubuntu18.04 Server version installation and use (graphic)
How to use Samba server on Ubuntu 16.04
Installation and use of Win10 subsystem Ubuntu
Install Zimbra Open Source Edition on Ubuntu 14.04
Download OpenJDK11 source code in Ubuntu environment
How to modify software source in Ubuntu 7.10
Use python3 to install third on ubuntu
Ubuntu 18.04 install Odoo14 tutorial through source code
windows use ubuntu to start linux service
Edit OpenJDK11 source code in Ubuntu environment