Ubuntu
Introduction to Ubuntu and Software Management
Ubuntu is a Debian-based Linux distribution that offers various versions, including desktop, server, and versions for IoT devices and robots. Ubuntu releases a new version every six months and a Long-Term Support (LTS) version every two years. The latest LTS version as of now is Ubuntu 22.04, codenamed "Jammy Jellyfish." Ubuntu is currently developed by the UK-based company Canonical and a community of developers. It follows a merit-based governance model, and Canonical provides security updates and support for each Ubuntu version from its release date until the specified End of Life (EOL) date.
Ubuntu uses the APT package management tool to manage DEB software packages. Specifically, Ubuntu manages system software sources by modifying the /etc/apt/sources.list
configuration file. In general, users can replace the default source address in this configuration file (i.e., http://archive.ubuntu.com/
) with the mirror source provided by this software mirror site.
Replacing Ubuntu Software Sources
To receive security updates promptly and prevent security patch delays due to source updates, we recommend using the official security update software sources.
To avoid problems when replacing software source configuration files, please make a backup of the system's default software source configuration files before proceeding.
- Based on your preference, copy the following software source configuration content to
/etc/apt/sources.list
and save it.
deb https://mirrors.hust.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.hust.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.hust.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.hust.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb https://mirrors.hust.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.hust.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
- Update the software using the following command:
sudo apt update
One-Click Source Replacement
This method is only applicable when switching from official sources to the mirror sources on this site. If you have already switched sources, please do not use the following commands.
Use the sed
command to directly replace the default source address http://archive.ubuntu.com/ in the software source configuration file with the current mirror source site.
sudo sed -i.bak 's|http://archive.ubuntu.com|https://mirrors.hust.edu.cn|g' /etc/apt/sources.list
sudo apt update
Important Notes
- Software Package Architectures
This mirror only contains software packages for x86
and x64
architecture processors. For devices with architectures such as ARM (arm64, armhf)
, PowerPC (ppc64el)
, RISC-V (riscv64)
, and s390x
, please use the ubuntu-ports
mirror.