Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update Sublime Text 2 on Ubuntu 12.04?

I'm trying to update Sublime Text 2 on Ubuntu 12.04 and I'm using the webupd8team repository, but my old install of Sublime is not getting overwritten. So I end up with Sublime Text 2.0.1 and 2.0.2 installed. When I run sudo apt-get remove sublime-text* it only uninstalls the 2.0.2 version. How can I either uninstall the 2.0.1 version or update so that it overwrites it with 2.0.2? Thanks in advance.

like image 342
mrdziuban Avatar asked Jul 08 '13 23:07

mrdziuban


People also ask

What version of Sublime Text Do I have Ubuntu?

To check version, go to Help --> About Sublime Text .

Is Sublime Text for 32 bit?

Sublime Text runs on the Windows, Mac and Linux operating systems. 32bit (x86), 64bit (x86_64) and ARM (arm64) processors are supported.

Does Sublime Text Work on Ubuntu?

Installing Sublime on Ubuntu is fairly straightforward. We'll enable the Sublime repository, import the repository GPG key, and install the editor. The same instructions should work on any other Debian-based distribution. Sublime Text is a proprietary application.


3 Answers

I also ran across this issue and found a 3rd party repo. This updated and installed the newest version of sublimetext 2.0.2 flawlessly. I am posting the directions here but please take the time to read all the documentation as things might have changed since this post.

http://www.ubuntuupdates.org/ppa/sublime

Check your ubuntu version first. This repository is ONLY for: Natty Oneiric Precise Quantal Raring

lsb_release -a

To install this PPA:

sudo add-apt-repository ppa:webupd8team/sublime-text-2 
sudo apt-get update
sudo apt-get install sublime-text
like image 149
C13L0 Avatar answered Oct 18 '22 04:10

C13L0


There is a PPA for Sublime Text 2:

https://launchpad.net/~webupd8team/+archive/sublime-text-2

But remember, that you will be integrating a new third-party-repository into your system.

like image 1
Fragmentation Needed Avatar answered Oct 18 '22 04:10

Fragmentation Needed


This is what I experienced, I had also installed Sublime with the webup8team ppa. Pre "Build 2221", the ppa installed sublime text at: /usr/lib/sublime-text-2/, it then added a bash file launcher: /usr/bin/sublime-text to start Sublime. I recently updated Sublime to "Build 2221". It was installed at /opt/sublime_text_2/ . However, the launcher was not updated to point to the new location. Which is probably the discrepancy you have experienced. Here is how I fixed on my setup:

Edit the bash file launchers (I'm not sure which one is the right one for you, so edit both to be safe)

gedit /usr/bin/sublime-text
gedit /usr/bin/subl

Update the location

#!/bin/bash

/opt/sublime_text_2/sublime_text --class=sublime-text-2 "$@"
like image 1
d_rail Avatar answered Oct 18 '22 03:10

d_rail