[build] Add gpg keys for sonic-slave-bullseye in arm64 cross build on amd64. (#17182)

Fix #16204

Microsoft ADO (number only): 25746782

How I did it
multiarch/debian-debootstrap:arm64-bullseye is too old.
It needs to add some gpg keys before 'apt-get update'
This commit is contained in:
Liu Shilong 2023-11-16 15:58:39 +08:00 committed by GitHub
parent 8a95bff4e7
commit 27219fb61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,13 @@ RUN PATH=/python_virtualenv/env3/bin/:$PATH python3 -m pip uninstall -y enum34
RUN PATH=/python_virtualenv/env3/bin/:$PATH pip3 install --force-reinstall --no-cache-dir coverage RUN PATH=/python_virtualenv/env3/bin/:$PATH pip3 install --force-reinstall --no-cache-dir coverage
{%- endif %} {%- endif %}
{%- if CONFIGURED_ARCH == "arm64" and MULTIARCH_QEMU_ENVIRON == "y" %}
# multiarch/debian-debootstrap:arm64-bullseye is too old. It needs to install keys
RUN apt-get update || apt-get install -y gnupg
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
{%- endif %}
RUN apt-get update && apt-get install -y eatmydata && eatmydata apt-get install -y \ RUN apt-get update && apt-get install -y eatmydata && eatmydata apt-get install -y \
apt-utils \ apt-utils \
default-jre-headless \ default-jre-headless \