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

Use the archive repo for Buster #18678

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

saiarcot895
Copy link
Contributor

@saiarcot895 saiarcot895 commented Apr 15, 2024

Why I did it

Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
  • Microsoft ADO (number only): 27691460

How I did it

Change to using archive.debian.org directly for Buster.

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Buster is EOL, and the backports section has been removed from the main
Debian repos. This also means that our default mirror (for non-snapshot
builds) is also affected.

Change to using archive.debian.org directly for Buster.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Copy link
Contributor

@liushilongbuaa liushilongbuaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @saiarcot895 do you know why sonic-mgmt-framework still use buster?

@dgsudharsan
Copy link
Collaborator

@saiarcot895 I tried your fix and still hit the issue.

[2024-04-16T02:01:11.696Z] Step 12/26 : RUN apt-get update &&     apt-get install -y g++ python3-dev libxml2 libcurl3-gnutls libcjson-dev
[2024-04-16T02:01:11.696Z]  ---> Running in 3cc956004f39
[2024-04-16T02:01:11.696Z] Get:1 http://debian-archive.trafficmanager.net/debian buster InRelease [122 kB]
[2024-04-16T02:01:11.696Z] Get:2 http://debian-archive.trafficmanager.net/debian buster-updates InRelease [56.6 kB]
[2024-04-16T02:01:11.696Z] Ign:3 http://debian-archive.trafficmanager.net/debian buster-backports InRelease
[2024-04-16T02:01:11.696Z] Get:4 http://debian-archive.trafficmanager.net/debian-security buster/updates InRelease [34.8 kB]
[2024-04-16T02:01:11.696Z] Err:5 http://debian-archive.trafficmanager.net/debian buster-backports Release
[2024-04-16T02:01:11.696Z]   404  Not Found [IP: 20.50.188.130 80]
[2024-04-16T02:01:11.696Z] Get:6 http://debian-archive.trafficmanager.net/debian buster/main Sources [7852 kB]
[2024-04-16T02:01:11.696Z] Get:7 http://debian-archive.trafficmanager.net/debian buster/non-free Sources [85.9 kB]
[2024-04-16T02:01:11.696Z] Get:8 http://debian-archive.trafficmanager.net/debian buster/contrib Sources [42.5 kB]
[2024-04-16T02:01:11.696Z] Get:9 http://debian-archive.trafficmanager.net/debian buster/contrib amd64 Packages [50.1 kB]
[2024-04-16T02:01:11.696Z] Get:10 http://debian-archive.trafficmanager.net/debian buster/main amd64 Packages [7909 kB]
[2024-04-16T02:01:11.696Z] Get:11 http://debian-archive.trafficmanager.net/debian buster/non-free amd64 Packages [87.8 kB]
[2024-04-16T02:01:11.696Z] Get:12 http://debian-archive.trafficmanager.net/debian buster-updates/main Sources [4616 B]
[2024-04-16T02:01:11.696Z] Get:13 http://debian-archive.trafficmanager.net/debian buster-updates/main amd64 Packages [8788 B]
[2024-04-16T02:01:11.696Z] Get:14 http://debian-archive.trafficmanager.net/debian-security buster/updates/main Sources [376 kB]
[2024-04-16T02:01:11.696Z] Get:15 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib Sources [1084 B]
[2024-04-16T02:01:11.696Z] Get:16 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free Sources [4420 B]
[2024-04-16T02:01:11.697Z] Get:17 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib amd64 Packages [3460 B]
[2024-04-16T02:01:11.697Z] Get:18 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free amd64 Packages [11.0 kB]
[2024-04-16T02:01:11.697Z] Get:19 http://debian-archive.trafficmanager.net/debian-security buster/updates/main amd64 Packages [595 kB]
[2024-04-16T02:01:11.697Z] Reading package lists...
[2024-04-16T02:01:11.697Z] �[91mE: The repository 'http://debian-archive.trafficmanager.net/debian buster-backports Release' does not have a Release file.
[2024-04-16T02:01:11.697Z] �[0mThe command '/bin/sh -c apt-get update &&     apt-get install -y g++ python3-dev libxml2 libcurl3-gnutls libcjson-dev' returned a non-zero code: 100
[2024-04-16T02:01:11.697Z] [  FAIL LOG END  ] [ target/docker-sonic-mgmt-framework.gz ]

@liushilongbuaa
Copy link
Contributor

@saiarcot895 I tried your fix and still hit the issue.

[2024-04-16T02:01:11.696Z] Step 12/26 : RUN apt-get update &&     apt-get install -y g++ python3-dev libxml2 libcurl3-gnutls libcjson-dev
[2024-04-16T02:01:11.696Z]  ---> Running in 3cc956004f39
[2024-04-16T02:01:11.696Z] Get:1 http://debian-archive.trafficmanager.net/debian buster InRelease [122 kB]
[2024-04-16T02:01:11.696Z] Get:2 http://debian-archive.trafficmanager.net/debian buster-updates InRelease [56.6 kB]
[2024-04-16T02:01:11.696Z] Ign:3 http://debian-archive.trafficmanager.net/debian buster-backports InRelease
[2024-04-16T02:01:11.696Z] Get:4 http://debian-archive.trafficmanager.net/debian-security buster/updates InRelease [34.8 kB]
[2024-04-16T02:01:11.696Z] Err:5 http://debian-archive.trafficmanager.net/debian buster-backports Release
[2024-04-16T02:01:11.696Z]   404  Not Found [IP: 20.50.188.130 80]
[2024-04-16T02:01:11.696Z] Get:6 http://debian-archive.trafficmanager.net/debian buster/main Sources [7852 kB]
[2024-04-16T02:01:11.696Z] Get:7 http://debian-archive.trafficmanager.net/debian buster/non-free Sources [85.9 kB]
[2024-04-16T02:01:11.696Z] Get:8 http://debian-archive.trafficmanager.net/debian buster/contrib Sources [42.5 kB]
[2024-04-16T02:01:11.696Z] Get:9 http://debian-archive.trafficmanager.net/debian buster/contrib amd64 Packages [50.1 kB]
[2024-04-16T02:01:11.696Z] Get:10 http://debian-archive.trafficmanager.net/debian buster/main amd64 Packages [7909 kB]
[2024-04-16T02:01:11.696Z] Get:11 http://debian-archive.trafficmanager.net/debian buster/non-free amd64 Packages [87.8 kB]
[2024-04-16T02:01:11.696Z] Get:12 http://debian-archive.trafficmanager.net/debian buster-updates/main Sources [4616 B]
[2024-04-16T02:01:11.696Z] Get:13 http://debian-archive.trafficmanager.net/debian buster-updates/main amd64 Packages [8788 B]
[2024-04-16T02:01:11.696Z] Get:14 http://debian-archive.trafficmanager.net/debian-security buster/updates/main Sources [376 kB]
[2024-04-16T02:01:11.696Z] Get:15 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib Sources [1084 B]
[2024-04-16T02:01:11.696Z] Get:16 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free Sources [4420 B]
[2024-04-16T02:01:11.697Z] Get:17 http://debian-archive.trafficmanager.net/debian-security buster/updates/contrib amd64 Packages [3460 B]
[2024-04-16T02:01:11.697Z] Get:18 http://debian-archive.trafficmanager.net/debian-security buster/updates/non-free amd64 Packages [11.0 kB]
[2024-04-16T02:01:11.697Z] Get:19 http://debian-archive.trafficmanager.net/debian-security buster/updates/main amd64 Packages [595 kB]
[2024-04-16T02:01:11.697Z] Reading package lists...
[2024-04-16T02:01:11.697Z] �[91mE: The repository 'http://debian-archive.trafficmanager.net/debian buster-backports Release' does not have a Release file.
[2024-04-16T02:01:11.697Z] �[0mThe command '/bin/sh -c apt-get update &&     apt-get install -y g++ python3-dev libxml2 libcurl3-gnutls libcjson-dev' returned a non-zero code: 100
[2024-04-16T02:01:11.697Z] [  FAIL LOG END  ] [ target/docker-sonic-mgmt-framework.gz ]

Can paste the other Step? like this:

Step 9/83 : COPY ["buildinfo", "/usr/local/share/buildinfo"]
Step 10/83 : COPY vcache/ /sonic/target/vcache/sonic-slave-buster
Step 11/83 : RUN dpkg -i /usr/local/share/buildinfo/sonic-build-hooks_1.0_all.deb
Step 12/83 : ENV IMAGENAME=sonic-slave-buster
Step 13/83 : ENV DISTRO=buster

@dgsudharsan
Copy link
Collaborator

@liushilongbuaa

[2024-04-16T02:01:11.693Z] [ FAIL LOG START ] [ target/docker-sonic-mgmt-framework.gz ]
[2024-04-16T02:01:11.693Z] Build start time: Tue Apr 16 02:00:00 UTC 2024
[2024-04-16T02:01:11.693Z] [ REASON ] :      target/docker-sonic-mgmt-framework.gz does not exist   NON-EXISTENT PREREQUISITES: docker-start target/docker-config-engine-buster.gz-load
[2024-04-16T02:01:11.693Z] [ FLAGS  FILE    ] : []
[2024-04-16T02:01:11.693Z] [ FLAGS  DEPENDS ] : [mellanox amd64 buster y]
[2024-04-16T02:01:11.693Z] [ FLAGS  DIFF    ] : [mellanox amd64 buster y ]
[2024-04-16T02:01:11.693Z] Client: Docker Engine - Community
[2024-04-16T02:01:11.693Z]  Version:    24.0.2
[2024-04-16T02:01:11.693Z]  Context:    default
[2024-04-16T02:01:11.693Z]  Debug Mode: false
[2024-04-16T02:01:11.693Z]  Plugins:
[2024-04-16T02:01:11.693Z]   buildx: Docker Buildx (Docker Inc.)
[2024-04-16T02:01:11.693Z]     Version:  v0.10.5
[2024-04-16T02:01:11.693Z]     Path:     /usr/libexec/docker/cli-plugins/docker-buildx
[2024-04-16T02:01:11.693Z]   compose: Docker Compose (Docker Inc.)
[2024-04-16T02:01:11.693Z]     Version:  v2.18.1
[2024-04-16T02:01:11.694Z]     Path:     /usr/libexec/docker/cli-plugins/docker-compose
[2024-04-16T02:01:11.694Z]
[2024-04-16T02:01:11.694Z] Server:
[2024-04-16T02:01:11.694Z]  Containers: 0
[2024-04-16T02:01:11.694Z]   Running: 0
[2024-04-16T02:01:11.694Z]   Paused: 0
[2024-04-16T02:01:11.694Z]   Stopped: 0
[2024-04-16T02:01:11.694Z]  Images: 2
[2024-04-16T02:01:11.694Z]  Server Version: 24.0.2
[2024-04-16T02:01:11.694Z]  Storage Driver: vfs
[2024-04-16T02:01:11.694Z]  Logging Driver: json-file
[2024-04-16T02:01:11.694Z]  Cgroup Driver: cgroupfs
[2024-04-16T02:01:11.694Z]  Cgroup Version: 1
[2024-04-16T02:01:11.694Z]  Plugins:
[2024-04-16T02:01:11.694Z]   Volume: local
[2024-04-16T02:01:11.694Z]   Network: bridge host ipvlan macvlan null overlay
[2024-04-16T02:01:11.694Z]   Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
[2024-04-16T02:01:11.694Z]  Swarm: inactive
[2024-04-16T02:01:11.694Z]  Runtimes: io.containerd.runc.v2 runc
[2024-04-16T02:01:11.694Z]  Default Runtime: runc
[2024-04-16T02:01:11.694Z]  Init Binary: docker-init
[2024-04-16T02:01:11.694Z]  containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
[2024-04-16T02:01:11.694Z]  runc version: v1.1.7-0-g860f061
[2024-04-16T02:01:11.694Z]  init version: de40ad0
[2024-04-16T02:01:11.694Z]  Security Options:
[2024-04-16T02:01:11.694Z]   seccomp
[2024-04-16T02:01:11.694Z]    Profile: builtin
[2024-04-16T02:01:11.694Z]  Kernel Version: 4.15.0-153-generic
[2024-04-16T02:01:11.694Z]  Operating System: Debian GNU/Linux 10 (buster) (containerized)
[2024-04-16T02:01:11.694Z]  OSType: linux
[2024-04-16T02:01:11.694Z]  Architecture: x86_64
[2024-04-16T02:01:11.694Z]  CPUs: 30
[2024-04-16T02:01:11.694Z]  Total Memory: 28.75GiB
[2024-04-16T02:01:11.694Z]  Name: 0dcfeea57b48
[2024-04-16T02:01:11.694Z]  ID: 22fa2b6b-9b6d-47f5-ad91-5aee01b286a5
[2024-04-16T02:01:11.694Z]  Docker Root Dir: /var/lib/docker
[2024-04-16T02:01:11.694Z]  Debug Mode: false
[2024-04-16T02:01:11.694Z]  Experimental: true
[2024-04-16T02:01:11.694Z]  Insecure Registries:
[2024-04-16T02:01:11.694Z]   127.0.0.0/8
[2024-04-16T02:01:11.694Z]  Registry Mirrors:
[2024-04-16T02:01:11.694Z]   [https://dockerhub-backup.nvidia.com/](https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdockerhub-backup.nvidia.com%2F&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192578139%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ll5jzizw9r5AXQiJNgt9%2FlRU1h1RNiFMXgMFqfihoNE%3D&reserved=0)
[2024-04-16T02:01:11.694Z]   [https://dockerhub.nvidia.com/](https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdockerhub.nvidia.com%2F&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192587626%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=sVuCAwzsj1tI66o8S%2FOkIaYD3XQWGwmqqlCJfJw%2B4SY%3D&reserved=0)
[2024-04-16T02:01:11.694Z]  Live Restore Enabled: false
[2024-04-16T02:01:11.694Z]
[2024-04-16T02:01:11.694Z] WARNING: No swap limit support
[2024-04-16T02:01:11.694Z] DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
[2024-04-16T02:01:11.694Z]             BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
[2024-04-16T02:01:11.694Z]             environment-variable.
[2024-04-16T02:01:11.694Z]
[2024-04-16T02:01:11.694Z] Sending build context to Docker daemon  23.93MB
 
[2024-04-16T02:01:11.694Z] Step 1/26 : FROM docker-config-engine-buster-sonic:latest
[2024-04-16T02:01:11.694Z]  ---> 43ac2edcce2c
[2024-04-16T02:01:11.694Z] Step 2/26 : ARG docker_container_name
[2024-04-16T02:01:11.695Z]  ---> Running in be2ff08f3451
[2024-04-16T02:01:11.695Z] Removing intermediate container be2ff08f3451
[2024-04-16T02:01:11.695Z]  ---> 7b04f0a11486
[2024-04-16T02:01:11.695Z] Step 3/26 : ENV DEBIAN_FRONTEND=noninteractive
[2024-04-16T02:01:11.695Z]  ---> Running in 951f6d6a49df
[2024-04-16T02:01:11.695Z] Removing intermediate container 951f6d6a49df
[2024-04-16T02:01:11.695Z]  ---> 749d7e2ecd18
[2024-04-16T02:01:11.695Z] Step 4/26 : ARG SONIC_VERSION_CACHE
[2024-04-16T02:01:11.695Z]  ---> Running in 000fe9831a77
[2024-04-16T02:01:11.695Z] Removing intermediate container 000fe9831a77
[2024-04-16T02:01:11.695Z]  ---> 2b43df301126
[2024-04-16T02:01:11.695Z] Step 5/26 : ARG SONIC_VERSION_CONTROL_COMPONENTS
[2024-04-16T02:01:11.695Z]  ---> Running in 0ac1003e3a60
[2024-04-16T02:01:11.695Z] Removing intermediate container 0ac1003e3a60
[2024-04-16T02:01:11.695Z]  ---> 109b64f50cc6
[2024-04-16T02:01:11.695Z] Step 6/26 : COPY ["buildinfo", "/usr/local/share/buildinfo"]
[2024-04-16T02:01:11.695Z]  ---> a6d2817a19e3
[2024-04-16T02:01:11.695Z] Step 7/26 : COPY vcache/ /sonic/target/vcache/docker-sonic-mgmt-framework
[2024-04-16T02:01:11.695Z]  ---> 00726f31ef10
[2024-04-16T02:01:11.695Z] Step 8/26 : RUN dpkg -i /usr/local/share/buildinfo/sonic-build-hooks_1.0_all.deb
[2024-04-16T02:01:11.695Z]  ---> Running in 1a1b5d8a6b64
[2024-04-16T02:01:11.695Z] (Reading database ... 10863 files and directories currently installed.)
[2024-04-16T02:01:11.695Z] Preparing to unpack .../sonic-build-hooks_1.0_all.deb ...
[2024-04-16T02:01:11.695Z] Unpacking sonic-build-hooks (1.0) over (1.0) ...
[2024-04-16T02:01:11.695Z] Setting up sonic-build-hooks (1.0) ...
[2024-04-16T02:01:11.695Z] Removing intermediate container 1a1b5d8a6b64
[2024-04-16T02:01:11.695Z]  ---> 8f213ba480dd
[2024-04-16T02:01:11.695Z] Step 9/26 : ENV IMAGENAME=docker-sonic-mgmt-framework
[2024-04-16T02:01:11.695Z]  ---> Running in d84c84b2ebf2
[2024-04-16T02:01:11.695Z] Removing intermediate container d84c84b2ebf2
[2024-04-16T02:01:11.695Z]  ---> 124bc977cb27
[2024-04-16T02:01:11.695Z] Step 10/26 : ENV DISTRO=buster
[2024-04-16T02:01:11.695Z]  ---> Running in 5becface874c
[2024-04-16T02:01:11.695Z] Removing intermediate container 5becface874c
[2024-04-16T02:01:11.695Z]  ---> c61c706072ff
[2024-04-16T02:01:11.695Z] Step 11/26 : RUN pre_run_buildinfo docker-sonic-mgmt-framework
[2024-04-16T02:01:11.695Z]  ---> Running in 96693e4d8167
[2024-04-16T02:01:11.695Z] Removing intermediate container 96693e4d8167
[2024-04-16T02:01:11.695Z]  ---> 09c124f26863
[2024-04-16T02:01:11.696Z] Step 12/26 : RUN apt-get update &&     apt-get install -y g++ python3-dev libxml2 libcurl3-gnutls libcjson-dev
[2024-04-16T02:01:11.696Z]  ---> Running in 3cc956004f39
[2024-04-16T02:01:11.696Z] Get:1 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192594079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=HQR3QRW9zRp%2B9dOYwEqjX3zwCon9vEadmLRBT1v8oQw%3D&reserved=0) buster InRelease [122 kB]
[2024-04-16T02:01:11.696Z] Get:2 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192599403%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=IyL%2Fu0%2FV2mVJ4G41h1tXhPHf91fYSq42gL7XOiGFeiE%3D&reserved=0) buster-updates InRelease [56.6 kB]
[2024-04-16T02:01:11.696Z] Ign:3 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192604159%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=fVwHT28zq%2BY%2BEQUhBapIXsr6ioisz38nOErR5q0fJjM%3D&reserved=0) buster-backports InRelease
[2024-04-16T02:01:11.696Z] Get:4 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192608947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Pp7TotlzOkYFHLR%2BFt%2BPh%2Bq%2FLIi9k%2F6w2nSrILbC46A%3D&reserved=0) buster/updates InRelease [34.8 kB]
[2024-04-16T02:01:11.696Z] Err:5 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192613624%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=9dw39%2FE%2B6xRuix2VQ%2BxWFf9Ne4Z%2FoBwIfNlWwxzQPSA%3D&reserved=0) buster-backports Release
[2024-04-16T02:01:11.696Z]   404  Not Found [IP: 20.50.188.130 80]
[2024-04-16T02:01:11.696Z] Get:6 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192618698%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ZWNPv5J4ir9ZdJrU1347XndUx2UXwUJjEfLmw6v7A5k%3D&reserved=0) buster/main Sources [7852 kB]
[2024-04-16T02:01:11.696Z] Get:7 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192623469%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=De769adOE07FQBQPRKLHE94QZCkEZ05eGCi1WQKpCj4%3D&reserved=0) buster/non-free Sources [85.9 kB]
[2024-04-16T02:01:11.696Z] Get:8 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192628152%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=E4DvJiWU65MtHHLpZpgpaHxRW4UAsEzfjjqCSsB%2FTSw%3D&reserved=0) buster/contrib Sources [42.5 kB]
[2024-04-16T02:01:11.696Z] Get:9 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192632773%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=FdmwPFAPF3Ag1by7djko8VTKoWIRXDOoPRWlsqAgIvo%3D&reserved=0) buster/contrib amd64 Packages [50.1 kB]
[2024-04-16T02:01:11.696Z] Get:10 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192637529%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Ui58yZNnvhVAmkIq%2B6SXNdtmpHQimZsVfRE5s%2F3cZ2s%3D&reserved=0) buster/main amd64 Packages [7909 kB]
[2024-04-16T02:01:11.696Z] Get:11 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192642270%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=PpQeeJI97giCb0rEvEefaFNpno2pl3gRooOMkaydlic%3D&reserved=0) buster/non-free amd64 Packages [87.8 kB]
[2024-04-16T02:01:11.696Z] Get:12 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192646747%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=d9Py9aJ2r9YifOg7up9aan%2Ft9B39MU5UorWG8dvroYs%3D&reserved=0) buster-updates/main Sources [4616 B]
[2024-04-16T02:01:11.696Z] Get:13 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192651288%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=uDfolF1gx0KTrbOr5mCLlHT9vwZ3XFPunrBgSoKKOjU%3D&reserved=0) buster-updates/main amd64 Packages [8788 B]
[2024-04-16T02:01:11.696Z] Get:14 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192655796%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=FjCMUbbcnX%2BPq7maDv3cyppJTwvHF2t0j4g3p3onBJQ%3D&reserved=0) buster/updates/main Sources [376 kB]
[2024-04-16T02:01:11.696Z] Get:15 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192660277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=SXRmQEj6od3JGlKd1%2FywDe6%2FvxR6GrHpo%2FBoGLwyLRw%3D&reserved=0) buster/updates/contrib Sources [1084 B]
[2024-04-16T02:01:11.696Z] Get:16 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192664810%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=1UV%2BHZs%2Bqbw0KLRQPcP6i7UbU7EWdRcw3QvBAdRbv08%3D&reserved=0) buster/updates/non-free Sources [4420 B]
[2024-04-16T02:01:11.697Z] Get:17 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192669351%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=zgTuy5Ufqqc0lLkVmTn3BxgYrH2EIJbal1xzS5D9OMA%3D&reserved=0) buster/updates/contrib amd64 Packages [3460 B]
[2024-04-16T02:01:11.697Z] Get:18 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192673906%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=AXo6cwbIsjWJgGotRFXpLhuqY5jnRv3GBbf8z5IxKMc%3D&reserved=0) buster/updates/non-free amd64 Packages [11.0 kB]
[2024-04-16T02:01:11.697Z] Get:19 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192678458%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ZkBZ6S1ir%2F%2BDNZl%2Fsba6%2FnnTs6wcZPEP7TzihSUeXSM%3D&reserved=0) buster/updates/main amd64 Packages [595 kB]
[2024-04-16T02:01:11.697Z] Reading package lists...
[2024-04-16T02:01:11.697Z] [91mE: The repository 'http://debian-archive.trafficmanager.net/debian buster-backports Release' does not have a Release file.
[2024-04-16T02:01:11.697Z] [0mThe command '/bin/sh -c apt-get update &&     apt-get install -y g++ python3-dev libxml2 libcurl3-gnutls libcjson-dev' returned a non-zero code: 100
[2024-04-16T02:01:11.697Z] [  FAIL LOG END  ] [ target/docker-sonic-mgmt-framework.gz ]

@mikemallin
Copy link

@liushilongbuaa

[2024-04-16T02:01:11.696Z] Step 12/26 : RUN apt-get update &&     apt-get install -y g++ python3-dev libxml2 libcurl3-gnutls libcjson-dev
[2024-04-16T02:01:11.696Z]  ---> Running in 3cc956004f39
[2024-04-16T02:01:11.696Z] Get:1 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192594079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=HQR3QRW9zRp%2B9dOYwEqjX3zwCon9vEadmLRBT1v8oQw%3D&reserved=0) buster InRelease [122 kB]
[2024-04-16T02:01:11.696Z] Get:2 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192599403%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=IyL%2Fu0%2FV2mVJ4G41h1tXhPHf91fYSq42gL7XOiGFeiE%3D&reserved=0) buster-updates InRelease [56.6 kB]
[2024-04-16T02:01:11.696Z] Ign:3 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192604159%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=fVwHT28zq%2BY%2BEQUhBapIXsr6ioisz38nOErR5q0fJjM%3D&reserved=0) buster-backports InRelease
[2024-04-16T02:01:11.696Z] Get:4 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192608947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Pp7TotlzOkYFHLR%2BFt%2BPh%2Bq%2FLIi9k%2F6w2nSrILbC46A%3D&reserved=0) buster/updates InRelease [34.8 kB]
[2024-04-16T02:01:11.696Z] Err:5 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192613624%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=9dw39%2FE%2B6xRuix2VQ%2BxWFf9Ne4Z%2FoBwIfNlWwxzQPSA%3D&reserved=0) buster-backports Release
[2024-04-16T02:01:11.696Z]   404  Not Found [IP: 20.50.188.130 80]
[2024-04-16T02:01:11.696Z] Get:6 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192618698%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ZWNPv5J4ir9ZdJrU1347XndUx2UXwUJjEfLmw6v7A5k%3D&reserved=0) buster/main Sources [7852 kB]
[2024-04-16T02:01:11.696Z] Get:7 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192623469%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=De769adOE07FQBQPRKLHE94QZCkEZ05eGCi1WQKpCj4%3D&reserved=0) buster/non-free Sources [85.9 kB]
[2024-04-16T02:01:11.696Z] Get:8 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192628152%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=E4DvJiWU65MtHHLpZpgpaHxRW4UAsEzfjjqCSsB%2FTSw%3D&reserved=0) buster/contrib Sources [42.5 kB]
[2024-04-16T02:01:11.696Z] Get:9 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192632773%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=FdmwPFAPF3Ag1by7djko8VTKoWIRXDOoPRWlsqAgIvo%3D&reserved=0) buster/contrib amd64 Packages [50.1 kB]
[2024-04-16T02:01:11.696Z] Get:10 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192637529%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Ui58yZNnvhVAmkIq%2B6SXNdtmpHQimZsVfRE5s%2F3cZ2s%3D&reserved=0) buster/main amd64 Packages [7909 kB]
[2024-04-16T02:01:11.696Z] Get:11 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192642270%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=PpQeeJI97giCb0rEvEefaFNpno2pl3gRooOMkaydlic%3D&reserved=0) buster/non-free amd64 Packages [87.8 kB]
[2024-04-16T02:01:11.696Z] Get:12 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192646747%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=d9Py9aJ2r9YifOg7up9aan%2Ft9B39MU5UorWG8dvroYs%3D&reserved=0) buster-updates/main Sources [4616 B]
[2024-04-16T02:01:11.696Z] Get:13 [http://debian-archive.trafficmanager.net/debian](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192651288%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=uDfolF1gx0KTrbOr5mCLlHT9vwZ3XFPunrBgSoKKOjU%3D&reserved=0) buster-updates/main amd64 Packages [8788 B]
[2024-04-16T02:01:11.696Z] Get:14 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192655796%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=FjCMUbbcnX%2BPq7maDv3cyppJTwvHF2t0j4g3p3onBJQ%3D&reserved=0) buster/updates/main Sources [376 kB]
[2024-04-16T02:01:11.696Z] Get:15 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192660277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=SXRmQEj6od3JGlKd1%2FywDe6%2FvxR6GrHpo%2FBoGLwyLRw%3D&reserved=0) buster/updates/contrib Sources [1084 B]
[2024-04-16T02:01:11.696Z] Get:16 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192664810%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=1UV%2BHZs%2Bqbw0KLRQPcP6i7UbU7EWdRcw3QvBAdRbv08%3D&reserved=0) buster/updates/non-free Sources [4420 B]
[2024-04-16T02:01:11.697Z] Get:17 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192669351%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=zgTuy5Ufqqc0lLkVmTn3BxgYrH2EIJbal1xzS5D9OMA%3D&reserved=0) buster/updates/contrib amd64 Packages [3460 B]
[2024-04-16T02:01:11.697Z] Get:18 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192673906%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=AXo6cwbIsjWJgGotRFXpLhuqY5jnRv3GBbf8z5IxKMc%3D&reserved=0) buster/updates/non-free amd64 Packages [11.0 kB]
[2024-04-16T02:01:11.697Z] Get:19 [http://debian-archive.trafficmanager.net/debian-security](https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdebian-archive.trafficmanager.net%2Fdebian-security&data=05%7C02%7Csudharsand%40nvidia.com%7C4804f96bc91446917a6208dc5dc0df66%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638488330192678458%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ZkBZ6S1ir%2F%2BDNZl%2Fsba6%2FnnTs6wcZPEP7TzihSUeXSM%3D&reserved=0) buster/updates/main amd64 Packages [595 kB]
[2024-04-16T02:01:11.697Z] Reading package lists...
[2024-04-16T02:01:11.697Z] [91mE: The repository 'http://debian-archive.trafficmanager.net/debian buster-backports Release' does not have a Release file.
[2024-04-16T02:01:11.697Z] [0mThe command '/bin/sh -c apt-get update &&     apt-get install -y g++ python3-dev libxml2 libcurl3-gnutls libcjson-dev' returned a non-zero code: 100
[2024-04-16T02:01:11.697Z] [  FAIL LOG END  ] [ target/docker-sonic-mgmt-framework.gz ]

Hi Folks,

I've run into the same issue. I'd like to propose the following diff in addition to the one in this PR to handle the MIRROR_SNAPSHOT=y case.

Thanks,
Mike.

diff --git a/scripts/build_mirror_config.sh b/scripts/build_mirror_config.sh
index 120640fe1..3eea95706 100755
--- a/scripts/build_mirror_config.sh
+++ b/scripts/build_mirror_config.sh
@@ -56,4 +56,7 @@ MIRROR_URLS=$MIRROR_URLS MIRROR_SECURITY_URLS=$MIRROR_SECURITY_URLS j2 $TEMPLATE
 if [ "$MIRROR_SNAPSHOT" == y ]; then
     # Set the snapshot mirror, and add the SET_REPR_MIRRORS flag
     sed -i -e "/^#*deb.*packages.trafficmanager.net/! s/^#*deb/#&/" -e "\$a#SET_REPR_MIRRORS" $CONFIG_PATH/sources.list.$ARCHITECTURE
+    if [ "$DISTRIBUTION" == "buster" ]; then
+        sed -i -E '/backports/s/http:\/\/packages.trafficmanager.net\/snapshot\/debian\/.* buster/http:\/\/archive.debian.org\/debian\/ buster/gm;t' $CONFIG_PATH/sources.list.$ARCHITECTURE
+    fi
 fi

This results in the following sources.list.amd64 file for me (on 202305):

cat sonic-slave-buster/sources.list.amd64 
# 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/20240416T000228Z/ buster main contrib non-free
deb-src [arch=amd64] http://packages.trafficmanager.net/snapshot/debian/20240416T000228Z/ buster main contrib non-free
deb [arch=amd64] http://packages.trafficmanager.net/snapshot/debian/20240416T000228Z/ buster-updates main contrib non-free
deb-src [arch=amd64] http://packages.trafficmanager.net/snapshot/debian/20240416T000228Z/ buster-updates main contrib non-free
deb [arch=amd64] http://archive.debian.org/debian/ 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/20240416T000141Z/ buster/updates main contrib non-free
deb-src [arch=amd64] http://packages.trafficmanager.net/snapshot/debian-security/20240416T000141Z/ buster/updates main contrib non-free

#SET_REPR_MIRRORS

@saiarcot895
Copy link
Contributor Author

saiarcot895 commented Apr 16, 2024

@mikemallin The snapshotted version should be fine as-is, I think, because the buster-backports section already existed at that point of time and won't change. Is there something I'm missing there?

Copy link
Collaborator

@xumia xumia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

It is also supported to customize the mirror url.

export MIRROR_URLS=http://archive.debian.org/debian/
make configure PLATFORM=vs

Or using the packages.trafficmamager.net/snapshot (latest snapshot), by

export MIRROR_SNAPSHOT=y

Or enable reproducible build to use the packages.trafficmamager.net/snapshot (verified snapshot):

export SONIC_VERSION_CONTROL_COMPONENTS=deb

@xumia
Copy link
Collaborator

xumia commented Apr 17, 2024

@saiarcot895 , could you please add an ADO number in description for it? Thanks.

@saiarcot895
Copy link
Contributor Author

@saiarcot895 , could you please add an ADO number in description for it? Thanks.

Done

LGTM. @saiarcot895 do you know why sonic-mgmt-framework still use buster?

I think it was a miss from the Bullseye container upgrade cycle. There's work being done now to upgrade it to Bookworm.

@xumia xumia merged commit e6c73f4 into sonic-net:master Apr 17, 2024
19 checks passed
@mikemallin
Copy link

@mikemallin The snapshotted version should be fine as-is, I think, because the buster-backports section already existed at that point of time and won't change. Is there something I'm missing there?

Nope, I missed the snapshot on my side. I only saw the non-snapshot view of the archive.

@jusherma
Copy link
Contributor

Can this be backported to 202305 please?

@dgsudharsan
Copy link
Collaborator

@yxieca Can you please cherry-pick this for 202311?
@StormLiangMS Can you please cherry-pick this for 202305?

@saiarcot895 saiarcot895 deleted the fix-buster-packages branch April 18, 2024 02:26
dgsudharsan pushed a commit to dgsudharsan/sonic-buildimage that referenced this pull request Apr 18, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Apr 18, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #18720

mssonicbld pushed a commit that referenced this pull request Apr 20, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
Junchao-Mellanox pushed a commit to Junchao-Mellanox/sonic-buildimage that referenced this pull request Apr 25, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
@krismarvell
Copy link
Contributor

Can this be backported to 202211 release as well ?

fengkm pushed a commit to ufispace-dev/sonic-buildimage that referenced this pull request May 10, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
fengkm pushed a commit to ufispace-dev/sonic-buildimage that referenced this pull request May 13, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
vivekrnv pushed a commit to vivekrnv/sonic-buildimage that referenced this pull request May 14, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
@liat-grozovik
Copy link
Collaborator

@yxieca this PR is not part of 202205. this means that we are not able to run builds from 202205 when needed. please review and add the label please and help to unblock such build
@xumia FYI

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request May 21, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #19030

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request May 21, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #19031

mssonicbld pushed a commit that referenced this pull request May 22, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
mssonicbld pushed a commit that referenced this pull request May 22, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
MuLinForest pushed a commit to MuLinForest/sonic-buildimage that referenced this pull request Aug 6, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
MuLinForest pushed a commit to MuLinForest/sonic-buildimage that referenced this pull request Aug 6, 2024
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
MuLinForest pushed a commit to MuLinForest/sonic-buildimage that referenced this pull request Aug 6, 2024
[Sync PR sonic-net#18038, sonic-net#18678] [Build] Use the archive repo for Buster and use public storage for public resources.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.