[转]在ubuntu下安装sublime text

令狐运珧
2023-12-01
1
添加Sublime-text-3软件包的软件源
sudo add-apt-repository ppa:webupd8team/sublime-text-3

2
使用以下命令更新系统软件源
sudo apt-get update

3
使用以下命令安装Sublime-text-3
sudo apt-get install sublime-text-installer
等待安装完成

4
最后可在Dash Home中见到Sublime-text的软件图标,点击就可使用了.
从命令行启动
subl

  安装流程
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
 
wap@ubuntu:~$ sudo add-apt-repository ppa:webupd8team/sublime-text-3
[sudo] wap 的密码:*** 
 Sublime Text 3 Installer: the package in this PPA downloads and installs the latest Sublime Text 3 beta builds.

For more info, see: http://www.webupd8.org/2013/07/sublime-text-3-ubuntu-ppa-now-available.html
 更多信息: https://launchpad.net/~webupd8team/+archive/ubuntu/sublime-text-3
按回车继续或者 Ctrl+c 取消添加

gpg: keybox '/tmp/tmpxz0uhe3l/pubring.gpg' created
gpg: /tmp/tmpxz0uhe3l/trustdb.gpg:建立了信任度数据库
gpg: 密钥 C2518248EEA14886:公钥“Launchpad VLC”已导入
gpg: 没有找到任何绝对信任的密钥
gpg: 合计被处理的数量:1
gpg:               已导入:1
OK
wap@ubuntu:~$ sudo apt-get update
忽略:1 http://security.ubuntu.com/ubuntu zesty-security InRelease
获取:2 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu zesty InRelease [15.4 kB]
错误:3 http://security.ubuntu.com/ubuntu zesty-security Release
  404  Not Found [IP: 91.189.91.23 80]
忽略:4 http://us.archive.ubuntu.com/ubuntu zesty InRelease                     
忽略:5 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease             
忽略:6 http://us.archive.ubuntu.com/ubuntu zesty-backports InRelease
错误:7 http://us.archive.ubuntu.com/ubuntu zesty Release
  404  Not Found [IP: 91.189.91.23 80]
错误:8 http://us.archive.ubuntu.com/ubuntu zesty-updates Release
  404  Not Found [IP: 91.189.91.23 80]
错误:9 http://us.archive.ubuntu.com/ubuntu zesty-backports Release
  404  Not Found [IP: 91.189.91.23 80]
获取:10 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu zesty/main i386 Packages [532 B]
获取:11 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu zesty/main amd64 Packages [532 B]
获取:12 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu zesty/main Translation-en [276 B]
正在读取软件包列表... 完成                                                     
E: 仓库 “http://security.ubuntu.com/ubuntu zesty-security Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://us.archive.ubuntu.com/ubuntu zesty Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://us.archive.ubuntu.com/ubuntu zesty-updates Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://us.archive.ubuntu.com/ubuntu zesty-backports Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
wap@ubuntu:~$ sudo apt-get install sublime-text-installer
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列【新】软件包将被安装:
  sublime-text-installer
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 203 个软件包未被升级。
需要下载 9,566 B 的归档。
解压缩后会消耗 26.6 kB 的额外空间。
获取:1 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu zesty/main amd64 sublime-text-installer all 3126-2~webupd8~1 [9,566 B]
已下载 9,566 B,耗时 1秒 (9,544 B/s)              
正在预设定软件包 ...
正在选中未选择的软件包 sublime-text-installer。
(正在读取数据库 ... 系统当前共安装有 175682 个文件和目录。)
正准备解包 .../sublime-text-installer_3126-2~webupd8~1_all.deb  ...
Downloading...
--2018-07-18 02:51:43--  https://download.sublimetext.com/sublime_text_3_build_3126_x64.tar.bz2
正在解析主机 download.sublimetext.com (download.sublimetext.com)... 104.236.0.104
正在连接 download.sublimetext.com (download.sublimetext.com)|104.236.0.104|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 9313954 (8.9M) [application/octet-stream]
正在保存至: “sublime_text_3_build_3126_x64.tar.bz2”

     0K ........ ........ ........ ........ ........ ........ 33% 40.3K 2m29s
  3072K ........ ........ ........ ........ ........ ........ 67% 61.9K 60s
  6144K ........ ........ ........ ........ ........ ......  100% 27.7K=3m52s

2018-07-18 02:55:38 (39.2 KB/s) - 已保存 “sublime_text_3_build_3126_x64.tar.bz2” [9313954/9313954])

Download done.
Removing outdated cached downloads...
sublime_text_3/
sublime_text_3/Packages/
sublime_text_3/Packages/Pascal.sublime-package
sublime_text_3/Packages/Matlab.sublime-package
sublime_text_3/Packages/Go.sublime-package
sublime_text_3/Packages/Graphviz.sublime-package
sublime_text_3/Packages/Haskell.sublime-package
sublime_text_3/Packages/Clojure.sublime-package
sublime_text_3/Packages/TCL.sublime-package
sublime_text_3/Packages/C++.sublime-package
sublime_text_3/Packages/C#.sublime-package
sublime_text_3/Packages/Textile.sublime-package
sublime_text_3/Packages/Text.sublime-package
sublime_text_3/Packages/XML.sublime-package
sublime_text_3/Packages/D.sublime-package
sublime_text_3/Packages/Lisp.sublime-package
sublime_text_3/Packages/Objective-C.sublime-package
sublime_text_3/Packages/Vintage.sublime-package
sublime_text_3/Packages/Groovy.sublime-package
sublime_text_3/Packages/Theme - Default.sublime-package
sublime_text_3/Packages/LaTeX.sublime-package
sublime_text_3/Packages/Color Scheme - Default.sublime-package
sublime_text_3/Packages/Python.sublime-package
sublime_text_3/Packages/R.sublime-package
sublime_text_3/Packages/PHP.sublime-package
sublime_text_3/Packages/ActionScript.sublime-package
sublime_text_3/Packages/OCaml.sublime-package
sublime_text_3/Packages/Language - English.sublime-package
sublime_text_3/Packages/Rails.sublime-package
sublime_text_3/Packages/Regular Expressions.sublime-package
sublime_text_3/Packages/Erlang.sublime-package
sublime_text_3/Packages/Batch File.sublime-package
sublime_text_3/Packages/Markdown.sublime-package
sublime_text_3/Packages/ASP.sublime-package
sublime_text_3/Packages/Perl.sublime-package
sublime_text_3/Packages/Ruby.sublime-package
sublime_text_3/Packages/Makefile.sublime-package
sublime_text_3/Packages/Default.sublime-package
sublime_text_3/Packages/Scala.sublime-package
sublime_text_3/Packages/YAML.sublime-package
sublime_text_3/Packages/JavaScript.sublime-package
sublime_text_3/Packages/ShellScript.sublime-package
sublime_text_3/Packages/Lua.sublime-package
sublime_text_3/Packages/Diff.sublime-package
sublime_text_3/Packages/RestructuredText.sublime-package
sublime_text_3/Packages/SQL.sublime-package
sublime_text_3/Packages/CSS.sublime-package
sublime_text_3/Packages/Rust.sublime-package
sublime_text_3/Packages/Java.sublime-package
sublime_text_3/Packages/AppleScript.sublime-package
sublime_text_3/Packages/HTML.sublime-package
sublime_text_3/changelog.txt
sublime_text_3/sublime_text
sublime_text_3/python3.3.zip
sublime_text_3/plugin_host
sublime_text_3/crash_reporter
sublime_text_3/sublime_text.desktop
sublime_text_3/Icon/
sublime_text_3/Icon/16x16/
sublime_text_3/Icon/16x16/sublime-text.png
sublime_text_3/Icon/32x32/
sublime_text_3/Icon/32x32/sublime-text.png
sublime_text_3/Icon/128x128/
sublime_text_3/Icon/128x128/sublime-text.png
sublime_text_3/Icon/48x48/
sublime_text_3/Icon/48x48/sublime-text.png
sublime_text_3/Icon/256x256/
sublime_text_3/Icon/256x256/sublime-text.png
sublime_text_3/sublime.py
sublime_text_3/sublime_plugin.py
正在解包 sublime-text-installer (3126-2~webupd8~1) ...
正在处理用于 mime-support (3.60ubuntu1) 的触发器 ...
正在处理用于 desktop-file-utils (0.23-1ubuntu2) 的触发器 ...
正在处理用于 bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) 的触发器 ...
Rebuilding /usr/share/applications/bamf-2.index...
正在设置 sublime-text-installer (3126-2~webupd8~1) ...
正在处理用于 gnome-menus (3.13.3-6ubuntu5) 的触发器 ...
wap@ubuntu:~$ 

转载于:https://www.cnblogs.com/MakeView660/p/9330832.html

 类似资料: