阿里云服务器 Ubuntu 16.04 添加了 certbot 的源以后执行 apt update,会遇到报错,类似这样

W: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/xenial/main/binary-amd64/Packages 502 Bad Gateway [IP: 140.205.132.245 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

解决方案:
sudo vi /etc/apt/apt.conf
注释其中的 Acquire::http::Proxy "http://mirrors.aliyun.com/"; 即可

标签: none

添加新评论