From 320366ab60f27ef618698685ee137e13c4c2a5e3 Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Tue, 28 Mar 2023 14:04:33 +0800 Subject: [PATCH] [Build] Fix the installation candidate not found issue when building docker-sonic-vs (#14439) Why I did it Fix the installation candidate not found issue when building docker-sonic-vs How I did it Need to run the command "apt-get update" to update the mirror indexes before installing the package gnupg How to verify it --- platform/vs/docker-sonic-vs/Dockerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vs/docker-sonic-vs/Dockerfile.j2 b/platform/vs/docker-sonic-vs/Dockerfile.j2 index 437261bbb1..4b356fa1a1 100644 --- a/platform/vs/docker-sonic-vs/Dockerfile.j2 +++ b/platform/vs/docker-sonic-vs/Dockerfile.j2 @@ -8,7 +8,7 @@ RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%s ## Make apt-get non-interactive ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get install -y gnupg +RUN apt-get update && apt-get install -y gnupg COPY ["sonic-dev.gpg.key", "/etc/apt/"] RUN apt-key add /etc/apt/sonic-dev.gpg.key RUN echo "deb http://packages.microsoft.com/repos/sonic-dev/ jessie main" >> /etc/apt/sources.list