Ubuntu 23.10 Mantic Minotaur is not supported by the Hashicorp Repository yet

Currently it is not possible to install terraform CLI on Ubuntu via the Hashicorp Repository.

The repo gets added but cannot be updated as there is no support for Ubuntu 23.10 (mantic).

This error gets thrown

E: The repository 'https://apt.releases.hashicorp.com mantic Release' does not have a Release file.

Is there any ETA or plans to fix this by adding support for Ubuntu 23.10 and packaging “mantic” releases into the Hashicorp Ubuntu repository?

1 Like

Running into the same issue here! Any updates on this?

No update, but you can keep your eye on the official packaging guide, when this gets updated it means the build process has been updated to include the new distro version. Thanks!

Getting the same issue when trying to install Terraform on Docker image based from Ubuntu 23.10.

I also tried the way below to skip checking the Codename (mantic) and directly download the ZIP package of Terraform. Every command looks running well without any error reported.

wget "https://releases.hashicorp.com/terraform/${terraform_ver}/terraform_${terraform_ver}_linux_amd64.zip" \
    && 7z e terraform_${terraform_ver}_linux_amd64.zip -oterraform_${terraform_ver}/bin \
    && rm terraform_${terraform_ver}_linux_amd64.zip \
    && mv terraform_${terraform_ver} /usr/share/ \
    && update-alternatives --install "/usr/bin/terraform" "terraform" "/usr/share/terraform_${terraform_ver}/bin/terraform" 1 \
    && update-alternatives --set terraform /usr/share/terraform_${terraform_ver}/bin/terraform

But when I try to call the terraform command, it returns the error says “terraform: command not found”.

Once this distribution is supported its Terraform packages will be exactly the same as for every other Debian and Ubuntu distribution release, because Terraform is distributed as a statically-linked executable that depends only on the Linux kernel and not on anything else in your distribution.

Therefore you can use the name of any already-supported release instead of mantic and get the same effect.

This is not necessarily true for all other packages in the HashiCorp APT repository, because some of the software distributed there depends on other system libraries. Therefore I would not suggest using this workaround if you intend to install anything other than the terraform package, but if Terraform is all you need then any supported distribution codename should work just the same.