Skip to content

Instantly share code, notes, and snippets.

@derrekbertrand
Forked from vshvedov/gist:1370650
Last active December 18, 2015 09:09
Show Gist options
  • Save derrekbertrand/5759101 to your computer and use it in GitHub Desktop.
Save derrekbertrand/5759101 to your computer and use it in GitHub Desktop.
Install Sublime Text 2 via PPA on Debian/LMDE
sudo apt-get install python-software-properties software-properties-common
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
@derrekbertrand
Copy link
Author

Added edits suggested by @MilNex and @tlongren.

@derrekbertrand
Copy link
Author

Verified. Installs Sublime Text cleanly on LMDE Cinnamon.

Article introducing the PPA:
http://www.webupd8.org/2011/03/sublime-text-2-ubuntu-ppa.html

@daveman1010220
Copy link

This does not work on LMDE. The PPA has the wrong paths because they are for Ubuntu, not Debian. Here is the error that returns on apt-get update:

W: Failed to fetch http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu/dists/debian/main/source/Sources 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu/dists/debian/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu/dists/debian/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

It's probably fixable if I find the right files to edit, but as it stands, this does not work on Linux Mint Debian.

@dcbartlett
Copy link

You can install this on LMDE using this method with a minor change.

sudo apt-get install python-software-properties software-properties-common

sudo add-apt-repository ppa:webupd8team/sublime-text-2

sudo nano /etc/apt/sources.list.d/webupd8team-sublime-text-2-debian.list

change all references of debian to precise

Proceed as normal.

sudo apt-get update

sudo apt-get install sublime-text

You could use any other Ubuntu flavor there i think, however i seem to remember that i had issues with dependencies on everything newer than precise.

@derrekbertrand
Copy link
Author

Weird. It didn't give me any lip at all about that...

In fact my copy of LMDE Cinnamon used this exact sequence to install, and there is not even a file named: /etc/apt/sources.list.d/webupd8team-sublime-text-2-debian.list

I'll install a fresh copy and investigate. Also, I'll look into replacing the nano with a grep command so its more automated.

EDIT: Moreover, why are we changing it to references of precise? LMDE is Debian based, and forcing it to reference ubuntu wouldn't be in our best interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment