Created
April 1, 2015 08:55
-
-
Save qrtt1/dce3fab8a1051c8bfec7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
codename=`lsb_release -c -s` | |
file=/tmp/header | |
output=/tmp/sources.list | |
rm -rf $file | |
touch $file | |
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt $codename main restricted universe multiverse" >> $file | |
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt $codename-updates main restricted universe multiverse" >> $file | |
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt $codename-backports main restricted universe multiverse" >> $file | |
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt $codename-security main restricted universe multiverse" >> $file | |
cat $file /etc/apt/sources.list > $output | |
mv $output /etc/apt/sources.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment