View Issue Details

IDProjectCategoryView StatusLast Update
0007555Kali LinuxFeature Requestspublic2025-07-14 09:36
Reportertsepol Assigned Toarnaudr  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionnot fixable 
Product Version2021.4 
Summary0007555: Hashicorp Terraform repo on kali
Description

Hi guys,
know this not the os problem, but asking if there's a way to add and successfully install terraform on kali.
Tried terraform installation guide and getting error messages, unforfunately they don't support kali distro, if there's a way for still make it work.

E: The repository 'https://apt.releases.hashicorp.com kali-rolling Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
Thanks in-advance.

Regards
Tsepo Lesibe

Activities

arnaudr

arnaudr

2022-02-03 02:49

manager   ~0015680

Hi,

Looking at https://www.terraform.io/downloads, I see that Terraform is provided as a package for Debian / Ubuntu. Kali Linux is based on Debian, so you should try to use a Debian release in the sources.list (eg. sid, bullseye) rather than a Kali release (ie. kali-rolling). It's not 100% guaranteed to work though, but chances are high that it will work, as Terraform is written in Go (a statically compiled language).

To be more explicit, here are the steps you should follow.

  1. Make sure to remove the repo that you previously added: edit the file /etc/apt/sources.list and remove the lines that refer to the repository apt.releases.hashicorp.com. You must be the root user to edit this file, so either open a root terminal, either use a command such as "sudoedit /etc/apt/sources.list".

  2. Now, add the hashicorp repository for the latest Debian release "bullseye", then run "apt update":


echo "deb [arch=amd64] https://apt.releases.hashicorp.com bullseye main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
apt update

At this point it should work and you should be able to install terraform.

As a sidenote: please ask this kind of questions on https://forums.kali.org/ instead, as this is not a bug in Kali. Thanks!

Issue History

Date Modified Username Field Change
2022-02-01 07:30 tsepol New Issue
2022-02-03 02:49 arnaudr Note Added: 0015680
2022-02-03 02:49 arnaudr Assigned To => arnaudr
2022-02-03 02:49 arnaudr Status new => closed
2022-02-03 02:49 arnaudr Resolution open => not fixable
2025-07-14 09:36 g0tmi1k Priority high => normal