terraform install_error ai_generated true

错误:安装提供程序失败:校验和不匹配

Error: Failed to install provider: checksum mismatch

ID: terraform/terraform-init-provider-checksum-mismatch

其他格式: JSON · Markdown 中文 · English
80%修复率
87%置信度
1证据数
2023-02-28首次发现

版本兼容性

版本状态引入弃用备注
Terraform v1.1+ active
Provider registry active

根因分析

下载的提供程序插件的校验和与 .terraform.lock.hcl 文件中记录的校验和不匹配。

English

The downloaded provider plugin's checksum does not match the one recorded in the .terraform.lock.hcl file.

generic

官方文档

https://developer.hashicorp.com/terraform/language/files/dependency-lock#checksum-verification

解决方案

  1. 运行 terraform init -upgrade 重新获取提供程序并用新校验和更新锁定文件
  2. 检查网络连接和代理设置;重新运行 terraform init

无效尝试

常见但无效的做法:

  1. 60% 失败

    Lock file regeneration may still fail if provider version is pinned; also loses security verification.

  2. 95% 失败

    Bypasses security; may lead to using tampered providers.