ubuntu安装sublime-text(官方教程)

下载密钥

wilson@ubuntu:~$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
[sudo] password for wilson:
OK

安装https

wilson@ubuntu:~$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.4.6~17.04.1).
apt-transport-https set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

选择下载通道

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

执行更新并安装

wilson@ubuntu:~$ sudo apt-get update
wilson@ubuntu:~$ sudo apt-get install sublime-text
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
sublime-text-installer
The following NEW packages will be installed:
sublime-text
0 upgraded, 1 newly installed, 1 to remove and 11 not upgraded.
Need to get 8,190 kB of archives.
After this operation, 23.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y

你可能感兴趣的:(ubuntu安装sublime-text(官方教程))