我最近想安装 sublime text,并找到了一种下载安装程序的方法(使用 PPA),安装程序运行并通过 HTTPS 下载实际软件包,它运行大约 15 分钟,然后出现“超时”,我尝试使用 wget 手动测试下载软件包,wget 做同样的事情,首先它尝试连接到服务器,然后连接成功,之后什么都没有发生,直到再次出现“超时”消息,显然我无法通过 HTTPS 下载文件,但我可以使用 HTTPS 访问网站。有什么建议吗?
这是安装包时终端中的输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sublime-text-installer
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
Need to get 0 B/9,482 B of archives.
After this operation, 26.6 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package sublime-text-installer.
(Reading database ... 242647 files and directories currently installed.)
Preparing to unpack .../sublime-text-installer_3114-2~webupd8~0_all.deb ...
Downloading...
--2016-08-13 14:34:55-- https://download.sublimetext.com/sublime_text_3_build_3114_x64.tar.bz2
Resolving download.sublimetext.com (download.sublimetext.com)... 104.236.0.104
Connecting to download.sublimetext.com (download.sublimetext.com)|104.236.0.104|:443... connected.
Unable to establish SSL connection.
download failed
Download done.
Removing outdated cached downloads...
sha256sum mismatch sublime_text_3_build_3114_x64.tar.bz2
Sublime Text is NOT installed.
dpkg: error processing archive /var/cache/apt/archives/sublime-text-installer_3114-2~webupd8~0_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/sublime-text-installer_3114-2~webupd8~0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish
答案1
从以下位置安装 Sublime (v3)Webupd8苯丙胺:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
或者
从以下位置安装 Sublime (v2)Webupd8苯丙胺:
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
刚刚尝试了这些ppas
。一切正常。