Configure Ubuntu Mirror Sources: Step-by-Step

There are multiple ways to configure Ubuntu mirror sources. One common method is as follows:

  1. Open the terminal.
  2. Edit the file /etc/apt/sources.list by using the command sudo nano /etc/apt/sources.list.
  3. Comment out the original image source address and then add a new image source address. You can choose different image sources as needed, such as Tsinghua University mirror source.
  1. Tsinghua University mirror source: deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
  1. Save the file and close the editor.
  2. Run the command “sudo apt-get update” to update the mirror source.

Please note that “focal” in the mirror source address in the above steps refers to the version of Ubuntu and can be replaced according to your actual situation.

bannerAds