安装sublime-text出错,ubuntu小白

为当前最终发行版之前的所有版本提供支持
头像
九天星
帖子: 1347
注册时间: 2007-07-14 20:45
送出感谢: 67 次
接收感谢: 39 次

Re: 安装sublime-text出错,ubuntu小白

#16

帖子 九天星 » 2017-12-29 21:40

我们用排除法试试,先来排除源的问题,你用我系统中的源。

代码: 全选

# deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
deb http://cz.archive.ubuntu.com/ubuntu xenial main universe


# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
longf0720
帖子: 14
注册时间: 2018-03-09 15:15
系统: Ubuntu16.04
送出感谢: 0
接收感谢: 0

Re: 安装sublime-text出错,ubuntu小白

#17

帖子 longf0720 » 2018-03-09 15:43

不知道楼主找到问题了没?
我这边遇到了和你一样的问题
希望可以帮助到你,

问题:
无法建立 SSL 连接。
可以看到给出的下载地址是https开头的
https://download.sublimetext.com/sublim ... 64.tar.bz2

我们无法访问这个网址,应该不是我们的问题
你只要把网址的s去掉,改为如下:
http://download.sublimetext.com/sublime ... 64.tar.bz2

就可以下载啦

然后解压,需要用到bzip和tar命令,自己上网百度一下

使用vim或者gedit打开sublime.desktop,参照里面的内部把文件放到正确的位置就好了。
.desktop文件相当于windows里面的快捷方式,可以自己研究一下怎么写,就能自己建立桌面快捷方式啦 :em11

当然,最简单的方式还是下载网上提供的deb包双击安装
longf0720
帖子: 14
注册时间: 2018-03-09 15:15
系统: Ubuntu16.04
送出感谢: 0
接收感谢: 0

Re: 安装sublime-text出错,ubuntu小白

#18

帖子 longf0720 » 2018-03-09 15:44

不知道楼主找到问题了没?
我这边遇到了和你一样的问题
希望可以帮助到你,

问题:
无法建立 SSL 连接。
可以看到给出的下载地址是https开头的
https://download.sublimetext.com/sublim ... 64.tar.bz2

我们无法访问这个网址,应该不是我们的问题
你只要把网址的s去掉,改为如下:
http://download.sublimetext.com/sublime ... 64.tar.bz2

就可以下载啦

然后解压,需要用到bzip和tar命令,自己上网百度一下

使用vim或者gedit打开sublime.desktop,参照里面的内部把文件放到正确的位置就好了。
.desktop文件相当于windows里面的快捷方式,可以自己研究一下怎么写,就能自己建立桌面快捷方式啦 :em11

当然,最简单的方式还是下载网上提供的deb包双击安装
fuhuizn
帖子: 740
注册时间: 2006-01-06 22:55
系统: ubuntu
送出感谢: 0
接收感谢: 14 次
联系:

Re: 安装sublime-text出错,ubuntu小白

#19

帖子 fuhuizn » 2018-03-11 13:32

推荐一个本人比较喜欢的编辑器:geany
安装方法:apt-get install geany

特点:
轻量,简单易用,但是功能强大。
回复

回到 “老旧版本支持”