
Ubuntu’s package repositories are organized by release (codename) and components. This guide will help you configure the correct repository URLs in /etc/apt/sources.list or, for Ubuntu 24.04 and later, /etc/apt/sources.list.d/ubuntu.sources, based on your Ubuntu version.
Using the official repository lines ensures your Ubuntu system pulls updates, security patches and software from the proper archives. Below we list the repo lines for each Long-Term Support (LTS) release and recent interim release up through early 2026.
Table of Contents
How to edit ‘sources.list’ file and add Repo URLs
First, back up your current sources list. For example, run:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
This protects your current setup. Next, use your favorite editor to open the sources file. For Ubuntu versions prior to 24.04, use:
sudo nano /etc/apt/sources.list
On Ubuntu 24.04 and newer versions, the repository configuration is no longer stored in the traditional /etc/apt/sources.list file. Instead, it has been moved to /etc/apt/sources.list.d/ubuntu.sources.
So, if you need to make any changes to the repositories, you can open this file using a text editor — for example:
sudo nano /etc/apt/sources.list.d/ubuntu.sources
Next, replace the contents of the file with the appropriate lines from the tables below (matching your Ubuntu codename). After saving, run sudo apt update to refresh package lists.
Long-Term Support (LTS) Versions Repo URLs
Ubuntu LTS releases come with 5 years of standard support, and each version has its own codename (for example, 24.04 is called “Noble Numbat”). Below are the official repository entries for the currently supported LTS releases.
If a version has reached end-of-life, its repositories are moved to old-releases.ubuntu.com.
Ubuntu 26.04 LTS “Resolute Raccoon” (April 2026)
Types: deb deb-src
URIs: http://archive.ubuntu.com/ubuntu/
Suites: resolute resolute-updates resolute-backports resolute-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: resolute-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
(These lines will be valid after 26.04 is released. In the meantime you can replace resolute with the actual codename when it becomes available.)
Ubuntu 24.04 LTS “Noble Numbat” (April 2024)
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” (April 2022)
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
The deb-src lines are commented out by default. These entries point to Ubuntu’s main, updates, security, and backports repositories for Jammy.
Ubuntu 20.04 LTS “Focal Fossa” (April 2020)
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” (April 2018)
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” (April 2016)
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
Non-LTS Releases Repo URLs
Non-LTS Ubuntu releases (published every six months) are supported for 9 months only. The latest interim versions are Ubuntu 25.10 “Questing Quokka” and 25.04 “Plucky Puffin,” released in Oct 2025 and Apr 2025.
Ubuntu 25.10 “Questing Quokka” (Oct 2025)
deb http://us.archive.ubuntu.com/ubuntu/ quokka main restricted
deb http://us.archive.ubuntu.com/ubuntu/ quokka-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ quokka universe
deb http://us.archive.ubuntu.com/ubuntu/ quokka-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ quokka multiverse
deb http://us.archive.ubuntu.com/ubuntu/ quokka-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ quokka-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu quokka-security main restricted
deb http://security.ubuntu.com/ubuntu quokka-security universe
deb http://security.ubuntu.com/ubuntu quokka-security multiverse
Ubuntu 25.04 “Plucky Puffin” (Apr 2025)
deb http://us.archive.ubuntu.com/ubuntu/ plucky main restricted
deb http://us.archive.ubuntu.com/ubuntu/ plucky-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ plucky universe
deb http://us.archive.ubuntu.com/ubuntu/ plucky-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ plucky multiverse
deb http://us.archive.ubuntu.com/ubuntu/ plucky-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ plucky-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu plucky-security main restricted
deb http://security.ubuntu.com/ubuntu plucky-security universe
deb http://security.ubuntu.com/ubuntu plucky-security multiverse
Ubuntu 24.10 “Oracular Oriole” (Oct 2024, EOL)
deb http://old-releases.ubuntu.com/ubuntu/ oracular main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ oracular-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ oracular-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ oracular-security main restricted universe multiverse
Ubuntu 23.10 “Mantic Minotaur” (Oct 2023, EOL)
deb http://old-releases.ubuntu.com/ubuntu/ mantic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ mantic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ mantic-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ mantic-security main restricted universe multiverse
Ubuntu 23.04 “Lunar Lobster” (Apr 2023, EOL)
deb http://old-releases.ubuntu.com/ubuntu/ lunar main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lunar-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lunar-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lunar-security main restricted universe multiverse
Ubuntu 22.10 “Kinetic Kudu” (Oct 2022, EOL)
deb 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 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
Ubuntu 21.10 “Impish Indri” (Oct 2021, EOL)
deb 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 http://old-releases.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-security main restricted universe multiverse
Ubuntu 21.04 “Hirsute Hippo” (Apr 2021, EOL)
deb 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 http://old-releases.ubuntu.com/ubuntu/ hirsute-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hirsute-security main restricted universe multiverse
Each repository entry uses the Ubuntu codename as the “suite” (such as quokka, plucky, oracular, etc.), so make sure it matches your installed Ubuntu version. As Veeble points out, unsupported (EOL) releases must use old-releases.ubuntu.com. If you’re on an EOL version, it’s strongly recommended to upgrade to a supported LTS to continue receiving security updates.
Experience the Power of Veeble VPS Hosting
At Veeble, our Ubuntu VPS plans are designed for reliability and performance. They run on powerful hardware with 1Gbps bandwidth, backed by 24/7 expert support for any server or repository configuration needs. Whether it’s a production server or a development setup, you get full control and high uptime. Visit our VPS hosting page to explore plans and get the most out of your Ubuntu environment.