Linux

How to install Sublime Text 4 on Ubuntu

feature-image-sublime-text-4

Sublime Text is a source code editor that is cross-platform in nature. It comes equipped and supports a handful of programming and markup languages. Plugins, which are often community-built and administered under free-software licenses enable users to augment the functionality of the system. Sublime Text has a Python API to assist with plugins. Please find other guides from here: install-lxc-lxd-for-container-management-linux-container/ and how to http://configure-user-resource-limits-and-restrictions-in-linux and Practical use of SELinux in production: How to locate directory file context and restore it with SELinux, and What are the differences between dnf and apt package managers?

Here are some amazing reasons why you should use Sublime Text 4

Sublime text 4 has some amazing new features that are not in the previous editions and some of them are:

  • GPU rendering sublime text can now use your GPU to render the UI on Linux, Mac, and Windows. This allows for a smooth user interface up to 8K resolutions while utilizing less power than previously.
  • Tab multi-select with support across the UI and built-in functions, file tabs have been upgraded to make split views simple. The sidebar, tab bar, Goto Anything, Goto Definition, auto complete, and other features have all been improved to make code navigation even easier and more intuitive.
  • Refreshed UI New tab styles and passive pane dimming have been included to the Default and Adaptive themes. Auto dark-mode switching is supported by themes and color schemes. Custom title bars are now available in the Adaptive theme for Windows and Linux.
  • Superpowered Syntax Definitions With new capabilities such as supporting non-deterministic grammars, multi-line constructions, lazy embeds, and syntactic inheritance, the syntax highlighting engine has been significantly improved. The amount of memory used has been lowered, and load times are now quicker than they have ever been.
  • Apple Silicon and Linux ARM64 Apple Silicon processors are now supported natively in Sublime Text on Mac. For devices like the Raspberry Pi, Linux ARM64 versions are also available.
  • Context-Aware Auto Complete The autocomplete engine has been modified to provide smart completions based on a project’s current code. Suggestions are also accompanied with information about their category and links to definitions.
  • Typescript, JSX and TSX Support One of the most popular new programming languages is now included as standard. Within the contemporary JavaScript environment, use all of Sublime Text’s clever syntax-based capabilities.
  • Updated Python API The Sublime Text API has been upgraded to Python 3.8 while maintaining backwards compatibility with Sublime Text 3 packages. The API has been enhanced, with new capabilities that make plugins like LSP operate even better.

In this guide, I will walk you through how to install sublime text 4 on Ubuntu

Installation

Process 1: Retrieve GPG Key and install it. Start by adding the Sublime Text GPG key to your terminal.

$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
GPG-keys

Simply type your sudo password and hit Enter when asked.

Possible error messages & how to troubleshoot

gpg: no valid OpenPGP data found. In case you get this in the process of installation, this error means that the file you tried to decrypt/verify was not valid OpenPGP data. I ran three commands below that helped me move forward

  • apt install -y ca-certificates.
  • apt update
  • apt upgrade

The error messages disappeared after running the commands above as I was prompted for my root password to proceed with the task

Process 2: Ensure apt is set up to work with https sources:

Install the apt-transport-https package after adding the GPG key. This guarantees that Sublime Text’s metadata and packages may be accessed safely through the HTTPS protocol.

$sudo apt-get install apt-transport-https

Possible error message & solution

apt-transport-https is already the newest version (1.6.14).
apt-transport-https set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.

Select the stable channel instead of the dev one and add it

$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
stage-2


Process 3: Update apt sources and install Sublime Text

$sudo apt-get update
$sudo apt-get install sublime-text
sublime

Next thing to do is to click the application manager

application-manager
Application manager

And finally, search for Sublime Text in the application manager

sub2
Application manager search

Summary

Sublime Text 4 is worth installing with the impressive new features that it has. We can do that by retrieving GPG Key and installing it, ensuring apt is set up to work with HTTPS sources and finally updating apt sources and installing Sublime Text.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Kindly subscribe to TechDirectArchive
This is default text for notification bar