Sublime Forum

Fix for Debian/Mint/Ubuntu (apt) users getting "Already Latest Version" with "Please Upgrade" popup in ST3

#1

This would also be useful to add to the download page here, given it will effect anyone using Linux Mint (since those repos have a Pin Priority of 700, and sublime-text is in the repo): https://www.sublimetext.com/docs/3/linux_repositories.html

I finally broke down and figured out why my sublime-text version was stuck on 3143, and how to fix it so it doesn’t happen again. I’m running linux mint, but this will apply to anyone using an apt/dpkg/deb based distro, who gets the “There’s an upgrade available for sublime text!” popup in ST3, but checking for upgrades using your package manager shows you’re on the latest version. In my case, this happened to be 3143, but it could be any ST version in some repo other than the Sublime Text official one.

In brief, you simply add the below to your apt preferences, most commonly (in mint, ubuntu and debian) as a new file created in /etc/apt/preferences.d/, which I chose to call sublime-text.pref. This preferences choice is simply going to give higher priority to the official package origin of download.sublimetext.com than other repositories on the system, and is going to do so only for the sublime-text package (just to be safe).

The new file’s contents (/etc/apt/preferences.d/sublime-text.pref) are:

Package: sublime-text
Pin: origin download.sublimetext.com
Pin-Priority: 900

After adding this, just update as normal and you’ll pick up the latest version.


If you’re still having trouble for some reason, try running (with sudo or as root) apt-cache policy sublime-text, after which you should see something like the below:

sublime-text:
  Installed: 3143
  Candidate: 3143
  Version table:
     3176 900
        900 https://download.sublimetext.com apt/stable/ Packages
 *** 3143 950
        950 http://example.org/packages version/import amd64 Packages
        700 http://mirror.team-cymru.org/mint-packages serena/import amd64 Packages
        100 /var/lib/dpkg/status

If you notice, I added an “example.org” package there that has a priority of 950, higher than what we pinned our official priority to be. That’s incredibly uncommon, but if it happens to you just set a priority higher than 950 (in this case) and the official repository will take priority over the example.org one.

1 Like

Unable to install newest Build of Sublime Linux
Already latest version redux
How to upgrade to version 3143 on Ubuntu 16.04?
Helpful info. for Debian/Ubuntu/Mint apt-get repository users
Step by Step instrs for installing Sublime on Ubuntu 14.04
Upgrade supposedly succeeds, but Sublime still at Version 2