Changing Mirror for archive.ubuntu.com

Sometimes you might want to change the mirror for Ubuntu updates, find out how in this tutorial.

3139 views

Edited: 2021-03-01 15:03

Linux tutorial

Sometimes your download mirror might be down when updating Ubuntu, to fix this, you can simply change to another mirror.

Changing downloads mirrors can be done by editing the sources.list. Mirrors are often represented by a two-letter country code, so we can easily try other URLs if our sources stop responding.

To change download URLs for your distribution, edit the /etc/apt/sources.list file:

sudo nano /etc/apt/sources.list

Inside this file, you may find your sources, which might look like this:

deb http://us.archive.ubuntu.com/ubuntu/ eoan main restricted

Now, simply swap the us part with whatever country mirror you want to try. The main server does not have a prefix at all: http://archive.ubuntu.com/ubuntu/

Mirrors are often represented by a two-letter country code, you can find more here: Two-letter Country Codes List

Tell us what you think:

  1. Generate a GPG key that can be used with KWallet.
  2. How to extract and install FileZilla from tar.bz2 in Ubuntu.
  3. About the problem with using sudo with graphical programs in Linux.
  4. Tutorial showing how to configure a VirtualBox Guest VM with HOST-only and NAT adapter, while using the WWW folder from the HOST OS.
  5. My experience with do-release-upgrade is that it rarely breaks anything, so I would say it is generally a safe and reliable way to upgrade Ubuntu.

More in: Ubuntu