

But for the old version 3, you may install it by running the commands below one by one in terminal. Sublime Text 4 is NOT available as Flatpak so far.

Finally, update system package cache and install the code editor by running the following 2 commands one by one: sudo apt update sudo apt install sublime-text This step can be done alternatively by running the single command below: echo "deb apt/stable/" | sudo tee /etc/apt//sublime-text.listĤ. When the file opens, add the following line ( it’s a single line) and save it.ĭeb apt/stable/ Next, run the command below to create a source file and edit it via Gedit text editor: sudo gedit /etc/apt//sublime-text.list It will download the key from its website, convert it to un-readable encrypted key, and put into “/usr/share/keyring” directory. And, it’s recommend to use the command below instead to install the key: wget -qO - | gpg -dearmor | sudo tee /usr/share/keyrings/sublimehq-pub.gpg The sublime text website still use the ‘ apt-key‘ command in its document, which is deprecated.įor security reason, Debian has updated the policy. When it opens, run the command below to make sure ‘https’ source is supported: sudo apt-get install apt-transport-https Firstly, press Ctrl+Alt+T on keyboard to open terminal.

deb package works in Ubuntu, Linux Mint, Debian, and even Raspberry Pi OS (arm64).ġ. Sudo snap install sublime-text -classic Option 2: Official Apt repository
