Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[master] debian buster-backports does not have a Release file. #18679

Closed
oplklum opened this issue Apr 15, 2024 · 13 comments
Closed

[master] debian buster-backports does not have a Release file. #18679

oplklum opened this issue Apr 15, 2024 · 13 comments

Comments

@oplklum
Copy link

oplklum commented Apr 15, 2024

Description

I cloned the latest sonic buildimage code and built sonic on a new machine. There was a error reported "E: The repository 'http://debian-archive.trafficmanager.net/debian buster-backports Release" does not have a Release file." when I executed "make configure PLATFORM=vs". So I think this is an outdated repository for buster-backports. Would someone please have look at this problem?

Steps to reproduce the issue:

  1. docker system prune -a
  2. make init
  3. make configure PLATFORM=vs

Describe the results you received:

sonic@sonic-vs:~/sonic/sonic-buildimage$ make configure PLATFORM=vs
+++ Cheking platform/vs +++
+++ Making configure +++
BLDENV=buster make -f Makefile.work configure
make[1]: Entering directory '/home/sonic/sonic/sonic-buildimage'
"SECURE_UPGRADE_PROD_SIGNING_TOOL": ""
~/sonic/sonic-buildimage/src/sonic-build-hooks ~/sonic/sonic-buildimage
make[2]: Entering directory '/home/sonic/sonic/sonic-buildimage/src/sonic-build-hooks'
dpkg-deb: building package 'sonic-build-hooks' in 'buildinfo/sonic-build-hooks_1.0_all.deb'.
make[2]: Leaving directory '/home/sonic/sonic/sonic-buildimage/src/sonic-build-hooks'
~/sonic/sonic-buildimage
Checking sonic-slave-base image: sonic-slave-buster:1137ac71c88
Image sonic-slave-buster:1137ac71c88 not found. Building...
Sending build context to Docker daemon  274.9kB
Step 1/83 : FROM debian:buster
 ---> 62c6ce6585a3
Step 2/83 : MAINTAINER gulv@microsoft.com
 ---> Running in 4cf57f787041
Removing intermediate container 4cf57f787041
 ---> 228a2006accb
Step 3/83 : COPY ["no-check-valid-until", "/etc/apt/apt.conf.d/"]
 ---> dc18d8391bc3
Step 4/83 : COPY ["apt-retries-count", "/etc/apt/apt.conf.d"]
 ---> 00ff3ed755ab
Step 5/83 : COPY ["sources.list.amd64", "/etc/apt/sources.list"]
 ---> 3e9fb352e5d8
Step 6/83 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Running in 43cad157f270
Removing intermediate container 43cad157f270
 ---> 4f345fcdd1f2
Step 7/83 : ARG SONIC_VERSION_CACHE
 ---> Running in f8e901f5337e
Removing intermediate container f8e901f5337e
 ---> 58ad2528e45d
Step 8/83 : ARG SONIC_VERSION_CONTROL_COMPONENTS
 ---> Running in b9c2db6ad25d
Removing intermediate container b9c2db6ad25d
 ---> 1a4ef0315717
Step 9/83 : COPY ["buildinfo", "/usr/local/share/buildinfo"]
 ---> eae4b1d1b145
Step 10/83 : COPY vcache/ /sonic/target/vcache/sonic-slave-buster
 ---> 6e60cd4a3a36
Step 11/83 : RUN dpkg -i /usr/local/share/buildinfo/sonic-build-hooks_1.0_all.deb
 ---> Running in 6b62536c3168
Selecting previously unselected package sonic-build-hooks.
(Reading database ... 6686 files and directories currently installed.)
Preparing to unpack .../sonic-build-hooks_1.0_all.deb ...
Unpacking sonic-build-hooks (1.0) ...
Setting up sonic-build-hooks (1.0) ...
Removing intermediate container 6b62536c3168
 ---> b050d644dd5d
Step 12/83 : ENV IMAGENAME=sonic-slave-buster
 ---> Running in e78d8678a2e7
Removing intermediate container e78d8678a2e7
 ---> 2a9ce85af975
Step 13/83 : ENV DISTRO=buster
 ---> Running in a76db715d25d
Removing intermediate container a76db715d25d
 ---> e22b46a924b8
Step 14/83 : RUN pre_run_buildinfo sonic-slave-buster
 ---> Running in 53d2d99b90d5
Removing intermediate container 53d2d99b90d5
 ---> a7b3390e3543
Step 15/83 : RUN apt-get update && apt-get install -y eatmydata && eatmydata apt-get install -y         apt-utils         default-jre-headless         openssh-server         curl         wget         unzip         gzip         git         build-essential         libtool         lintian         sudo         dh-make         dh-exec         kmod         libtinyxml2-6a         libtinyxml2-dev         python         python-pip         python3         python3-pip         libncurses5-dev         texinfo         dh-autoreconf         doxygen         devscripts         git-buildpackage         perl-modules         libswitch-perl         dh-systemd         libzmq5         libzmq3-dev         uuid-dev         jq         nlohmann-json3-dev         libreadline-dev         texlive-latex-base         texlive-generic-recommended         texlive-fonts-recommended         libpam0g-dev         libpam-dev         libcap-dev         imagemagick         ghostscript         groff         libpcre2-dev         gawk         chrpath         libc-ares-dev         libsnmp-dev         libjson-c3         libjson-c-dev         libsystemd-dev         python-ipaddr         libcmocka-dev         python3-all-dev         python3-all-dbg         install-info         logrotate         cdbs         libxml-simple-perl         graphviz         aspell         libgetopt-long-descriptive-perl         libconst-fast-perl         libtemplate-perl         libnamespace-autoclean-perl         libmoose-perl         libmoosex-aliases-perl         bc         fakeroot         build-essential         devscripts         quilt         stgit         sbsigntool         module-assistant         gem2deb         libevent-dev         libglib2.0-dev         libqt4-dev         python-all-dev         python-twisted         phpunit         libbit-vector-perl         openjdk-11-jdk         javahelper         maven-debian-helper         ant         libhttpclient-java         libslf4j-java         libservlet3.1-java         qt5-default         pkg-php-tools         libpcre3         libpcre3-dev         byacc         flex         libglib2.0-dev         bison         expat         libexpat1-dev         dpatch         libdb-dev         iptables-dev         ctags         libtool-bin         libxml2-dev         libusb-1.0-0-dev         libcurl4-openssl-dev         libunwind8-dev         telnet         libc-ares2         libgoogle-perftools4         cpio         squashfs-tools         zip         linux-compiler-gcc-8-x86         linux-kbuild-4.19         libdaemon-dev         libdbus-1-dev         libjansson-dev         libpcap-dev         dnsutils         libusb-dev         libgrpc++1         libabsl-dev         augeas-tools         libyaml-dev         libevent-dev         libjudy-dev         libedit-dev         libnanomsg-dev         python-stdeb         libjemalloc-dev         liblua5.1-0-dev         lua-bitop-dev          lua-cjson-dev         dkms         cppcheck         clang         pylint         python-pytest         python3-pytest         gcovr         python-pytest-cov         python3-pytest-cov         python-parse         default-libmysqlclient-dev         libssl-dev         libperl-dev         libpci-dev         libpci3         libsensors5         libsensors4-dev         libwrap0-dev 	debhelper         autotools-dev         libbsd-dev         pkg-config         check         docutils-common         libjs-sphinxdoc         libjs-underscore         python-docutils         python-jinja2         python-markupsafe         python-pygments         python-roman         python-sphinx         sphinx-common         python3-sphinx         python-dev         procmail         libgtest-dev         cmake         libgmock-dev         autoconf-archive         cm-super-minimal         libatm1-dev         libelf-dev         libmnl-dev         libselinux1-dev         linuxdoc-tools         lynx         texlive-latex-extra         texlive-latex-recommended         iproute2         texi2html         sharutils         locales         time         man2html-base         libcunit1         libcunit1-dev         shellcheck         bash-completion         dosfstools         qemu-kvm         libvirt-clients         autogen         libopts25-dev         pps-tools         dh-apparmor         librrd8         librrd-dev         rrdtool         liblzo2-dev         libnetfilter-conntrack-dev         libnftnl-dev         protobuf-compiler         libprotobuf-dev         libgrpc++-dev         xxd         libexplain-dev         libevent-dev         swig         device-tree-compiler         autoconf         m4         libxml2-utils         xsltproc         python-lxml         libexpat1-dev         libcurl4         libcjson-dev         qtbase5-dev                  aspell-en                    libhiredis-dev               swig3.0                      libpython2.7-dev             libssl-dev                   dbus                         libdbus-1-dev                libdbus-glib-1-2             libdbus-glib-1-dev           libreadline-dev              libncurses5-dev              libpcsclite-dev              docbook-to-man               docbook-utils                libbz2-dev         libboost1.71-dev         libboost-serialization1.71-dev         libboost-program-options1.71-dev         libboost-system1.71-dev         libboost-thread1.71-dev         libboost-atomic1.71-dev         libboost-chrono1.71-dev         libboost-container1.71-dev         libboost-context1.71-dev         libboost-contract1.71-dev         libboost-coroutine1.71-dev         libboost-date-time1.71-dev         libboost-fiber1.71-dev         libboost-filesystem1.71-dev         libboost-graph-parallel1.71-dev         libboost-log1.71-dev         libboost-regex1.71-dev         googletest         libgtest-dev         libgmock-dev         libgcc-8-dev         libcairo2-dev         libdbus-1-dev         libgirepository1.0-dev         libsystemd-dev         pkg-config         libhiredis-dev         libauparse-dev         auditd
 ---> Running in cdd05d1f2f94
Get:1 http://debian-archive.trafficmanager.net/debian buster InRelease [122 kB]
Get:2 http://debian-archive.trafficmanager.net/debian buster-updates InRelease [56.6 kB]
Ign:3 http://debian-archive.trafficmanager.net/debian buster-backports InRelease
Get:4 http://debian-archive.trafficmanager.net/debian-security buster/updates InRelease [34.8 kB]
Err:5 http://debian-archive.trafficmanager.net/debian buster-backports Release
  404  Not Found [IP: 40.64.88.253 80]
Get:6 http://debian-archive.trafficmanager.net/debian buster/contrib Sources [42.5 kB]
Get:7 http://debian-archive.trafficmanager.net/debian buster/non-free Sources [85.9 kB]
Get:8 http://debian-archive.trafficmanager.net/debian buster/main Sources [7852 kB]
Get:9 http://debian-archive.trafficmanager.net/debian buster/contrib amd64 Packages [50.1 kB]
Get:10 http://debian-archive.trafficmanager.net/debian buster/non-free amd64 Packages [87.8 kB]
Get:11 http://debian-archive.trafficmanager.net/debian buster/main amd64 Packages [7909 kB]
Get:12 http://debian-archive.trafficmanager.net/debian buster-updates/main Sources [4616 B]
Get:13 http://debian-archive.trafficmanager.net/debian buster-updates/main amd64 Packages [8788 B]
Get:14 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free Sources [4420 B]
Get:15 http://debian-archive.trafficmanager.net/debian-security buster/updates/main Sources [376 kB]
Get:16 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib Sources [1084 B]
Get:17 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free amd64 Packages [11.0 kB]
Get:18 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib amd64 Packages [3460 B]
Get:19 http://debian-archive.trafficmanager.net/debian-security buster/updates/main amd64 Packages [595 kB]
Reading package lists...
E: The repository 'http://debian-archive.trafficmanager.net/debian buster-backports Release' does not have a Release file.
The command '/bin/sh -c apt-get update && apt-get install -y eatmydata && eatmydata apt-get install -y         apt-utils         default-jre-headless         openssh-server         curl         wget         unzip         gzip         git         build-essential         libtool         lintian         sudo         dh-make         dh-exec         kmod         libtinyxml2-6a         libtinyxml2-dev         python         python-pip         python3         python3-pip         libncurses5-dev         texinfo         dh-autoreconf         doxygen         devscripts         git-buildpackage         perl-modules         libswitch-perl         dh-systemd         libzmq5         libzmq3-dev         uuid-dev         jq         nlohmann-json3-dev         libreadline-dev         texlive-latex-base         texlive-generic-recommended         texlive-fonts-recommended         libpam0g-dev         libpam-dev         libcap-dev         imagemagick         ghostscript         groff         libpcre2-dev         gawk         chrpath         libc-ares-dev         libsnmp-dev         libjson-c3         libjson-c-dev         libsystemd-dev         python-ipaddr         libcmocka-dev         python3-all-dev         python3-all-dbg         install-info         logrotate         cdbs         libxml-simple-perl         graphviz         aspell         libgetopt-long-descriptive-perl         libconst-fast-perl         libtemplate-perl         libnamespace-autoclean-perl         libmoose-perl         libmoosex-aliases-perl         bc         fakeroot         build-essential         devscripts         quilt         stgit         sbsigntool         module-assistant         gem2deb         libevent-dev         libglib2.0-dev         libqt4-dev         python-all-dev         python-twisted         phpunit         libbit-vector-perl         openjdk-11-jdk         javahelper         maven-debian-helper         ant         libhttpclient-java         libslf4j-java         libservlet3.1-java         qt5-default         pkg-php-tools         libpcre3         libpcre3-dev         byacc         flex         libglib2.0-dev         bison         expat         libexpat1-dev         dpatch         libdb-dev         iptables-dev         ctags         libtool-bin         libxml2-dev         libusb-1.0-0-dev         libcurl4-openssl-dev         libunwind8-dev         telnet         libc-ares2         libgoogle-perftools4         cpio         squashfs-tools         zip         linux-compiler-gcc-8-x86         linux-kbuild-4.19         libdaemon-dev         libdbus-1-dev         libjansson-dev         libpcap-dev         dnsutils         libusb-dev         libgrpc++1         libabsl-dev         augeas-tools         libyaml-dev         libevent-dev         libjudy-dev         libedit-dev         libnanomsg-dev         python-stdeb         libjemalloc-dev         liblua5.1-0-dev         lua-bitop-dev          lua-cjson-dev         dkms         cppcheck         clang         pylint         python-pytest         python3-pytest         gcovr         python-pytest-cov         python3-pytest-cov         python-parse         default-libmysqlclient-dev         libssl-dev         libperl-dev         libpci-dev         libpci3         libsensors5         libsensors4-dev         libwrap0-dev 	debhelper         autotools-dev         libbsd-dev         pkg-config         check         docutils-common         libjs-sphinxdoc         libjs-underscore         python-docutils         python-jinja2         python-markupsafe         python-pygments         python-roman         python-sphinx         sphinx-common         python3-sphinx         python-dev         procmail         libgtest-dev         cmake         libgmock-dev         autoconf-archive         cm-super-minimal         libatm1-dev         libelf-dev         libmnl-dev         libselinux1-dev         linuxdoc-tools         lynx         texlive-latex-extra         texlive-latex-recommended         iproute2         texi2html         sharutils         locales         time         man2html-base         libcunit1         libcunit1-dev         shellcheck         bash-completion         dosfstools         qemu-kvm         libvirt-clients         autogen         libopts25-dev         pps-tools         dh-apparmor         librrd8         librrd-dev         rrdtool         liblzo2-dev         libnetfilter-conntrack-dev         libnftnl-dev         protobuf-compiler         libprotobuf-dev         libgrpc++-dev         xxd         libexplain-dev         libevent-dev         swig         device-tree-compiler         autoconf         m4         libxml2-utils         xsltproc         python-lxml         libexpat1-dev         libcurl4         libcjson-dev         qtbase5-dev                  aspell-en                    libhiredis-dev               swig3.0                      libpython2.7-dev             libssl-dev                   dbus                         libdbus-1-dev                libdbus-glib-1-2             libdbus-glib-1-dev           libreadline-dev              libncurses5-dev              libpcsclite-dev              docbook-to-man               docbook-utils                libbz2-dev         libboost1.71-dev         libboost-serialization1.71-dev         libboost-program-options1.71-dev         libboost-system1.71-dev         libboost-thread1.71-dev         libboost-atomic1.71-dev         libboost-chrono1.71-dev         libboost-container1.71-dev         libboost-context1.71-dev         libboost-contract1.71-dev         libboost-coroutine1.71-dev         libboost-date-time1.71-dev         libboost-fiber1.71-dev         libboost-filesystem1.71-dev         libboost-graph-parallel1.71-dev         libboost-log1.71-dev         libboost-regex1.71-dev         googletest         libgtest-dev         libgmock-dev         libgcc-8-dev         libcairo2-dev         libdbus-1-dev         libgirepository1.0-dev         libsystemd-dev         pkg-config         libhiredis-dev         libauparse-dev         auditd' returned a non-zero code: 100
Unable to find image 'sonic-slave-buster:1137ac71c88' locally
Error response from daemon: pull access denied for sonic-slave-buster, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Error: No such container:path: sonic-slave-buster-1137ac71c88:/etc/os-release
Error: No such container:path: sonic-slave-buster-1137ac71c88:/usr/local/share/buildinfo/pre-versions
Error: No such container:path: sonic-slave-buster-1137ac71c88:/usr/local/share/buildinfo/post-versions
Error response from daemon: No such image: sonic-slave-buster:1137ac71c88
[+] Building 0.8s (4/5)                                                                                                                                                                
 => [internal] load build definition from Dockerfile.cleanup                                                                                                                      0.1s
 => => transferring dockerfile: 318B                                                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                                                 0.1s
 => => transferring context: 2B                                                                                                                                                   0.0s
 => ERROR FROM docker.io/library/sonic-slave-buster:1137ac71c88                                                                                                                   0.7s
 => => resolve docker.io/library/sonic-slave-buster:1137ac71c88                                                                                                                   0.6s
 => [auth] library/sonic-slave-buster:pull token for registry-1.docker.io                                                                                                         0.0s
------
 > FROM docker.io/library/sonic-slave-buster:1137ac71c88:
------
failed to load cache key: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
[+] Building 0.6s (4/4) FINISHED                                                                                                                                                       
 => [internal] load build definition from Dockerfile.cleanup                                                                                                                      0.0s
 => => transferring dockerfile: 46B                                                                                                                                               0.0s
 => [internal] load .dockerignore                                                                                                                                                 0.1s
 => => transferring context: 2B                                                                                                                                                   0.0s
 => ERROR [internal] load metadata for docker.io/library/sonic-slave-buster:1137ac71c88                                                                                           0.5s
 => [auth] library/sonic-slave-buster:pull token for registry-1.docker.io                                                                                                         0.0s
------
 > [internal] load metadata for docker.io/library/sonic-slave-buster:1137ac71c88:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Error: No such image: tmp-sonic-slave-buster:1137ac71c88
Error: No such container:path: sonic-slave-buster-1137ac71c88:/usr/local/share/buildinfo/log
sync: error opening 'sonic-slave-buster/vcache/cache.base64': No such file or directory
Error: No such container: sonic-slave-buster-1137ac71c88
make[1]: *** [Makefile.work:629: configure] Error 1
make[1]: Leaving directory '/home/sonic/sonic/sonic-buildimage'
make: *** [Makefile:109: configure] Error 2
sonic@sonic-vs:~/sonic/sonic-buildimage$ 

Describe the results you expected:

Output of show version:

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

@oplklum
Copy link
Author

oplklum commented Apr 15, 2024

If I change the source list of deb [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster-backports main contrib non-free to deb [arch=amd64] http://archive.debian.org/debian buster-backports main contrib non-free, then it'll be compiled successfully.
So is it a bug for buster compile because of the outdated source list?

@liushilongbuaa
Copy link
Contributor

#18678 can help fix. buster-backports is removed recently.
Optional walk around:
make configure PLATFORM=vs MIRROR_URLS=http://archive.debian.org/debian/
Optional walk around:
make configure PLATFORM=vs SONIC_VERSION_CONTROL_COMPONENTS=deb

@oplklum
Copy link
Author

oplklum commented Apr 16, 2024

#18678 can help fix. buster-backports is removed recently. Optional walk around: make configure PLATFORM=vs MIRROR_URLS=http://archive.debian.org/debian/ Optional walk around: make configure PLATFORM=vs SONIC_VERSION_CONTROL_COMPONENTS=deb

Very useful. Thanks a lot.

@SaranyaAzhgamuthaiyan
Copy link

@liushilongbuaa Kindly assist me to resolve this issue, I'm getting the following error while running workaround configure command:
make configure PLATFORM=vs MIRROR_URLS=http://archive.debian.org/debian/

=> => transferring context: 2B 0.0s
=> ERROR [internal] load metadata for docker.io/library/sonic-slave-bullseye:37e5 1.2s

[internal] load metadata for docker.io/library/sonic-slave-bullseye:37e5cc4acdb:


Dockerfile.cleanup:9

7 |
8 | # Clean up the cache data
9 | >>> FROM sonic-slave-bullseye:37e5cc4acdb as final
10 | RUN rm /cache.tgz
11 |

ERROR: failed to solve: sonic-slave-bullseye:37e5cc4acdb: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Error response from daemon: No such image: tmp-sonic-slave-bullseye:37e5cc4acdb
Error response from daemon: No such container: sonic-slave-bullseye-37e5cc4acdb
sync: error opening 'sonic-slave-bullseye/vcache/cache.base64': No such file or directory
Error response from daemon: No such container: sonic-slave-bullseye-37e5cc4acdb

@liushilongbuaa
Copy link
Contributor

@liushilongbuaa Kindly assist me to resolve this issue, I'm getting the following error while running workaround configure command: make configure PLATFORM=vs MIRROR_URLS=http://archive.debian.org/debian/

=> => transferring context: 2B 0.0s

=> ERROR [internal] load metadata for docker.io/library/sonic-slave-bullseye:37e5 1.2s

[internal] load metadata for docker.io/library/sonic-slave-bullseye:37e5cc4acdb:

Dockerfile.cleanup:9

7 |

8 | # Clean up the cache data
9 | >>> FROM sonic-slave-bullseye:37e5cc4acdb as final
10 | RUN rm /cache.tgz
11 |
ERROR: failed to solve: sonic-slave-bullseye:37e5cc4acdb: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed Error response from daemon: No such image: tmp-sonic-slave-bullseye:37e5cc4acdb Error response from daemon: No such container: sonic-slave-bullseye-37e5cc4acdb sync: error opening 'sonic-slave-bullseye/vcache/cache.base64': No such file or directory Error response from daemon: No such container: sonic-slave-bullseye-37e5cc4acdb

Your comment format is too bad. It seems that you didn't paste the fatal error. It locates a few lines upper.

@SaranyaAzhgamuthaiyan
Copy link

SaranyaAzhgamuthaiyan commented Apr 16, 2024

@liushilongbuaa
Kindly assist me to resolve this issue, I'm getting the following error while running workaround configure command: make configure PLATFORM=vs MIRROR_URLS=http://archive.debian.org/debian/
Please find the log file attached.
Failure_logs.txt

@liushilongbuaa
Copy link
Contributor

@liushilongbuaa Kindly assist me to resolve this issue, I'm getting the following error while running workaround configure command: make configure PLATFORM=vs MIRROR_URLS=http://archive.debian.org/debian/ Please find the log file attached. Failure_logs.txt

Oh, This walk around is not good. How about 'SONIC_VERSION_CONTROL_COMPONENTS=deb'?
The first walk around should be:
make configure PLATFORM=vs MIRROR_URLS=http://archive.debian.org/debian/ (command will fail. then run second cmd.)
make configure PLATFORM=vs
make target/sonic-vs.img.gz MIRROR_URLS=http://archive.debian.org/debian/ (command will fail. then run 4th cmd.)
make target/sonic-vs.img.gz

@liushilongbuaa
Copy link
Contributor

Please try make configure PLATFORM=vs SONIC_VERSION_CONTROL_COMPONENTS=deb

@mikemallin
Copy link

I'm seeing something odd when using the patch from #18678, the wrong sources.list file is being picked up for one of the docker steps when building target/docker-config-engine-buster.gz. I've modified dockers/docker-config-engine-buster/Dockerfile and dockers/docker-config-engine-buster/Dockerfile.j2 to print the contents of /etc/apt/sources.list when run.

Build command: make SONIC_VERSION_CONTROL_COMPONENTS=py2,py3,web,git,docker,deb MIRROR_SNAPSHOT=y NOSTRETCH=1 USERNAME=test PASSWORD=test123 KEEP_SLAVE_ON=yes target/python-wheels/bullseye/sonic_utilities-1.2-py3-none-any.whl

Logs:

<snip>
Step 10/28 : RUN pre_run_buildinfo docker-config-engine-buster
 ---> Running in b981286c828b
Removing intermediate container b981286c828b
 ---> 1f9b7da9264f
Step 11/28 : RUN cat /etc/apt/sources.list &&         apt-get update         &&     apt-get install -y                apt-utils                    
 build-essential               python3-dev
 ---> Running in bfbc07bbaa22
# The configuration is generated by template
# Please add additional sources in /etc/apt/sources.list.d

deb [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster main contrib non-free
deb-src [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster main contrib non-free
deb [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster-updates main contrib non-free
deb-src [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster-updates main contrib non-free
deb [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster-backports main contrib non-free

deb [arch=amd64] http://debian-archive.trafficmanager.net/debian-security/ buster/updates main contrib non-free
deb-src [arch=amd64] http://debian-archive.trafficmanager.net/debian-security/ buster/updates main contrib non-free

Get:1 http://debian-archive.trafficmanager.net/debian buster InRelease [122 kB]
Get:2 http://debian-archive.trafficmanager.net/debian buster-updates InRelease [56.6 kB]
Ign:3 http://debian-archive.trafficmanager.net/debian buster-backports InRelease
Get:4 http://debian-archive.trafficmanager.net/debian-security buster/updates InRelease [34.8 kB]
Err:5 http://debian-archive.trafficmanager.net/debian buster-backports Release
  404  Not Found [IP: 171.70.55.124 3128]
Get:6 http://debian-archive.trafficmanager.net/debian buster/non-free Sources [85.9 kB]
Get:7 http://debian-archive.trafficmanager.net/debian buster/contrib Sources [42.5 kB]
Get:8 http://debian-archive.trafficmanager.net/debian buster/main Sources [7852 kB]
Get:9 http://debian-archive.trafficmanager.net/debian buster/main amd64 Packages [7909 kB]
Get:10 http://debian-archive.trafficmanager.net/debian buster/contrib amd64 Packages [50.1 kB]
Get:11 http://debian-archive.trafficmanager.net/debian buster/non-free amd64 Packages [87.8 kB]
Get:12 http://debian-archive.trafficmanager.net/debian buster-updates/main Sources [4616 B]
Get:13 http://debian-archive.trafficmanager.net/debian buster-updates/main amd64 Packages [8788 B]
Get:14 http://debian-archive.trafficmanager.net/debian-security buster/updates/main Sources [376 kB]
Get:15 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib Sources [1084 B]
Get:16 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free Sources [4420 B]
Get:17 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib amd64 Packages [3460 B]
Get:18 http://debian-archive.trafficmanager.net/debian-security buster/updates/main amd64 Packages [595 kB]
Get:19 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free amd64 Packages [11.0 kB]
Reading package lists...
E: The repository 'http://debian-archive.trafficmanager.net/debian buster-backports Release' does not have a Release file.
The command '/bin/sh -c cat /etc/apt/sources.list &&         apt-get update         &&     apt-get install -y                apt-utils             
        build-essential               python3-dev' returned a non-zero code: 100
[  FAIL LOG END  ] [ target/docker-config-engine-buster.gz ]
make: *** [slave.mk:1050: target/docker-config-engine-buster.gz] Error 1
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.
0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/develo
pment/release-process/#python-2-support pip 21.0 will remove support for this functionality.
mikemallin@0bf4e0f17dca:/sonic$ cat /etc/apt/sources.list
# The configuration is generated by template
# Please add additional sources in /etc/apt/sources.list.d

#deb [arch=amd64] http://deb.debian.org/debian/ buster main contrib non-free
#deb-src [arch=amd64] http://deb.debian.org/debian/ buster main contrib non-free
#deb [arch=amd64] http://deb.debian.org/debian/ buster-updates main contrib non-free
#deb-src [arch=amd64] http://deb.debian.org/debian/ buster-updates main contrib non-free
#deb [arch=amd64] http://deb.debian.org/debian/ buster-backports main contrib non-free
deb [arch=amd64] http://packages.trafficmanager.net/snapshot/debian/20240417T000209Z/ buster main contrib non-free
deb-src [arch=amd64] http://packages.trafficmanager.net/snapshot/debian/20240417T000209Z/ buster main contrib non-free
deb [arch=amd64] http://packages.trafficmanager.net/snapshot/debian/20240417T000209Z/ buster-updates main contrib non-free
deb-src [arch=amd64] http://packages.trafficmanager.net/snapshot/debian/20240417T000209Z/ buster-updates main contrib non-free
deb [arch=amd64] http://packages.trafficmanager.net/snapshot/debian/20240417T000209Z/ buster-backports main contrib non-free

#deb [arch=amd64] http://deb.debian.org/debian-security/ buster/updates main contrib non-free
#deb-src [arch=amd64] http://deb.debian.org/debian-security/ buster/updates main contrib non-free

deb [arch=amd64] http://packages.trafficmanager.net/snapshot/debian-security/20240417T000633Z/ buster/updates main contrib non-free
deb-src [arch=amd64] http://packages.trafficmanager.net/snapshot/debian-security/20240417T000633Z/ buster/updates main contrib non-free

#deb [arch=amd64] https://download.docker.com/linux/debian buster stable
#deb-src [arch=amd64] https://download.docker.com/linux/debian buster stable
#SET_REPR_MIRRORS

@keboliu
Copy link
Collaborator

keboliu commented Apr 18, 2024

@liushilongbuaa @saiarcot895 I have taken the patch to 202311 branch, but still can see the failure, would you please help to check?

06:03:22  [ cached ] [ target/python-wheels/buster/sonic_py_common-1.0-py3-none-any.whl-install ] 
06:03:22  [ building ] [ target/python-wheels/buster/sonic_containercfgd-1.0-py3-none-any.whl ] 
06:03:22  [ cached ] [ target/python-wheels/buster/sonic_containercfgd-1.0-py3-none-any.whl ] 
06:04:43  [ finished ] [ target/python-wheels/buster/sonic_config_engine-1.0-py2-none-any.whl ] 
06:04:43  [ building ] [ target/python-wheels/buster/sonic_config_engine-1.0-py2-none-any.whl-install ] 
06:04:43  [ finished ] [ target/python-wheels/buster/sonic_config_engine-1.0-py2-none-any.whl-install ] 
06:04:43  [ building ] [ target/python-wheels/buster/sonic_config_engine-1.0-py3-none-any.whl ] 
06:04:43  Defaulting to user installation because normal site-packages is not writeable
06:04:43  Processing /sonic/src/sonic-config-engine
06:04:43    Preparing metadata (setup.py): started
06:04:43    Preparing metadata (setup.py): finished with status 'done'
06:04:43  Collecting bitarray==1.5.3 (from sonic-config-engine==1.0)
06:04:43    Downloading bitarray-1.5.3.tar.gz (54 kB)
06:04:43       ��������������������������������������� 54.4/54.4 kB 659.5 kB/s eta 0:00:00
06:04:43    Preparing metadata (setup.py): started
06:04:43    Preparing metadata (setup.py): finished with status 'done'
06:04:43  Collecting ipaddress==1.0.23 (from sonic-config-engine==1.0)
06:04:43    Downloading ipaddress-1.0.23-py2.py3-none-any.whl.metadata (923 bytes)
06:04:43  Requirement already satisfied: lxml==4.9.1 in /usr/local/lib/python3.7/dist-packages (from sonic-config-engine==1.0) (4.9.1)
06:04:43  Collecting netaddr==0.8.0 (from sonic-config-engine==1.0)
06:04:43    Downloading netaddr-0.8.0-py2.py3-none-any.whl.metadata (4.9 kB)
06:04:43  Requirement already satisfied: pyyaml==5.4.1 in /usr/local/lib/python3.7/dist-packages (from sonic-config-engine==1.0) (5.4.1)
06:04:43  Requirement already satisfied: Jinja2>=2.10 in /usr/local/lib/python3.7/dist-packages (from sonic-config-engine==1.0) (3.0.3)
06:04:43  Requirement already satisfied: sonic-py-common in /usr/local/lib/python3.7/dist-packages (from sonic-config-engine==1.0) (1.0)
06:04:43  Requirement already satisfied: sonic-yang-mgmt>=1.0 in /usr/local/lib/python3.7/dist-packages (from sonic-config-engine==1.0) (1.0)
06:04:43  Requirement already satisfied: sonic-yang-models>=1.0 in /usr/local/lib/python3.7/dist-packages (from sonic-config-engine==1.0) (1.0)
06:04:43  Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.7/dist-packages (from Jinja2>=2.10->sonic-config-engine==1.0) (2.0.1)
06:04:43  Requirement already satisfied: xmltodict==0.12.0 in /usr/local/lib/python3.7/dist-packages (from sonic-yang-mgmt>=1.0->sonic-config-engine==1.0) (0.12.0)
06:04:43  Requirement already satisfied: ijson==2.6.1 in /usr/local/lib/python3.7/dist-packages (from sonic-yang-mgmt>=1.0->sonic-config-engine==1.0) (2.6.1)
06:04:43  Requirement already satisfied: jsondiff>=1.2.0 in /usr/local/lib/python3.7/dist-packages (from sonic-yang-mgmt>=1.0->sonic-config-engine==1.0) (2.0.0)
06:04:43  Requirement already satisfied: tabulate==0.8.2 in /usr/local/lib/python3.7/dist-packages (from sonic-yang-mgmt>=1.0->sonic-config-engine==1.0) (0.8.2)
06:04:43  Requirement already satisfied: natsort==6.2.1 in /usr/local/lib/python3.7/dist-packages (from sonic-py-common->sonic-config-engine==1.0) (6.2.1)
06:04:43  Requirement already satisfied: redis-dump-load in /usr/local/lib/python3.7/dist-packages (from sonic-py-common->sonic-config-engine==1.0) (1.1)
06:04:43  Requirement already satisfied: redis in /usr/local/lib/python3.7/dist-packages (from redis-dump-load->sonic-py-common->sonic-config-engine==1.0) (5.0.3)
06:04:43  Requirement already satisfied: async-timeout>=4.0.3 in /usr/local/lib/python3.7/dist-packages (from redis->redis-dump-load->sonic-py-common->sonic-config-engine==1.0) (4.0.3)
06:04:43  Requirement already satisfied: importlib-metadata>=1.0 in /usr/local/lib/python3.7/dist-packages (from redis->redis-dump-load->sonic-py-common->sonic-config-engine==1.0) (6.7.0)
06:04:43  Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from redis->redis-dump-load->sonic-py-common->sonic-config-engine==1.0) (4.7.1)
06:04:43  Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=1.0->redis->redis-dump-load->sonic-py-common->sonic-config-engine==1.0) (3.15.0)
06:04:43  Downloading ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)
06:04:43  Downloading netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
06:04:43     ���������������������������������������� 1.9/1.9 MB 7.1 MB/s eta 0:00:00
06:04:43  Building wheels for collected packages: sonic-config-engine, bitarray
06:04:43    Building wheel for sonic-config-engine (setup.py): started
06:04:43    Building wheel for sonic-config-engine (setup.py): finished with status 'done'
06:04:43    Created wheel for sonic-config-engine: filename=sonic_config_engine-1.0-py3-none-any.whl size=63662 sha256=8b995e2e7277834564d1a8294703ff28f210189e12bc7e368b1226e9299e4e57
06:04:43    Stored in directory: /var/sw-r2d2-bot/.cache/pip/wheels/cd/52/08/02f88c83fcbd007e5afc40ba348ca6b4273d252e935c4d0e66
06:04:43    Building wheel for bitarray (setup.py): started
06:04:43    Building wheel for bitarray (setup.py): finished with status 'done'
06:04:43    Created wheel for bitarray: filename=bitarray-1.5.3-cp37-cp37m-linux_x86_64.whl size=119967 sha256=592644a267f52f42b954ee2940a5f1d216dffd5a9c0a1cc13be76daac607792d
06:04:43    Stored in directory: /var/sw-r2d2-bot/.cache/pip/wheels/5d/54/cf/72e8d357f05180e1b3223830fd70406f6d47edb9333cf20195
06:04:43  Successfully built sonic-config-engine bitarray
06:04:43  Installing collected packages: netaddr, ipaddress, bitarray, sonic-config-engine
06:04:43    WARNING: The script netaddr is installed in '/var/sw-r2d2-bot/.local/bin' which is not on PATH.
06:04:43    Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
06:04:43  ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
06:04:43  pyangbind 0.8.1 requires enum34, which is not installed.
06:04:43  Successfully installed bitarray-1.5.3 ipaddress-1.0.23 netaddr-0.8.0 sonic-config-engine-1.0
06:04:43  Found existing installation: sonic-config-engine 1.0
06:04:43  Uninstalling sonic-config-engine-1.0:
06:04:43    Successfully uninstalled sonic-config-engine-1.0
06:08:35  [ finished ] [ target/python-wheels/buster/sonic_config_engine-1.0-py3-none-any.whl ] 
06:08:35  [ building ] [ target/docker-config-engine-buster.gz ] 
06:09:14  [ finished ] [ target/docker-config-engine-buster.gz ] 
06:09:14  [ FAIL LOG START ] [ target/docker-config-engine-buster.gz ]
06:09:14  Build start time: Thu Apr 18 03:08:30 UTC 2024
06:09:14  [ REASON ] :      target/docker-config-engine-buster.gz does not exist   NON-EXISTENT PREREQUISITES: docker-start target/docker-base-buster.gz-load 
06:09:14  [ FLAGS  FILE    ] : [] 
06:09:14  [ FLAGS  DEPENDS ] : [mellanox amd64 buster] 
06:09:14  [ FLAGS  DIFF    ] : [mellanox amd64 buster ] 
06:09:14  Client: Docker Engine - Community
06:09:14   Version:    24.0.2
06:09:14   Context:    default
06:09:14   Debug Mode: false
06:09:14   Plugins:
06:09:14    buildx: Docker Buildx (Docker Inc.)
06:09:14      Version:  v0.10.5
06:09:14      Path:     /usr/libexec/docker/cli-plugins/docker-buildx
06:09:14    compose: Docker Compose (Docker Inc.)
06:09:14      Version:  v2.18.1
06:09:14      Path:     /usr/libexec/docker/cli-plugins/docker-compose
06:09:14  
06:09:14  Server:
06:09:14   Containers: 0
06:09:14    Running: 0
06:09:14    Paused: 0
06:09:14    Stopped: 0
06:09:14   Images: 1
06:09:14   Server Version: 24.0.2
06:09:14   Storage Driver: vfs
06:09:14   Logging Driver: json-file
06:09:14   Cgroup Driver: cgroupfs
06:09:14   Cgroup Version: 1
06:09:14   Plugins:
06:09:14    Volume: local
06:09:14    Network: bridge host ipvlan macvlan null overlay
06:09:14    Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
06:09:14   Swarm: inactive
06:09:14   Runtimes: runc io.containerd.runc.v2
06:09:14   Default Runtime: runc
06:09:14   Init Binary: docker-init
06:09:14   containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
06:09:14   runc version: v1.1.7-0-g860f061
06:09:14   init version: de40ad0
06:09:14   Security Options:
06:09:14    seccomp
06:09:14     Profile: builtin
06:09:14   Kernel Version: 4.15.0-153-generic
06:09:14   Operating System: Debian GNU/Linux 10 (buster) (containerized)
06:09:14   OSType: linux
06:09:14   Architecture: x86_64
06:09:14   CPUs: 30
06:09:14   Total Memory: 28.75GiB
06:09:14   Name: d16feec94902
06:09:14   ID: f76b371c-0e7d-4663-aeab-55407295c2b3
06:09:14   Docker Root Dir: /var/lib/docker
06:09:14   Debug Mode: false
06:09:14   Experimental: true
06:09:14   Insecure Registries:
06:09:14    127.0.0.0/8
06:09:14   Registry Mirrors:
06:09:14    https://dockerhub-backup.nvidia.com/
06:09:14    https://dockerhub.nvidia.com/
06:09:14   Live Restore Enabled: false
06:09:14  
06:09:14  WARNING: No swap limit support
06:09:14  DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
06:09:14              BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
06:09:14              environment-variable.
06:09:14  
06:09:14  Sending build context to Docker daemon  64.34MB

06:09:14  Step 1/28 : FROM docker-base-buster-sonic:latest
06:09:14   ---> 04226aec9cd4
06:09:14  Step 2/28 : ENV DEBIAN_FRONTEND=noninteractive
06:09:14   ---> Running in 70711d39e513
06:09:14  Removing intermediate container 70711d39e513
06:09:14   ---> c1c6bf6872a2
06:09:14  Step 3/28 : ARG SONIC_VERSION_CACHE
06:09:14   ---> Running in 22bbe9d2afbd
06:09:14  Removing intermediate container 22bbe9d2afbd
06:09:14   ---> 3b48ce57c722
06:09:14  Step 4/28 : ARG SONIC_VERSION_CONTROL_COMPONENTS
06:09:14   ---> Running in c178a768deb4
06:09:14  Removing intermediate container c178a768deb4
06:09:14   ---> 8d7aae9dc2f5
06:09:14  Step 5/28 : COPY ["buildinfo", "/usr/local/share/buildinfo"]
06:09:14   ---> ea1faec7595c
06:09:14  Step 6/28 : COPY vcache/ /sonic/target/vcache/docker-config-engine-buster
06:09:14   ---> d8a467683879
06:09:14  Step 7/28 : RUN dpkg -i /usr/local/share/buildinfo/sonic-build-hooks_1.0_all.deb
06:09:14   ---> Running in 901e142f34cb
06:09:14  (Reading database ... 10532 files and directories currently installed.)
06:09:14  Preparing to unpack .../sonic-build-hooks_1.0_all.deb ...
06:09:14  Unpacking sonic-build-hooks (1.0) over (1.0) ...
06:09:14  Setting up sonic-build-hooks (1.0) ...
06:09:14  Removing intermediate container 901e142f34cb
06:09:14   ---> 0465542bd7af
06:09:14  Step 8/28 : ENV IMAGENAME=docker-config-engine-buster
06:09:14   ---> Running in 84c6ca3536c6
06:09:14  Removing intermediate container 84c6ca3536c6
06:09:14   ---> 0708b863bb74
06:09:14  Step 9/28 : ENV DISTRO=buster
06:09:14   ---> Running in f10363bd5323
06:09:14  Removing intermediate container f10363bd5323
06:09:14   ---> a7065067bd54
06:09:14  Step 10/28 : RUN pre_run_buildinfo docker-config-engine-buster
06:09:14   ---> Running in 9ab0ccb403ca
06:09:14  Removing intermediate container 9ab0ccb403ca
06:09:14   ---> ea97f7ca518a
06:09:14  Step 11/28 : RUN apt-get update         &&     apt-get install -y                apt-utils                     build-essential               python3-dev
06:09:14   ---> Running in 20bb226feeba
06:09:14  Get:1 http://debian-archive.trafficmanager.net/debian buster InRelease [122 kB]
06:09:14  Get:2 http://debian-archive.trafficmanager.net/debian buster-updates InRelease [56.6 kB]
06:09:14  Ign:3 http://debian-archive.trafficmanager.net/debian buster-backports InRelease
06:09:14  Get:4 http://debian-archive.trafficmanager.net/debian-security buster/updates InRelease [34.8 kB]
06:09:14  Err:5 http://debian-archive.trafficmanager.net/debian buster-backports Release
06:09:14    404  Not Found [IP: 20.50.188.130 80]
06:09:14  Get:6 http://debian-archive.trafficmanager.net/debian buster/main Sources [7852 kB]
06:09:14  Get:7 http://debian-archive.trafficmanager.net/debian buster/non-free Sources [85.9 kB]
06:09:14  Get:8 http://debian-archive.trafficmanager.net/debian buster/contrib Sources [42.5 kB]
06:09:14  Get:9 http://debian-archive.trafficmanager.net/debian buster/non-free amd64 Packages [87.8 kB]
06:09:14  Get:10 http://debian-archive.trafficmanager.net/debian buster/main amd64 Packages [7909 kB]
06:09:14  Get:11 http://debian-archive.trafficmanager.net/debian buster/contrib amd64 Packages [50.1 kB]
06:09:14  Get:12 http://debian-archive.trafficmanager.net/debian buster-updates/main Sources [4616 B]
06:09:14  Get:13 http://debian-archive.trafficmanager.net/debian buster-updates/main amd64 Packages [8788 B]
06:09:14  Get:14 http://debian-archive.trafficmanager.net/debian-security buster/updates/main Sources [376 kB]
06:09:14  Get:15 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib Sources [1084 B]
06:09:14  Get:16 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free Sources [4420 B]
06:09:14  Get:17 http://debian-archive.trafficmanager.net/debian-security buster/updates/main amd64 Packages [595 kB]
06:09:14  Get:18 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free amd64 Packages [11.0 kB]
06:09:14  Get:19 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib amd64 Packages [3460 B]
06:09:14  Reading package lists...
06:09:14  [91mE: The repository 'http://debian-archive.trafficmanager.net/debian buster-backports Release' does not have a Release file.
06:09:14  [0mThe command '/bin/sh -c apt-get update         &&     apt-get install -y                apt-utils                     build-essential               python3-dev' returned a non-zero code: 100
06:09:14  [  FAIL LOG END  ] [ target/docker-config-engine-buster.gz ]
06:09:14  make: *** [slave.mk:1086: target/docker-config-engine-buster.gz] Error 1
06:09:14  DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
06:09:15  Makefile.work:621: recipe for target 'buster' failed
06:09:15  make[1]: *** [buster] Error 2
06:09:15  make[1]: Leaving directory '/builds2/sw-r2d2-bot/workspace/sonic_main/sonic'
06:09:15  Makefile:39: recipe for target 'target/sonic-mellanox.bin' failed
06:09:15  make: *** [target/sonic-mellanox.bin] Error 2

@SaranyaAzhgamuthaiyan
Copy link

If I change the source list of deb [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster-backports main contrib non-free to deb [arch=amd64] http://archive.debian.org/debian buster-backports main contrib non-free, then it'll be compiled successfully. So is it a bug for buster compile because of the outdated source list?

Hi @oplklum , Can you please let me know in which file did you make this change? Thanks in advance

@liushilongbuaa
Copy link
Contributor

if [[ "$IMAGENAME" == sonic-slave-* ]] || [[ "$IMAGENAME" == docker-base-* ]] || [[ "$IMAGENAME" == docker-ptf ]]; then

This only works for base image. Please don't use cache on docker-base-buster

@oplklum
Copy link
Author

oplklum commented Apr 24, 2024

If I change the source list of deb [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster-backports main contrib non-free to deb [arch=amd64] http://archive.debian.org/debian buster-backports main contrib non-free, then it'll be compiled successfully. So is it a bug for buster compile because of the outdated source list?

Hi @oplklum , Can you please let me know in which file did you make this change? Thanks in advance

Hi @SaranyaAzhgamuthaiyan, sorry for the late reply. This is a temporary change. My change steps are shown below:

  1. cd sonic-slave-buster
  2. Renamed the sources.list.amd64 cache file to a fixed file like sources.list.amd64.bak;
  3. Changed the line of deb [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster-backports main contrib non-free to deb [arch=amd64] http://archive.debian.org/debian buster-backports main contrib non-free in sources.list.amd64.bak;
  4. Changed the line of COPY ["sources.list.amd64", "/etc/apt/sources.list"] to COPY ["sources.list.amd64.bak", "/etc/apt/sources.list"] in Dockerfile.j2;
  5. Repeat steps 1~4 for sonic/sonic-buildimage/dockers/docker-base-buster.

@oplklum oplklum closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants