Skip to content

Commit

Permalink
Disable repository expiration checks in Journalbeat builds (elastic#1…
Browse files Browse the repository at this point in the history
…8005) (elastic#18016)

(cherry picked from commit 7f037bf)
  • Loading branch information
jsoriano authored Apr 27, 2020
1 parent 3ba2d22 commit 3d7f736
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion journalbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,15 @@ func installDependencies(arch string, pkgs ...string) error {
return err
}

params := append([]string{"install", "-y", "--no-install-recommends"}, pkgs...)
params := append([]string{"install", "-y",
"--no-install-recommends",

// Journalbeat is built with old versions of Debian that don't update
// their repositories, so they have expired keys.
// Allow unauthenticated packages.
// This was not enough: "-o", "Acquire::Check-Valid-Until=false",
"--allow-unauthenticated",
}, pkgs...)
return sh.Run("apt-get", params...)
}

Expand Down

0 comments on commit 3d7f736

Please sign in to comment.