红联Linux门户
Linux帮助

aliyun ubuntu读取第三方源被forbidden的问题

发布时间:2017-02-21 17:52:28来源:linux网站作者:小石G
使用下面指令添加了一个源:
sudo add-apt-repository ppa:webupd8team/java  
 
然后update的时候提示:
W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/trusty/main/binary-amd64/Packages: 403  Forbidden [IP: 112.124.140.210 80]  
W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/trusty/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.  
E: Couldn't rebuild package cache  
 
根据网友的提示,看了一下apt的设置,发现以下配置:
Acquire::http::Proxy "http://mirrors.aliyun.com/";  
 
注释掉,就Ok了,阿里云对镜像的此类修改有点不合理。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/28576.html