terraform
terraform copied to clipboard
Linux repository doesn't works on Fedora 40
Terraform Version
Terraform v1.8.1
on linux_amd64
Terraform Configuration Files
[hashicorp]
name=Hashicorp Stable - $basearch
baseurl=https://rpm.releases.hashicorp.com/fedora/$releasever/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://rpm.releases.hashicorp.com/gpg
[hashicorp-test]
name=Hashicorp Test - $basearch
baseurl=https://rpm.releases.hashicorp.com/fedora/$releasever/$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://rpm.releases.hashicorp.com/gpg
Debug Output
no debug output to show
Expected Behavior
The expected behavior is to be able to update packages
Actual Behavior
Errors during downloading metadata for repository 'hashicorp':
- Status code: 404 for https://rpm.releases.hashicorp.com/fedora/40/x86_64/stable/repodata/repomd.xml (IP: 18.66.218.10) Error: Failed to download metadata for repo 'hashicorp': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Steps to Reproduce
- Install Fedora 40
- Install hashicorp Linux repository
- Try to install terraform
Additional Context
The repository working fine with Fedora 39.
References
No response
Per the Official Packaging Guide, Fedora 40 is not yet supported.
Similar to https://github.com/hashicorp/vault/issues/26643 for vault.
If you need to get around this for now, download the binary directly from https://developer.hashicorp.com/terraform/install, extract it, and drop it in /usr/local/bin or somewhere else in your path.
True, that works. Although if you want to stick to RPMs and managing your setup using that, the easier approach is to replace $releasever in the .repo file with 39. The Fedora 39 binary will work on 40. When the 40 repo is available you can just reset that, and dnf/yum/rpm should work out the update path.
no terraform on fedora 40? this blocks my work workflow because i need to constantly install newer and older terraform versions because of loads of terraform repos with different versions. As IBM owns now hashicorp and redhat, I hope really they will sort such problems out in the future..
still no fedora 40 repo
It seems to now be available.
The packaging guide has also been updated, which would indicate official support. Thanks!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.