使用certbot-auto自动部署ssl时,常常遇到一直卡在“Installing Python packages…”的情况,最简单有效的解决方法是:

1、下载文件

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto

2、编辑certbot-auto中的下载链接

vim certbot-auto
输入:/DEFAULT_INDEX_BASE查询,或则直接往后翻到1607行,可以看到一行信息:DEFAULT_INDEX_BASE = ‘https://pypi.python.org’
certbot-auto 一直卡在“Installing Python packages…”解决方法
直接将DEFAULT_INDEX_BASE = ‘https://pypi.python.org’ 修改为DEFAULT_INDEX_BASE = ‘https://mirrors.aliyun.com/pypi’,然后:/wq!保存。

certbot-auto 一直卡在“Installing Python packages…”解决方法

然后再正常运行certbot-auto,即可快速安装成功。

欢迎转载,转载记得保留出处~

相关文章:

  • 2022-12-23
  • 2021-11-18
  • 2021-09-27
  • 2021-07-18
  • 2022-01-22
  • 2022-12-23
  • 2022-03-06
  • 2021-07-06
猜你喜欢
  • 2021-06-16
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-08-09
  • 2021-05-07
相关资源
相似解决方案