{"id":6773,"date":"2025-01-31T03:56:23","date_gmt":"2025-01-30T22:26:23","guid":{"rendered":"https:\/\/www.veeble.com\/kb\/?p=6773"},"modified":"2025-05-02T13:06:24","modified_gmt":"2025-05-02T07:36:24","slug":"debian-repo-urls-for-sources-list-file","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/debian-repo-urls-for-sources-list-file\/","title":{"rendered":"Debian Repo URLs for \u2018sources.list\u2019 File"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/RockyLinux-Repository-List-Cover-Image-scaled-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"524\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/RockyLinux-Repository-List-Cover-Image-scaled-1.webp\" alt=\"Debian repository URLs for sources.list file\" class=\"wp-image-6785\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/RockyLinux-Repository-List-Cover-Image-scaled-1.webp 2560w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/RockyLinux-Repository-List-Cover-Image-scaled-1-300x61.webp 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/RockyLinux-Repository-List-Cover-Image-scaled-1-1024x210.webp 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/RockyLinux-Repository-List-Cover-Image-scaled-1-768x157.webp 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/RockyLinux-Repository-List-Cover-Image-scaled-1-1536x314.webp 1536w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/RockyLinux-Repository-List-Cover-Image-scaled-1-2048x419.webp 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/figure>\n\n\n\n<p>This knowledge base is your essential guide for configuring the right <a href=\"https:\/\/www.debian.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Debian<\/a> repository URLs for your sources.list file which is used to fetch software packages and updates.<\/p>\n\n\n\n<p>The <strong>\/etc\/apt\/sources.list file<\/strong> is the main configuration file for managing Debian repositories. It contains the URLs of the repositories that your system uses to search for and install software. This guide provides the correct repository URLs for Debian in case you have misconfigured it or deleted it by any chance.<\/p>\n\n\n\n<pre class=\"wp-block-verse\">\ud83d\udca1 Configuring the right repository url can resolve errors such as <strong>E: The repository ...... does not have a Release file<\/strong> on your Debian OS.<\/pre>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-11409a1d      \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tTable Of Contents\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#how-to-modify-the-sourceslist-file-and-include-repository-urls\" class=\"uagb-toc-link__trigger\">How to modify the &#039;sources.list&#039; file and include Repository URLs?<\/a><li class=\"uagb-toc__list\"><a href=\"#debian-12-bookworm\" class=\"uagb-toc-link__trigger\">Debian 12 (Bookworm)<\/a><li class=\"uagb-toc__list\"><a href=\"#debian-11-bullseye\" class=\"uagb-toc-link__trigger\">Debian 11 (Bullseye)<\/a><li class=\"uagb-toc__list\"><a href=\"#debian-10-buster\" class=\"uagb-toc-link__trigger\">Debian 10 (Buster)<\/a><li class=\"uagb-toc__list\"><a href=\"#debian-9-stretch\" class=\"uagb-toc-link__trigger\">Debian 9 (Stretch)<\/a><li class=\"uagb-toc__list\"><a href=\"#debian-8-jessie\" class=\"uagb-toc-link__trigger\">Debian 8 (Jessie)<\/a><li class=\"uagb-toc__list\"><a href=\"#how-to-update-repository-urls-after-adding-to-sourceslist\" class=\"uagb-toc-link__trigger\">How to update Repository URLs after adding to sources.list?<\/a><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"how-to-modify-the-sourceslist-file-and-include-repository-urls\">How to modify the &#8216;sources.list&#8217; file and include Repository URLs?<\/h4>\n\n\n<pre class=\"wp-block-verse\">Before modifying the sources.list, create a backup using:<strong> sudo cp \/etc\/apt\/sources.list \/etc\/apt\/sources.list.backup<\/strong> to ensure safe repository changes.<\/pre>\n\n\n\n<p>To update the repository sources, open the sources.list file located in \/etc\/apt\/ using a command-line editor of your choice, such as <a href=\"https:\/\/www.veeble.com\/kb\/vi-editor\/\">vi<\/a> or <a href=\"https:\/\/www.nano-editor.org\/dist\/latest\/nano.1.html\" target=\"_blank\" rel=\"noopener\">nano<\/a>. Then, copy the code from the knowledge base that corresponds to your version of Debian into the file. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vi \/etc\/apt\/sources.list<\/code><\/pre>\n\n\n\n<p>Additionally, repository files can also be placed in &#8221; <strong>\/etc\/apt\/sources.list.d\/<\/strong> &#8220;<br>Each file inside this directory follows the same format as <code>sources.list<\/code> and allows modular repository management.<\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"debian-12-bookworm\"><span style=\"text-decoration: underline\">Debian 12 (Bookworm<\/span>)<\/h4>\n\n\n<pre class=\"wp-block-code\"><code>deb https:\/\/deb.debian.org\/debian bookworm main non-free-firmware\ndeb-src https:\/\/deb.debian.org\/debian bookworm main non-free-firmware\ndeb https:\/\/security.debian.org\/debian-security bookworm-security main non-free-firmware\ndeb-src https:\/\/security.debian.org\/debian-security bookworm-security main non-free-firmware\ndeb https:\/\/deb.debian.org\/debian bookworm-updates main non-free-firmware\ndeb-src https:\/\/deb.debian.org\/debian bookworm-updates main non-free-firmware<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"debian-11-bullseye\"><span style=\"text-decoration: underline\">Debian 11 (Bullseye)<\/span><\/h4>\n\n\n<pre class=\"wp-block-code\"><code>deb https:\/\/deb.debian.org\/debian bullseye main\ndeb-src https:\/\/deb.debian.org\/debian bullseye main\ndeb https:\/\/deb.debian.org\/debian-security\/ bullseye-security main\ndeb-src https:\/\/deb.debian.org\/debian-security\/ bullseye-security main\ndeb https:\/\/deb.debian.org\/debian bullseye-updates main\ndeb-src https:\/\/deb.debian.org\/debian bullseye-updates main<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"debian-10-buster\"><span style=\"text-decoration: underline\">Debian 10 (Buster)<\/span><\/h4>\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/deb.debian.org\/debian buster main contrib non-free\ndeb http:\/\/security.debian.org\/debian-security buster\/updates main contrib non-free\ndeb http:\/\/deb.debian.org\/debian buster-updates main contrib non-free<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"debian-9-stretch\"><span style=\"text-decoration: underline\">Debian 9 (Stretch)<\/span><\/h4>\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/archive.debian.org\/debian stretch main contrib non-free\ndeb-src http:\/\/archive.debian.org\/debian stretch main contrib non-free\ndeb http:\/\/archive.debian.org\/debian-security\/ stretch\/updates main contrib non-free\ndeb-src http:\/\/archive.debian.org\/debian-security\/ stretch\/updates main contrib non-free<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"debian-8-jessie\"><span style=\"text-decoration: underline\">Debian 8 (Jessie)<\/span><\/h4>\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/archive.debian.org\/debian\/ jessie main non-free contrib\n deb-src http:\/\/archive.debian.org\/debian\/ jessie main non-free contrib\ndeb http:\/\/archive.debian.org\/debian-security\/ jessie\/updates main non-free contrib\n deb-src http:\/\/archive.debian.org\/debian-security\/ jessie\/updates main non-free contrib<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"how-to-update-repository-urls-after-adding-to-sourceslist\">How to update Repository URLs after adding to sources.list?<\/h4>\n\n\n<p>After modifying the <code>sources.list<\/code> file, update the package lists using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-2f956d3e\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<p>The <strong>sources.list<\/strong> file is crucial for managing package sources in Debian.&nbsp;Properly configuring this file allows you to access security updates, official repositories, and other software sources.<\/p>\n\n\n\n<p>Similarly, you can&nbsp;also easily configure the&nbsp;Repo URL list for&nbsp;<a href=\"https:\/\/www.veeble.com\/kb\/sources-list-file-urls-ubuntu\/\">Ubuntu<\/a>, <a href=\"https:\/\/www.veeble.org\/kb\/almalinux-yum-repository-list-working-urls\/\" target=\"_blank\" rel=\"noopener\">AlmaLinux<\/a>,&nbsp;<a href=\"https:\/\/www.veeble.org\/kb\/centos-repo-list-working-urls\/\" target=\"_blank\" rel=\"noopener\">CentOS<\/a>,&nbsp;<a href=\"https:\/\/www.veeble.org\/kb\/centos-stream-repo-list-working-urls\/\" target=\"_blank\" rel=\"noopener\">CentOS Stream<\/a>,&nbsp;and&nbsp;<a href=\"https:\/\/www.veeble.org\/kb\/rockylinux-repository-list-working-urls\/\" target=\"_blank\" rel=\"noopener\">RockyLinux<\/a>. To find the working URLs, visit this link:&nbsp;<br>CentOS:&nbsp;<a href=\"https:\/\/www.veeble.com\/kb\/centos-repo-list-working-urls\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.veeble.com\/kb\/centos-repo-list-working-urls\/<\/a><br>CentOS Stream:&nbsp;<a href=\"https:\/\/www.veeble.com\/kb\/centos-stream-repo-list-working-urls\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.veeble.com\/kb\/centos-stream-repo-list-working-urls\/<\/a><br>RockyLinux:&nbsp;<a href=\"https:\/\/www.veeble.com\/kb\/centos-stream-repo-list-working-urls\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.veeble.com\/kb\/rockylinux-repository-list-working-urls\/<\/a><br>AlmaLinux:&nbsp;<a href=\"https:\/\/www.veeble.com\/kb\/almalinux-yum-repository-list-working-urls\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.veeble.com\/kb\/almalinux-yum-repository-list-working-ur<\/a><a href=\"https:\/\/www.veeble.org\/kb\/almalinux-yum-repository-list-working-urls\/\" target=\"_blank\" rel=\"noreferrer noopener\">ls\/<\/a><br>Ubuntu: <a href=\"https:\/\/www.veeble.com\/kb\/sources-list-file-urls-ubuntu\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.veeble.com\/kb\/sources-list-file-urls-ubuntu\/<\/a><\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-3abd65aa wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Launch Your Server in Minutes<\/h3><p class=\"uagb-cta__desc\">Get your VPS up and running quickly and easily with our streamlined setup process.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/vps-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Launch Your VPS Now<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here is the working Repository URLs list for Debian 8, Debian 9, Debian 10, Debian 11 and Debian 12 needed for sources.list file.<\/p>\n","protected":false},"author":7,"featured_media":8378,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5],"tags":[],"class_list":["post-6773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/Debian-Repo-URLs-for-sources.list-File.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/Debian-Repo-URLs-for-sources.list-File-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/Debian-Repo-URLs-for-sources.list-File-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/Debian-Repo-URLs-for-sources.list-File-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/Debian-Repo-URLs-for-sources.list-File-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/Debian-Repo-URLs-for-sources.list-File.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/01\/Debian-Repo-URLs-for-sources.list-File.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"Here is the working Repository URLs list for Debian 8, Debian 9, Debian 10, Debian 11 and Debian 12 needed for sources.list file.","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/6773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=6773"}],"version-history":[{"count":17,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/6773\/revisions"}],"predecessor-version":[{"id":8810,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/6773\/revisions\/8810"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8378"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=6773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=6773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=6773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}