Ubuntu 16超时错误

时间:2018-01-04 13:58:27

标签: git ubuntu timeout

如果我试图更新我的ubuntu

  

sudo apt-get update

最后我收到错误:

  

错误http://neurodebian.g-node.org数据InRelease

     

Err http://neurodebian.g-node.org yakkety InRelease

     

错误http://neurodebian.g-node.org数据Release.gpg无法连接   to neurodebian.g-node.org:http:Err http://neurodebian.g-node.org   yakkety Release.gpg无法连接   neurodebian.g-node.org:http:在2分0秒(30.4 kB / s)内获取3,653 kB   阅读包列表...完成W:无法获取   http://neurodebian.g-node.org/dists/data/InRelease

     

W:无法获取   http://neurodebian.g-node.org/dists/yakkety/InRelease

     

W:无法获取   http://neurodebian.g-node.org/dists/data/Release.gpg无法做到   连接到neurodebian.g-node.org:http:

     

W:无法获取   http://neurodebian.g-node.org/dists/yakkety/Release.gpg无法做到   连接到neurodebian.g-node.org:http:

     

W:某些索引文件无法下载。他们被忽视或者老了   而是使用的。

当我试图克隆git时:

git clone https://github.com/rbenv/rbenv.git ~/.rbenv

我得到了:

  

致命:无法访问' https://github.com/rbenv/rbenv.git/':无法连接到github.com端口443:连接超时

如果我尝试使用wayback machine downloader,我会收到错误:

  

获取快照页面/ usr / lib / ruby​​ / 1.9.1 / net / http.rb:763:in   initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT) from /usr/lib/ruby/1.9.1/net/http.rb:763:in开放&#39;           来自/usr/lib/ruby/1.9.1/net/http.rb:763:in block in connect' from /usr/lib/ruby/1.9.1/timeout.rb:55:in超时&#39;           来自/usr/lib/ruby/1.9.1/timeout.rb:100:in timeout' from /usr/lib/ruby/1.9.1/net/http.rb:763:in connect&#39;           来自/usr/lib/ruby/1.9.1/net/http.rb:756:in do_start' from /usr/lib/ruby/1.9.1/net/http.rb:745:in开始&#39;           来自/usr/lib/ruby/1.9.1/open-uri.rb:306:in open_http' from /usr/lib/ruby/1.9.1/open-uri.rb:775:in buffer_open&#39;           来自/usr/lib/ruby/1.9.1/open-uri.rb:203:in block in open_loop' from /usr/lib/ruby/1.9.1/open-uri.rb:201:in catch&#39;           来自/usr/lib/ruby/1.9.1/open-uri.rb:201:in open_loop' from /usr/lib/ruby/1.9.1/open-uri.rb:146:in open_uri&#39;           来自/usr/lib/ruby/1.9.1/open-uri.rb:677:in open' from /usr/lib/ruby/1.9.1/open-uri.rb:33:in打开&#39;           来自/var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader/archive_api.rb:8:in   get_raw_list_from_api' from /var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:88:in get_all_snapshots_to_consider&#39;           来自/var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:105:in   get_file_list_curated' from /var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:168:in get_file_list_by_timestamp&#39;           来自/var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:309:in   file_list_by_timestamp' from /var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:192:in download_files&#39;           来自/var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/bin/wayback_machine_downloader:72:in   <top (required)>' from /usr/local/bin/wayback_machine_downloader:23:in负载&#39;           来自/ usr / local / bin / wayback_machine_downloader:23:在`&#39;

任何想法可能出错?

1 个答案:

答案 0 :(得分:0)

您单向“脱机”(拔掉电缆)或其他(您的网关不允许您离开)。参见例如https://www.a2hosting.com/kb/getting-started-guide/internet-and-networking/troubleshooting-network-connectivity-with-ping-and-traceroute使用ping,traceroute等命令对您的网络连接进行故障排除