解决sublimeText3无法安装插件问题 -- There are no packages available for installation
2016-10-27 09:44
916 查看
There are no packages available for installation错误
今天在安装Sublime Text 3插件时遇到错误,弹出一个对话框说没有可供安装的包,提示原文为There are no packages available for installation,对话框如下图:经过google搜索,在stackoverflow的问答中找到解决办法,详情可以参考这里:http://stackoverflow.com/questions/25105139/sublime-text-2-there-are-no-packages-available-for-installation,解决办法就是这个问题被采纳的答案所描述的。
据说是IPv6的原因,如果我们的Intent服务提供者(ISP)不支持IPv6就会引发上述错误,原文如下:
This error is happened with IPv6 problem. If your Internet Service Provider (ISP) does not support for IPv6 you got this error.
解决办法(windows平台)
上面链接中给出的解决办法原文如下:Step 1:
Get IPv4 address of sublime.wbond.NET
Try this command line on terminal
ping sublime.wbond.Net
Now you can get IPv4 address of sublime.wbond.net.
Step 2:
Now open hosts file from
C:\Windows\system32\drivers\etc\folder and add this line (replcae {IPv4 address})
{IPv4 address} sublime.wbond.net.
All is ok. Let's play with Package controller.
从上面的描述可以知道首先需要获取sublime.wbond.net网站的IPv4地址,然后修改hosts文件就行了。
如果在终端使用ping命令时遇到如下错误
可以到这里(在线Ping工具)查寻其IP地址:http://serve.netsh.org/pub/ping.php
然后修改hosts文件就可以了,在hosts文件中添加一行,其中IP是ping命令得到的,如下所示:
[plain] view
plain copy
50.116.34.243 sublime.wbond.net
经过上面的步骤,再 Ctrl+Shift+P 打开 Package Control: Install Package 安装插件就可以了
Package Control
至于 Package Control 插件的安装,可以参考这里:https://sublime.wbond.net/installation
第一种方法
打开控制台(ctrl+` 快捷键或者 View > Show Console 菜单),然后输入下面的代码:[plain] view
plain copy
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
第二种方法
手动下载插件包:https://sublime.wbond.net/Package%20Control.sublime-package,复制到%SumlimeText_HOME%\Data\InstalledPackages路径,重启 sublimeText 就行了。
相关文章推荐
- 解决sublimeText3无法安装插件问题 -- There are no packages available for installation
- 解决sublimeText3无法安装插件问题 -- There are no packages available for installation
- 解决sublimeText3无法安装插件有关问题 - There are no packages available for installation
- 解决sublimeText3无法安装插件问题 -- There are no packages available for installation
- 解决sublimeText3无法安装插件有关问题 - There are no packages available for installation
- 解决sublime Text3无法安装插件问题 -- There are no packages available for installation
- sublime text安装插件时提示There are no packages available for installation问题解决
- SublimeText3无法安装插件,弹出对话框Package Control:There are no packages available for installation
- there are no packages available for installation插件安装问题 及解决方法
- there are no packages available for installation插件安装问题和如何配置浏览器的快捷键
- sublime Text3插件无法安装解决方法(提示There are no packages available installation)
- 解决sublime text 安装扩展提示There are no packages available for installation问题
- 解决 sublime text 3 初次安装emmet插件 出现There are no packages available for installation
- Sublime Text3 安装插件出错 There are no packages available for installation
- sublime text 插件安装报错:there are no packages available for installation
- 解决sublime package control 出现There are no packages available for installation
- Sublime Text 2 - There are no packages available for installation 解决方法(亲测可行)
- 解决Sublime包管理package control 报错 There are no packages available for installation
- sublime There are no packages available for installation错误解决办法
- 解决Sublime包管理package control 报错 There are no packages available for installation