Skip to content

Instantly share code, notes, and snippets.

@borisguery
Created September 26, 2014 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borisguery/311e97e608781e391bb2 to your computer and use it in GitHub Desktop.
Save borisguery/311e97e608781e391bb2 to your computer and use it in GitHub Desktop.
if [ -e /etc/apt/sources.list ] && grep -qai '^deb.*squeeze' /etc/apt/sources.list && ! grep -qai squeeze-lts /etc/apt/sources.list; then echo "
deb http://http.debian.net/debian/ squeeze-lts main contrib non-free
deb-src http://http.debian.net/debian/ squeeze-lts main contrib non-free
" >> /etc/apt/sources.list; fi; gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553; gpg -a --export 8B48AD6246925553 | apt-key add -; apt-get update; apt-get install bash; vi /etc/apt/sources.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment