且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java EE 7更新工具安装失败

更新时间:2023-12-04 16:34:36

我拥有相同的功能 - 这是因为他们的网站速度非常慢。

你显示的输出告诉你该做什么,增加超时。



但是有时它只是需要再次运行,这在我的工作中情况。


I have tried to install Java EE 7 with updatetool to be able to run Java EE Tutorial examples.

But the installation of updatetool fails. I have tried to start updatetool installation from the command line on my elementary os, then I saw the error when installing updatetool.

Here is an image: http://oi58.tinypic.com/x6iumx.jpg

Error text example 1:

Input/output error: Connection failed for URL http://pkg.oracle.com/javaeesdk/7/native/release/manifest/0/updatetool@2.3.5%2C0-56.2852%3A20111207T211721Z: 503: Service Temporarily Unavailable

Could not download application packages. This could be because:
  - a proxy server is needed to access the internet. Please ensure that
    the system proxy server settings are correct, or set the 'http_proxy'
    environment variable to the full URL of the proxy server.
  - the package server or network connection is slow.
    If you are getting time out errors you can try setting the
    PKG_CLIENT_CONNECT_TIMEOUT and PKG_CLIENT_READ_TIMEOUT
    environment variables and try again. For example to increase
    the timeouts to 300 seconds set them to 300
  - the package server is down or otherwise inaccessible or it is
    generating invalid data. Please contact the provider of the package
    server.

Error text example 2:

File 138/564 Input/output error: Connection failed for URL http: //pkg.oracle.com/javaeesdk/7/native/release/file/0/217e83782a91f09fa7f35122412cd155263b107f: 502: Proxy Error

Could not download application packages. This could be because:
  - a proxy server is needed to access the internet. Please ensure that
    the system proxy server settings are correct, or set the 'http_proxy'
    environment variable to the full URL of the proxy server.
  - the package server or network connection is slow.
    If you are getting time out errors you can try setting the
    PKG_CLIENT_CONNECT_TIMEOUT and PKG_CLIENT_READ_TIMEOUT
    environment variables and try again. For example to increase
    the timeouts to 300 seconds set them to 300
  - the package server is down or otherwise inaccessible or it is
    generating invalid data. Please contact the provider of the package
    server.

I don't use any proxy server. Help please!

I had the same - it's because their site is so unbelievably slow.

The output you showed tells you what to do, increase the timeout.

But sometimes it just needs to be run again, which worked in my case.