按照有关如何安装mongodb的这些说明http://docs.mongodb.org/master/tutorial/install-mongodb-on-ubuntu/,我收到了一个错误:
$ sudo apt-get install mongodb-org
[sudo] password for alex:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libjpeg62 python-colorama python-distlib python-html5lib
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell
mongodb-org-tools
0 upgraded, 5 newly installed, 0 to remove and 15 not upgraded.
Need to get 50.7 MB of archives.
After this operation, 157 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
mongodb-org-shell mongodb-org-server mongodb-org-mongos mongodb-org-tools
mongodb-org
Install these packages without verification? [y/N] y
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-shell amd64 3.0.5
407 Proxy Authentication Required
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-server amd64 3.0.5
407 Proxy Authentication Required
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-mongos amd64 3.0.5
407 Proxy Authentication Required
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-tools amd64 3.0.5
407 Proxy Authentication Required
Err http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org amd64 3.0.5
407 Proxy Authentication Required
E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-shell_3.0.5_amd64.deb 407 Proxy Authentication Required
E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-server_3.0.5_amd64.deb 407 Proxy Authentication Required
E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-mongos_3.0.5_amd64.deb 407 Proxy Authentication Required
E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-tools_3.0.5_amd64.deb 407 Proxy Authentication Required
E: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org_3.0.5_amd64.deb 407 Proxy Authentication Required
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我没有通过互联网访问的代理。
在命令行中,查看是否可以执行以下操作:
$ echo "GET / HTTP/1.1
>
> " | nc repo.mongodb.org 80
请注意引号,netcat的字符串中有两个返回值(在您的系统上可能称为nc)。您应该收到如下响应。如果未安装netcat,则如果恰好安装了telnet,也可以使用telnet。
HTTP / 1.1 400错误的请求服务器:CloudFront日期:2015年8月6日星期四17:39:05 GMT内容类型:text / html内容长度:551连接:close X缓存:Cloudfront中的错误通过:1.1 7dcd2c4f2f9e03bee8b952ac4503c140.cloudfront .net(CloudFront)X-Amz-Cf-Id:A4aLCzPa4Wfqfp5eKZRWTLrUU79JdCrd7C0lDPfyj39fynCyZr_SI0A ==
错误:无法满足该请求
错误
无法满足该请求。
错误的请求。由cloudfront(CloudFront)生成的请求ID: A4aLCzPa4Wfqfp5eKZRWTLrU79JdCrd7C0lDPfyj39fynCyZr_SI0A ==
如果没有得到,则您的HTTP连接被某种代理(可能是TCP代理或透明代理)拦截-您需要与网络提供商联系以获取更多信息。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句