|sudo mv add-apt-repository.sh.txt /usr/sbin/add-apt-repository|
|sudo chmod o+x /usr/sbin/add-apt-repository|
|sudo chown root:root /usr/sbin/add-apt-repository|
|sudo add-apt-repository ppa:webupd8team/sublime-text-2|
|sudo apt-get update|
|sudo apt-get install sublime-text-2|
Thanks for the helpful gist!
I am using CrunchBang, a Debian derivative, and everything worked fine. Only at the last command "sudo apt-get install sublime-text-2" I got the feedback that there is no installation candidate for "sublime-text-2", so I installed "sublime-text" and still got everything done. Changed name?
I would also suggest change line 14's "lucid" to "precise" in the add-apt-repository.sh.txt file.
Lucid Lynx (10.04) is now not supported even though it was the last LTS. The current LTS, Precise Pangolin (12.04) will be "updated" until 2017. (The next LTS would be on April 2014 with letter T).