1. Backup Source list
sudo CP /etc/apt/sources.list/etc/apt/sources.list.backup
2. Open the Source list
sudo gedit/etc/apt/sources.list
3. Clear the original content, add a new source address
It is recommended to use the source of Tsinghua University open source software image station
16.04
# Default Annotated source image to improve apt update speed, if necessary, can 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 multiverseDeb 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 multiverseDeb 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 multiverseDeb 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
14.04
# Default Annotated source image to improve apt update speed, if necessary, can self-uncomment deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty main restricted universe multiverse# DEB-SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty main restricted universe multiverseDeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty-updates main restricted universe multiverse# DEB-SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty-updates main restricted universe multiverseDeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty-backports main restricted universe multiverse# DEB-SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty-backports main restricted universe multiverseDeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty-security main restricted universe multiverse# DEB-SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty-security main restricted universe multiverse# Pre-release software source, not recommended to enable # Deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty-proposed main restricted universe multiverse# DEB-SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/trusty-proposed main restricted universe multiverse
Ubuntu Change Source Address List