'Failed to install provider ... doesn't match checksums from dependency lock file' error in Terraform

Jul 11, 2022 · 1 min read · Post a comment

For today’s Terraform error of the week series we are going to take a look at the following one:

│ Error: Failed to install provider
│ Error while installing terra-farm/xenorchestra v0.23.2: the current package for
│ registry.terraform.io/terra-farm/xenorchestra v0.23.2 doesn't match any of the
│ checksums previously recorded in the dependency lock file


  • Terraform


Step 1. Remove the dependency lock file.

rm .terraform.lock.hcl

Step 2. Run the following command:

terraform providers lock -platform=windows_amd64 -platform=darwin_amd64 -platform=linux_amd64

Basically, the command will try to create or update an existing dependency lock file (.terraform.lock.hcl) with all platforms supported by Terraform.


Tried everything and nothing works? Let me know. On a side note, follow our official channel on Telegram.