Script to automatically configure apt sources. You can use this script by running the following command as root from a debian terminal.
curl -sSL 'https://git.io/vHxcV' | sh
#!/bin/sh | |
## | |
# Configure Debian 8 (Jessie) amd64 source list. | |
# | |
{ | |
apt-get install --yes curl wget apt-transport-https dirmngr | |
} && { | |
cat << 'EOF' > /etc/apt/sources.list | |
#------------------------------------------------------------------------------# | |
# OFFICIAL DEBIAN REPOS | |
#------------------------------------------------------------------------------# | |
###### Debian Main Repos | |
deb http://deb.debian.org/debian/ stable main contrib non-free | |
deb-src http://deb.debian.org/debian/ stable main contrib non-free | |
deb http://deb.debian.org/debian/ stable-updates main contrib non-free | |
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free | |
deb http://deb.debian.org/debian-security stable/updates main | |
deb-src http://deb.debian.org/debian-security stable/updates main | |
deb http://ftp.debian.org/debian jessie-backports main | |
deb-src http://ftp.debian.org/debian jessie-backports main | |
EOF | |
} && { | |
echo 'Package sources configured successfully' | |
exit 0 | |
} || { | |
echo 'Package sources could NOT be configured, please see the output above for details.' | |
exit 1 | |
} |