Skip to content

Instantly share code, notes, and snippets.

@reihanboo
Created May 8, 2023 13:07
Show Gist options
  • Save reihanboo/ab12fe56ef93085b54f1938484e91216 to your computer and use it in GitHub Desktop.
Save reihanboo/ab12fe56ef93085b54f1938484e91216 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Backup the existing sources.list file
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
# Replace the contents of the sources.list file with the official Debian 11 repositories
sudo tee /etc/apt/sources.list > /dev/null << EOL
deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main
deb http://security.debian.org/debian-security bullseye-security main
deb-src http://security.debian.org/debian-security bullseye-security main
deb http://deb.debian.org/debian bullseye-updates main
deb-src http://deb.debian.org/debian bullseye-updates main
EOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment