APT /etc/apt/sources.list

Original 📋 Debian 9 (Stretch) 7 lines

Details

Size
7 lines
MD5
d28149bb7011476b21f7eaae5e2dc6ea
SHA256
58e3ff1307b4a1f236f79e05bd87bde616d4acda6ecc19fca840f9329cd83197
/etc/apt/sources.list
deb http://archive.debian.org/debian stretch main
deb http://archive.debian.org/debian-security stretch/updates main
deb http://archive.debian.org/debian stretch-updates main
deb http://repo.mysql.com/apt/debian/ stretch mysql-apt-config
deb http://repo.mysql.com/apt/debian/ stretch mysql-8.0
deb http://repo.mysql.com/apt/debian/ stretch mysql-tools
deb-src http://repo.mysql.com/apt/debian/ stretch mysql-8.0

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/d28149bb7011476b21f7eaae5e2dc6ea?hint=sources.list
wget:
wget -O sources.list https://exampleconfig.com/api/v1/config/original/d28149bb7011476b21f7eaae5e2dc6ea?hint=sources.list

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/d28149bb7011476b21f7eaae5e2dc6ea?hint=sources.list' /><config><app>APT</app><os>Debian 9 (Stretch)</os><location>/etc/apt/sources.list</location><lines>7</lines><md5>d28149bb7011476b21f7eaae5e2dc6ea</md5><sha256>58e3ff1307b4a1f236f79e05bd87bde616d4acda6ecc19fca840f9329cd83197</sha256></config></prompt>

Paste into Claude, ChatGPT, or any AI assistant.

Install APT

Debian

sudo apt update && sudo apt install apt

Ubuntu

sudo apt update && sudo apt install apt

File Location

File Path
/etc/apt/sources.list
Directory
/etc/apt/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this sources.list?

Use it to restore a missing default, confirm what shipped, or diff against your current APT config.

How do I restore APT defaults?

Download the file, back up the current one in /etc/apt/sources.list, replace it, then reload or restart APT.

Is sources.list safe for production?

It is the vendor default for Debian 9 (Stretch). Treat it as a baseline and review security and performance settings before production use.

How does this differ from other OS versions?

Defaults vary by distro and version. This copy matches Debian 9 (Stretch).

Can I use this for APT troubleshooting?

Yes. Diff it against yours to find drift, then restore only the sections you need.