Empty debian repository

Hi,

I followed the instruction to install vault on debian from Downloads | Vault by HashiCorp

curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install vault

but I get a “The repository “https://apt.releases.hashicorp.com ulyssa Release” does not contain a release file” (translated from my german message) in the last step.

Are documentation and repository up to date?

1 Like

I think release names are only supported for Debian and Ubuntu, not Linux Mint.

I’m getting the same error - using Ubuntu 18.04.

I found this article: Announcing the HashiCorp Linux Repository

Which says ‘The Debian and RPM packages currently target popular x86_64/amd64 systemd systems. The repository supports many versions of Debian, Ubuntu, Fedora, CentOS, RHEL, and AmazonLinux. If your platform is not in this list but your system is compatible with Debian or RPM packages, you can still add the repository by specifying a supported release name for apt or $releasever for yum or dnf when you add the repository. This support will expand to other architectures and platforms in the future.’ I do not know how to modify the script to specify a release version, nor do I know what I can / should put in?

I think @jrasell can help here.

To solve this you just need to change the variable in the apt, Yum or DNF to the compatible code name.

For example, the OP is using apt and the error is -

“The repository “https://apt.releases.hashicorp.com ulyssa Release” does not contain a release file”

So you would need to change the expression $(lsb_release -cs) (which gets the code name of the release) to focal

sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com focal main"

You would do the equivalent if using Yum or DNF.

If you have already added the repo using the wrong version you will need to remove it first

2 Likes