Here’s the hacky workaround if you’re not using ansible and just installing it manually.
Manually add the repository for jammy:
echo "deb https://packagecloud.io/sensu/stable/ubuntu/ jammy main" | sudo tee /etc/apt/sources.list.d/sensu.list
If the directory /etc/apt/keyrings does not already exist, create it:
sudo mkdir -p /etc/apt/keyrings
Download and add the Sensu GPG key:
curl -fsSL https://packagecloud.io/sensu/stable/gpgkey | sudo gpg --dearmor -o /etc/apt/keyrings/sensu.gpg
Create a file to configure the GPG key:
echo "deb [signed-by=/etc/apt/keyrings/sensu.gpg] https://packagecloud.io/sensu/stable/ubuntu/ jammy main" | sudo tee /etc/apt/sources.list.d/sensu.list
Update your package lists:
sudo apt-get update -y
Now try to install Sensu:
sudo apt-get install -y sensu-go-agent