diff --git a/x-pack/auditbeat/magefile.go b/x-pack/auditbeat/magefile.go index c5c3f150851..c2700e99620 100644 --- a/x-pack/auditbeat/magefile.go +++ b/x-pack/auditbeat/magefile.go @@ -223,6 +223,11 @@ func installDependencies(arch string, pkgs ...string) error { return err } - args := append([]string{"install", "-y", "--no-install-recommends"}, pkgs...) + // Due to the expired GPG keys in the old Debian version we must use `--force-yes` additionally to `-y`. + args := append([]string{ + "install", "-y", "--force-yes", + "--allow-unauthenticated", + "--no-install-recommends", + }, pkgs...) return sh.Run("apt-get", args...) }