解决sublime Text3无法安装插件问题 -- There are no packages available for installation

本文介绍了解决Sublime Text 3插件安装时遇到的There are no packages available for installation错误的方法。该错误通常由于IPv6不被ISP支持导致。文章提供了具体的步骤来解决此问题,包括获取IPv4地址并修改hosts文件。

今天在安装sublimeText3插件时遇到错误,弹出一个对话框说没有可供安装的包,内容为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:Windowssystem32driversetc 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文件就行了。

Hosts文件在C:\Windows\System32\drivers\etc 目录下(我的是WIN7 64位系统)

如果在终端使用ping命令时遇到如下错误

\

可以到这里(在线Ping工具)查寻其IP地址:http://serve.netsh.org/pub/ping.php

转载于:https://www.cnblogs.com/pdq-phper/p/5091858.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值