Debian repo seems unhappy

apt update seems a little broken using the Graylog repos:

Get:5 https://packages.graylog2.org/debian stable InRelease [1,926 B]
Err:5 https://packages.graylog2.org/debian stable InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done
E: Failed to fetch https://packages.graylog2.org/debian/dists/stable/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.

Indeed, curling those URLs seem to indicate an issue with what gets pulled down. Looks like there’s a redirect to the packages s3 bucket since I get redirected to

https://graylog2-package-repository.s3.eu-west-1.amazonaws.com/debian/dists/stable/Release?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20201119T183643Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Credential=AKIA...%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Signature=removed

@patcable I am unable to reproduce this on an Ubuntu 20.04 machine. It looks like you are using the wrong repository URL.

Please following the instructions here if you want to install the sources list file manually:

You can also use the repository package that will also install the correct GPG key automatically:

A quick fix is probably to change the entry in your sources.list like this:

- deb https://packages.graylog2.org/debian/ stable 4.0
+ deb https://packages.graylog2.org/repo/debian/ stable 4.0

Oh man… this is 100% my bad - so sorry for the package panic!

I was using Chef to deploy, and the Chef cookbook references this url for the gpg key. That moved, and the way that the error presented to me had me change the URL, and got the second error.

Happy to make a PR for the value at https://github.com/Graylog2/graylog2-cookbook/blob/master/attributes/default.rb#L22 if I know where it should be pulled from…

1 Like

No worries! :smile:

Oh, that’s a good catch! We removed the master branch from the fpm-recipes repository, that’s why it’s failing for you now. Sorry about that!

You can use the following URL to get the public key: https://packages.graylog2.org/repo/debian/pubkey.gpg

That’s in the debian path, but it’s the same for RPM. We will update our repos to copy the public key file into the RPM repos as well.

Thanks for the report! :+1: