Sublime Forum

Install on Ubuntu 18.10 failed with Unable to locate package sublime-text

#1

I was following the instructions to install sublime text on Ubuntu (I’m using Ubuntu 18.10) and did

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee 
sudo apt-get update

All the above completed normally, then I did:

sudo apt-get install sublime-text

and it failed with

No apt package "sublime-text", but there is a snap with that name.
Try "snap install sublime-text"

 E: Unable to locate package sublime-text

I tried the snap command suggested above but it failed with

error: This revision of snap "sublime-text" was published using classic confinement and thus may
          perform arbitrary system changes outside of the security sandbox that snaps are usually
          confined to, which may put your system at risk.

          If you understand and want to proceed repeat the command including --classic.

any suggestions as to what I’m doing wrong or how to fix

0 Likes

#2

There should be no space between the hyphen and the “t” in sublime-text. Yes, I know it shows it in the installation instructions, but it is incorrect.

0 Likes

#3

Many thanks much appreciated

I found out that I was able to install via the “Ubuntu Software” app.

I checked the command I had entered but there was no space in what I entered for “sublime-text”

0 Likes