如果我试图更新我的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
开放' 来自/usr/lib/ruby/1.9.1/net/http.rb:763:inblock in connect' from /usr/lib/ruby/1.9.1/timeout.rb:55:in
超时' 来自/usr/lib/ruby/1.9.1/timeout.rb:100:intimeout' from /usr/lib/ruby/1.9.1/net/http.rb:763:in
connect' 来自/usr/lib/ruby/1.9.1/net/http.rb:756:indo_start' from /usr/lib/ruby/1.9.1/net/http.rb:745:in
开始' 来自/usr/lib/ruby/1.9.1/open-uri.rb:306:inopen_http' from /usr/lib/ruby/1.9.1/open-uri.rb:775:in
buffer_open' 来自/usr/lib/ruby/1.9.1/open-uri.rb:203:inblock in open_loop' from /usr/lib/ruby/1.9.1/open-uri.rb:201:in
catch' 来自/usr/lib/ruby/1.9.1/open-uri.rb:201:inopen_loop' from /usr/lib/ruby/1.9.1/open-uri.rb:146:in
open_uri' 来自/usr/lib/ruby/1.9.1/open-uri.rb:677:inopen' from /usr/lib/ruby/1.9.1/open-uri.rb:33:in
打开' 来自/var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader/archive_api.rb:8:inget_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' 来自/var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:105:inget_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' 来自/var/lib/gems/1.9.1/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:309:infile_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;
任何想法可能出错?
答案 0 :(得分:0)
您单向“脱机”(拔掉电缆)或其他(您的网关不允许您离开)。参见例如https://www.a2hosting.com/kb/getting-started-guide/internet-and-networking/troubleshooting-network-connectivity-with-ping-and-traceroute使用ping,traceroute等命令对您的网络连接进行故障排除