From a3a15867eb3d3d90c9658c9ce156ee7349bbfa8f Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Mon, 16 Mar 2026 16:28:50 -0700 Subject: [PATCH 01/11] updating to trixie Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 18d76f17..6483f72b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,7 @@ stages: vmImage: ubuntu-24.04 container: - image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bookworm-amd64:$(BUILD_BRANCH) + image: sonicdev-microsoft.azurecr.io:443/sonic-slave-trixie-amd64:$(BUILD_BRANCH) steps: - checkout: self From 70de37cd90b7a231b3cd276c57463a4adbd68e13 Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Mon, 16 Mar 2026 16:34:05 -0700 Subject: [PATCH 02/11] updating docker image name Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6483f72b..e13e50eb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,7 @@ stages: vmImage: ubuntu-24.04 container: - image: sonicdev-microsoft.azurecr.io:443/sonic-slave-trixie-amd64:$(BUILD_BRANCH) + image: sonicdev-microsoft.azurecr.io:443/sonic-slave-trixie:$(BUILD_BRANCH)-amd64 steps: - checkout: self From 041b453a1b3591dcfa252015f911914d2db25c9d Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Mon, 16 Mar 2026 17:27:22 -0700 Subject: [PATCH 03/11] replacing bookworm with trixie, installing libpcre3 packages Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e13e50eb..8a6bc830 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -55,11 +55,12 @@ stages: sudo dpkg -i libnl-genl-3-200_*.deb sudo dpkg -i libnl-route-3-200_*.deb sudo dpkg -i libnl-nf-3-200_*.deb + sudo dpkg -i libpcre3_*.deb sudo dpkg -i libyang_1.0.73_*.deb sudo dpkg -i libswsscommon_1.0.0_amd64.deb sudo dpkg -i libswsscommon-dev_1.0.0_amd64.deb sudo dpkg -i python3-swsscommon_1.0.0_amd64.deb - workingDirectory: $(Pipeline.Workspace)/target/debs/bookworm/ + workingDirectory: $(Pipeline.Workspace)/target/debs/trixie/ displayName: 'Install Debian dependencies' - script: | @@ -72,7 +73,7 @@ stages: sudo pip3 install sonic_config_engine-1.0-py3-none-any.whl sudo pip3 install sonic_platform_common-1.0-py3-none-any.whl sudo pip3 install sonic_utilities-1.2-py3-none-any.whl - workingDirectory: $(Pipeline.Workspace)/target/python-wheels/bookworm/ + workingDirectory: $(Pipeline.Workspace)/target/python-wheels/trixie/ displayName: 'Install Python dependencies' - script: | From 1da8189d168d1c6d43b92904a3b30704d829e289 Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Thu, 19 Mar 2026 15:12:27 -0700 Subject: [PATCH 04/11] confirming trixie/13 Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8a6bc830..f4a4665e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -75,6 +75,13 @@ stages: sudo pip3 install sonic_utilities-1.2-py3-none-any.whl workingDirectory: $(Pipeline.Workspace)/target/python-wheels/trixie/ displayName: 'Install Python dependencies' + + - script: | + set -ex + cat /etc/os-release || true + uname -a || true + cat /etc/debian_version || true + displayName: "Debug: container OS info" - script: | set -ex From 51e826fb5f9a8dbd72c3a0318dad1485e9e2ff96 Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Thu, 19 Mar 2026 15:20:20 -0700 Subject: [PATCH 05/11] updating the debian version for installing .net core Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f4a4665e..2b7fc5d7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -75,19 +75,12 @@ stages: sudo pip3 install sonic_utilities-1.2-py3-none-any.whl workingDirectory: $(Pipeline.Workspace)/target/python-wheels/trixie/ displayName: 'Install Python dependencies' - - - script: | - set -ex - cat /etc/os-release || true - uname -a || true - cat /etc/debian_version || true - displayName: "Debug: container OS info" - script: | set -ex # Install .NET CORE curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - - sudo apt-add-repository https://packages.microsoft.com/debian/12/prod + sudo apt-add-repository https://packages.microsoft.com/debian/13/prod sudo apt-get update sudo apt-get install -y dotnet-sdk-8.0 displayName: "Install .NET CORE" From 176596667369de9156f80473cfc86dc010ed779a Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Thu, 19 Mar 2026 15:58:45 -0700 Subject: [PATCH 06/11] replace apt-key with signed by Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2b7fc5d7..c36c5715 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -79,8 +79,16 @@ stages: - script: | set -ex # Install .NET CORE - curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - - sudo apt-add-repository https://packages.microsoft.com/debian/13/prod + if ! command -v gpg &> /dev/null; then + sudo apt-get update + sudo apt-get install -y gnupg + fi + sudo mkdir -p /etc/apt/keyrings + curl -sLS https://packages.microsoft.com/keys/microsoft.asc | \ + gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null + sudo chmod go+r /etc/apt/keyrings/microsoft.gpg + echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/debian/13/prod trixie main" | \ + sudo tee /etc/apt/sources.list.d/microsoft.list sudo apt-get update sudo apt-get install -y dotnet-sdk-8.0 displayName: "Install .NET CORE" From 63c0e717680f807086da6c5c763def19400db22c Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Thu, 19 Mar 2026 16:21:26 -0700 Subject: [PATCH 07/11] Replace deprecated apt-key with signed-by for Debian 13/Trixie Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c36c5715..667b9bdc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -79,14 +79,15 @@ stages: - script: | set -ex # Install .NET CORE - if ! command -v gpg &> /dev/null; then - sudo apt-get update - sudo apt-get install -y gnupg - fi + sudo apt-get update + sudo apt-get -y install apt-transport-https ca-certificates curl gnupg lsb-release + + # Download and import key sudo mkdir -p /etc/apt/keyrings curl -sLS https://packages.microsoft.com/keys/microsoft.asc | \ gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null sudo chmod go+r /etc/apt/keyrings/microsoft.gpg + echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/debian/13/prod trixie main" | \ sudo tee /etc/apt/sources.list.d/microsoft.list sudo apt-get update From 5d7b54be1da7aaeccf9467902d68580a75d62c59 Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Thu, 19 Mar 2026 16:34:11 -0700 Subject: [PATCH 08/11] update key Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 667b9bdc..588f2483 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -85,10 +85,10 @@ stages: # Download and import key sudo mkdir -p /etc/apt/keyrings curl -sLS https://packages.microsoft.com/keys/microsoft.asc | \ - gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null - sudo chmod go+r /etc/apt/keyrings/microsoft.gpg + sudo tee /etc/apt/keyrings/microsoft.asc > /dev/null + sudo chmod go+r /etc/apt/keyrings/microsoft.asc - echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/debian/13/prod trixie main" | \ + echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/microsoft.asc] https://packages.microsoft.com/debian/13/prod trixie main" | \ sudo tee /etc/apt/sources.list.d/microsoft.list sudo apt-get update sudo apt-get install -y dotnet-sdk-8.0 From a59abfb3944c23c199798ef63d40d0f4e96c9752 Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Thu, 19 Mar 2026 16:51:49 -0700 Subject: [PATCH 09/11] updating key Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 588f2483..df13a159 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -83,12 +83,13 @@ stages: sudo apt-get -y install apt-transport-https ca-certificates curl gnupg lsb-release # Download and import key - sudo mkdir -p /etc/apt/keyrings curl -sLS https://packages.microsoft.com/keys/microsoft.asc | \ - sudo tee /etc/apt/keyrings/microsoft.asc > /dev/null - sudo chmod go+r /etc/apt/keyrings/microsoft.asc + gpg --dearmor | sudo tee /usr/share/keyrings/microsoft.gpg > /dev/null - echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/microsoft.asc] https://packages.microsoft.com/debian/13/prod trixie main" | \ + # Also add to trusted.gpg.d for sqv + sudo cp /usr/share/keyrings/microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg + + echo "deb [arch=amd64] https://packages.microsoft.com/debian/13/prod trixie main" | \ sudo tee /etc/apt/sources.list.d/microsoft.list sudo apt-get update sudo apt-get install -y dotnet-sdk-8.0 From 5b9b8dc2705725fe9f62e047c4fb28e187209650 Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Thu, 19 Mar 2026 17:09:51 -0700 Subject: [PATCH 10/11] updating key Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index df13a159..e842bf1d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -82,15 +82,15 @@ stages: sudo apt-get update sudo apt-get -y install apt-transport-https ca-certificates curl gnupg lsb-release - # Download and import key - curl -sLS https://packages.microsoft.com/keys/microsoft.asc | \ - gpg --dearmor | sudo tee /usr/share/keyrings/microsoft.gpg > /dev/null + # Download Microsoft signing key + sudo mkdir -p /etc/apt/keyrings + curl -sSL https://packages.microsoft.com/keys/microsoft.asc | \ + gpg --dearmor | sudo tee /usr/share/keyrings/microsoft-keyring.gpg > /dev/null - # Also add to trusted.gpg.d for sqv - sudo cp /usr/share/keyrings/microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg - - echo "deb [arch=amd64] https://packages.microsoft.com/debian/13/prod trixie main" | \ + # Add repo with signed-by pointing to the keyring + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-keyring.gpg] https://packages.microsoft.com/debian/13/prod trixie main" | \ sudo tee /etc/apt/sources.list.d/microsoft.list + sudo apt-get update sudo apt-get install -y dotnet-sdk-8.0 displayName: "Install .NET CORE" From a2a54678e99486e82ea881ae4a514756dee87f7f Mon Sep 17 00:00:00 2001 From: Priyansh Tratiya Date: Thu, 19 Mar 2026 17:16:55 -0700 Subject: [PATCH 11/11] use debian/12 to install net Signed-off-by: Priyansh Tratiya --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e842bf1d..450de2e9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -88,7 +88,7 @@ stages: gpg --dearmor | sudo tee /usr/share/keyrings/microsoft-keyring.gpg > /dev/null # Add repo with signed-by pointing to the keyring - echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-keyring.gpg] https://packages.microsoft.com/debian/13/prod trixie main" | \ + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-keyring.gpg] https://packages.microsoft.com/debian/12/prod bookworm main" | \ sudo tee /etc/apt/sources.list.d/microsoft.list sudo apt-get update