Skip to content

Commit 320366a

Browse files
authored
[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
1 parent 9726ec8 commit 320366a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/vs/docker-sonic-vs/Dockerfile.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%s
88
## Make apt-get non-interactive
99
ENV DEBIAN_FRONTEND=noninteractive
1010

11-
RUN apt-get install -y gnupg
11+
RUN apt-get update && apt-get install -y gnupg
1212
COPY ["sonic-dev.gpg.key", "/etc/apt/"]
1313
RUN apt-key add /etc/apt/sonic-dev.gpg.key
1414
RUN echo "deb http://packages.microsoft.com/repos/sonic-dev/ jessie main" >> /etc/apt/sources.list

0 commit comments

Comments
 (0)