HomeLinuxUbuntu sources.list URLs: All Versions

Ubuntu sources.list URLs: All Versions

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

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

Long-Term Support (LTS) Versions

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

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 you’re setting up a sources.list file, it’s crucial to use the right repository URLs that match the Ubuntu version on your system. As new Ubuntu versions come out, the older ones get archived, and their repositories shift to a different URL dedicated to old releases.
It’s also important to note that after a version of Ubuntu is no longer supported, it’s recommended to upgrade to a newer, supported release.

Also Read:

How to Upgrade Ubuntu to the Latest Version
Scroll to Top