HomeLinuxUbuntu Repo URLs for ‘sources.list’ File

Ubuntu Repo URLs for ‘sources.list’ File

This knowledge base is your go-to resource for configuring repository sources.list file, ensuring you have access to the right packages for your Ubuntu system. Perfect for administrators, developers, and Ubuntu enthusiasts, it ensures easy access to software repositories for updates, security patches, and installations.

How to edit ‘sources.list’ file and add Repo URLs?

Before modifying the sources.list, create a backup using: sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup to ensure safe repository changes.

To change repository sources, open the sources.list file located /etc/apt/ using a command-line editor, such as vi editor or nano editor according to your choice, and copy the code from this knowledge base to the file according to your Ubuntu OS version. For example:

sudo vi /etc/apt/sources.list

Starting with Ubuntu 24.04, a new configuration file, /etc/apt/sources.list.d/ubuntu.sources, is used for managing repository configurations. To edit this file, open it with a text editor and configure the repositories as suggested in this article.

sudo vi /etc/apt/sources.list.d/ubuntu.sources

Long-Term Support (LTS) Versions Repo URLs

Ubuntu 24.04 LTS “Noble Numbat”

Types: deb deb-src
URIs: http://us.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports noble-proposed
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb deb-src 
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Ubuntu 22.04 LTS “Jammy Jellyfish”

deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ jammy partner
# deb-src http://archive.canonical.com/ubuntu/ jammy partner

Ubuntu 20.04 LTS “Focal Fossa”

deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner

Ubuntu 18.04 LTS “Bionic Beaver”

deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse

Ubuntu 16.04 LTS “Xenial Xerus”

deb http://archive.ubuntu.com/ubuntu xenial main
deb http://archive.ubuntu.com/ubuntu xenial-updates main
deb http://archive.ubuntu.com/ubuntu xenial restricted
deb http://archive.ubuntu.com/ubuntu xenial-updates restricted
deb http://archive.ubuntu.com/ubuntu xenial universe
deb http://archive.ubuntu.com/ubuntu xenial-updates universe
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main
deb http://archive.ubuntu.com/ubuntu xenial-security restricted
deb http://archive.ubuntu.com/ubuntu xenial-security universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main
deb http://archive.ubuntu.com/ubuntu xenial-backports restricted
deb http://archive.ubuntu.com/ubuntu xenial-backports universe
deb http://archive.ubuntu.com/ubuntu xenial-backports multiverse
deb http://archive.canonical.com/ubuntu xenial partner

Interim Releases Repo URLs

Ubuntu 23.10 “Mantic Minotaur”

deb http://us.archive.ubuntu.com/ubuntu/ mantic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ mantic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ mantic universe
deb http://us.archive.ubuntu.com/ubuntu/ mantic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ mantic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ mantic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ mantic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu mantic-security main restricted
deb http://security.ubuntu.com/ubuntu mantic-security universe
deb http://security.ubuntu.com/ubuntu mantic-security multiverse

Ubuntu 23.04 “Lunar Lobster”

deb http://us.archive.ubuntu.com/ubuntu/ lunar main restricted
deb http://us.archive.ubuntu.com/ubuntu/ lunar-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ lunar universe
deb http://us.archive.ubuntu.com/ubuntu/ lunar-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ lunar multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lunar-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lunar-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu lunar-security main restricted
deb http://security.ubuntu.com/ubuntu lunar-security universe
deb http://security.ubuntu.com/ubuntu lunar-security multiverse

Ubuntu 22.10 “Kinetic Kudu”

deb http://old-releases.ubuntu.com/ubuntu/ kinetic main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ kinetic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ kinetic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ kinetic-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ kinetic-security main restricted universe multiverse

Ubuntu 21.10 “Impish Indri”

deb http://old-releases.ubuntu.com/ubuntu/ impish main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ impish main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ impish-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse

Ubuntu 21.04 “Hirsute Hippo”

deb http://old-releases.ubuntu.com/ubuntu/ hirsute main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ hirsute main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hirsute-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ hirsute-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hirsute-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ hirsute-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hirsute-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ hirsute-backports main restricted universe multiverse

When setting up sources.list file, using the correct repository URLs that match the Ubuntu version installed on your system is crucial. Older versions are archived as new Ubuntu versions are released, and their repositories are moved to a URL dedicated to old releases. Starting with Ubuntu 24.04, the system no longer uses the /etc/apt/sources.list for repository configuration. Instead, the new configuration file is located at /etc/apt/sources.list.d/ubuntu.sources. If a version of Ubuntu is no longer supported, upgrading to a newer, supported release is recommended.

This list includes official RockyLinux repositories and some useful third-party repositories for added functionality. Similarly, you can also easily configure the Repo URL list for AlmaLinuxCentOSCentOS Stream, and RockyLinux. To find the working URLs, visit this link: 
CentOS: https://www.veeble.org/kb/centos-repo-list-working-urls/
CentOS Stream: https://www.veeble.org/kb/centos-stream-repo-list-working-urls/
RockyLinux: https://www.veeble.org/kb/rockylinux-repository-list-working-urls/
AlmaLinux: https://www.veeble.org/kb/almalinux-yum-repository-list-working-urls/

Also Read:

How to Upgrade Ubuntu to the Latest Version
Scroll to Top