我在使用ubuntu安装ambari玩,之前的下载,软件准备工作已经完毕,现在准备安装ambari:
添加ambari.list:
root@ggmarks:/etc/apt/sources.list.d# cat ambari.list
#VERSION_NUMBER=2.4.2.0-136
#deb http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.4.2.0 Ambari main
deb http://120.*.220/AMBARI-2.4.2.0/ubuntu14/2.4.2.0-136/ Ambari main
apache也准备好了,并且可用
在执行 apt-get update 之后报错,报403 forbidden :
W: Failed to fetch http://120.x.220/AMBARI-2.4.2.0/ubuntu14/dists/Ambari/main/binary-amd64/Packages 403 Forbidden [IP: 112.124.140.210 80]
W: Failed to fetch http://120.x.220/AMBARI-2.4.2.0/ubuntu14/dists/Ambari/main/binary-i386/Packages 403 Forbidden [IP: 112.124.140.210 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
报错信息如上,我只是做本机的apt-get update,这里出现的 [IP: 112.124.140.210 80] 是什么?这个是什么出错了,求教。另外这边
我也遇到了泪湿的问题
W: Failed to fetch http://ppa.launchpad.net/nginx/stable/ubuntu/dists/trusty/main/binary-amd64/Packages 403 Forbidden [IP: 112.124.140.210 80]
W: Failed to fetch http://ppa.launchpad.net/nginx/stable/ubuntu/dists/trusty/main/binary-i386/Packages 403 Forbidden [IP: 112.124.140.210 80]
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/trusty/main/binary-amd64/Packages 403 Forbidden [IP: 112.124.140.210 80]
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/trusty/main/binary-i386/Packages 403 Forbidden [IP: 112.124.140.210 80]
"I got the same error. It caused by the proxy of apt. After I removed the 'apt.conf' in the Dir '/etc/apt/', it works well. Maybe you can try this."
112.124.140.210 是apt代理地址,修改(或者删除)apt.conf文件,取消掉这个代理就可以了,当然不用代理的话您的ubuntu必须能够访问外网。
我刚刚也碰到了此问题,在 https://github.com/Kurento/bugtracker/issues/154 上找到的解决办法,亲测成功
补充一下,http://120.x.220/AMBARI-2.4.2.0/ubuntu14/2.4.2.0-136/dists/Ambari/main/binary-amd64/Packages 下边是有内容的,可以通过web直接查看
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。