ubuntu安装sublime text3

之前从官网下载的是压缩包,但是无法直接从终端启动,据说要试着各种路径之类的,所以去官网找到一个apt安装方法

#Install the GPG key:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
#Ensure apt is set up to work with https sources:

sudo apt-get install apt-transport-https
#Select the channel to use:

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

sudo apt-get update
sudo apt-get install sublime-text
原文地址:https://www.cnblogs.com/Biiigwang/p/11764962.html