Dart pub安装x86_64 SocketIOException

时间:2013-12-22 16:58:13

标签: linux dart dart-pub

尝试运行" pub install"对于项目,请按照此处的说明操作: http://news.dartlang.org/2013/01/big-breaking-change-dartjs-bootstrap-file-moving-to-pub.html

在这里:

http://pub.dartlang.org/packages/browser

尝试调用pub install时,我在下面的完整详细输出中遇到异常。

我在x86_64 Ubuntu linux上使用dart SDK版本0.2.9.9_r16323。

我应该采取哪些不同的方式来安装浏览器包?

跟踪:

joe@joe-desktop-2:~/shared/programming/appengine/joesarre/tstormdart$ pub -v install
IO  : Seeing if file /media/mass/home/joe/programming/tstormdart/pubspec.yaml exists.
IO  : File /media/mass/home/joe/programming/tstormdart/pubspec.yaml exists.
IO  : Reading text file /media/mass/home/joe/programming/tstormdart/pubspec.yaml.
IO  : Read /media/mass/home/joe/programming/tstormdart/pubspec.yaml. Contents:
    | name:  tstormdart
    | description:  A sample application
    | 
    | dependencies:
    | #  js: any
    | #  unittest: { sdk: unittest }
    |    browser: any
    | 
    | 
FINE: Loading lockfile.
IO  : Seeing if file /media/mass/home/joe/programming/tstormdart/pubspec.lock exists.
IO  : File /media/mass/home/joe/programming/tstormdart/pubspec.lock exists.
IO  : Reading text file /media/mass/home/joe/programming/tstormdart/pubspec.lock.
IO  : Read /media/mass/home/joe/programming/tstormdart/pubspec.lock. Contents:
    | {"packages":{}}
MSG : Resolving dependencies...
FINE: Adding (entrypoint)'s constraint tstormdart 0.0.0 from root (tstormdart).
FINE: Changing tstormdart to version 0.0.0.
FINE: Adding tstormdart's constraint browser any from hosted (browser).
IO  : Sending HTTP request GET http://pub.dartlang.org/packages/browser.json.
FINE: Got response 200 OK.
FINE: Changing browser to version 0.9.0.
IO  : Sending HTTP request GET http://pub.dartlang.org/packages/browser/versions/0.9.0.yaml.
FINE: Got response 200 OK.
IO  : Seeing if directory /media/mass/home/joe/programming/tstormdart/packages exists.
IO  : Directory /media/mass/home/joe/programming/tstormdart/packages exists.
IO  : Begin delete directory /media/mass/home/joe/programming/tstormdart/packages.
IO  : End delete directory /media/mass/home/joe/programming/tstormdart/packages.
IO  : Begin create directory /media/mass/home/joe/programming/tstormdart/packages.
IO  : End create directory /media/mass/home/joe/programming/tstormdart/packages.
FINE: Ensuring directory /media/mass/home/joe/programming/tstormdart/packages exists.
IO  : Seeing if directory /media/mass/home/joe/programming/tstormdart/packages exists.
IO  : Directory /media/mass/home/joe/programming/tstormdart/packages exists.
FINE: Directory /media/mass/home/joe/programming/tstormdart/packages already exists.
IO  : Seeing if file /media/mass/home/joe/programming/tstormdart/packages/browser exists.
IO  : Seeing if directory /media/mass/home/joe/programming/tstormdart/packages/browser exists.
IO  : File /media/mass/home/joe/programming/tstormdart/packages/browser does not exist.
IO  : Directory /media/mass/home/joe/programming/tstormdart/packages/browser does not exist.
IO  : Seeing if file /home/joe/.pub-cache/hosted/pub.dartlang.org/browser-0.9.0 exists.
IO  : Seeing if directory /home/joe/.pub-cache/hosted/pub.dartlang.org/browser-0.9.0 exists.
IO  : File /home/joe/.pub-cache/hosted/pub.dartlang.org/browser-0.9.0 does not exist.
IO  : Directory /home/joe/.pub-cache/hosted/pub.dartlang.org/browser-0.9.0 does not exist.
FINE: Ensuring directory /home/joe/.pub-cache/hosted/pub.dartlang.org exists.
IO  : Seeing if directory /home/joe/.pub-cache/hosted/pub.dartlang.org exists.
IO  : Directory /home/joe/.pub-cache/hosted/pub.dartlang.org exists.
FINE: Directory /home/joe/.pub-cache/hosted/pub.dartlang.org already exists.
MSG : Downloading browser 0.9.0...
IO  : Sending HTTP request GET http://pub.dartlang.org/packages/browser/versions/0.9.0.tar.gz.
FINE: Ensuring directory /home/joe/.pub-cache/_temp exists.
IO  : Seeing if directory /home/joe/.pub-cache/_temp exists.
IO  : Directory /home/joe/.pub-cache/_temp does not exist.
FINE: Ensuring directory /home/joe/.pub-cache exists.
IO  : Seeing if directory /home/joe/.pub-cache exists.
IO  : Directory /home/joe/.pub-cache exists.
FINE: Directory /home/joe/.pub-cache already exists.
IO  : Begin create directory /home/joe/.pub-cache/_temp.
IO  : End create directory /home/joe/.pub-cache/_temp.
IO  : Begin create temp directory /home/joe/.pub-cache/_temp/dir.
IO  : End create temp directory /home/joe/.pub-cache/_temp/dir.
Unhandled exception:
SocketIOException: Unexpected handshake error in client (OS Error: errno = -12268)
#0      _SecureFilterImpl.handshake (dart:io-patch:870:8)
#1      _SecureSocket._secureHandshake (dart:io:7393:27)
#2      _SecureSocket._secureConnectHandler._secureConnectHandler (dart:io:7305:21)
#3      _Socket._updateOutHandler.firstWriteHandler (dart:io-patch:773:64)
#4      _SocketBase._multiplex (dart:io-patch:408:26)
#5      _SocketBase._sendToEventHandler.<anonymous closure> (dart:io-patch:509:20)
#6      _ReceivePortImpl._handleMessage (dart:isolate-patch:37:92)

1 个答案:

答案 0 :(得分:0)

我尝试下载Linux x64版本,并获得了当前版本。

很高兴看到您过期版本的更新有效(帮助&gt;关于&gt;检查更新)。