Ubuntu下安装最新sublime

时间:2023-12-30 14:50:38

1. Install the GPG key:

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

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

sudo apt-get install apt-transport-https

3. Select the channel to use:

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

4. Update apt sources and install Sublime Text

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