1.安装GPG钥匙:
wget -qO -
https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
2.确保apt被设置为使用https源:
sudo apt-get install apt-transport-https
3.选择使用的通道:
稳定版:
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
开发板:
echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
4.更新apt源并且安装sublime text
sudo apt-get update
sudo apt-get install sublime-text
网友评论