From 10b2a5a4ee1c5c6c16f61277b7795500f0a72886 Mon Sep 17 00:00:00 2001 From: Oded Le'Sage Date: Tue, 1 May 2018 16:39:01 -0500 Subject: [PATCH] Fixes add-apt-keys in dpkg element This commit addresses the issue described in bug 1768354 when using the apt-sources element and adding a key to a custom repo, subsequent deb package installs fail due no update of the repo before package install Change-Id: I968b3422fab2fb2305426d49215391d8ba7499df Closes-Bug: 1768354 --- diskimage_builder/elements/dpkg/pre-install.d/02-add-apt-keys | 2 ++ 1 file changed, 2 insertions(+) diff --git a/diskimage_builder/elements/dpkg/pre-install.d/02-add-apt-keys b/diskimage_builder/elements/dpkg/pre-install.d/02-add-apt-keys index 34cfc8f18..aa2f38ae0 100755 --- a/diskimage_builder/elements/dpkg/pre-install.d/02-add-apt-keys +++ b/diskimage_builder/elements/dpkg/pre-install.d/02-add-apt-keys @@ -33,3 +33,5 @@ for KEY in ${KEY_DIRECTORY}/*; do apt-key add ${KEY} done + +apt-get -y update