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/apt
Backup your current sources.list
file first.
mv sources.list sources.list_old
Retrieve 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.list
wget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian8 -O /etc/apt/sources.list
wget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian9 -O /etc/apt/sources.list
wget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian10 -O /etc/apt/sources.list
wget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian11 -O /etc/apt/sources.list
wget https://raw.githubusercontent.com/tkne/debian-sources/main/sources.list.debian12 -O /etc/apt/sources.list
Update from the new list:
apt update
or
apt-get update
Upgrade the installed packages on your system:
apt upgrade
or
apt-get upgrade
Tip
You can also edit and/or update your existing sources.list
file manually if you prefer to do it that way.