Working Debian 6 (Squeeze) - Debian 12 (Bookworm) sources.list dotfiles to replace the sources.list in your /etc/apt folder on your Debian server.
Navigate to the /etc/apt folder.
cd /etc/aptBackup your current sources.list file first.
mv sources.list sources.list_oldRetrieve the new sources.list file based on your Debian server version.
Important
Please update manually.
Reason is, OpenSSL 0.9.8 supports only TLS 1.0 and lower protocol versions (i.e. SSL 3.0), so there is no way to connect with a TLS 1.0 client to github.com, which itself does not longer support the TLS 1.0 protocol.
wget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian7 -O /etc/apt/sources.listwget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian8 -O /etc/apt/sources.listwget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian9 -O /etc/apt/sources.listwget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian10 -O /etc/apt/sources.listwget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian11 -O /etc/apt/sources.listwget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian12 -O /etc/apt/sources.listUpdate from the new list:
apt updateor
apt-get updateUpgrade the installed packages on your system:
apt upgradeor
apt-get upgradeTip
You can also edit and/or update your existing sources.list file manually if you prefer to do it that way.