Skip to content

Commit a3f8e95

Browse files
[ci] Fix apt-get install unable locate package issue. (sonic-net#1212)
1 parent 96d3901 commit a3f8e95

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

.azure-pipelines/build-swss-template.yml

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
git status
5959
displayName: Set up sonic-swss branch
6060
- script: |
61+
set -ex
62+
sudo apt-get update
6163
sudo apt-get install -y libhiredis0.14 libhiredis-dev
6264
sudo apt-get install -y libzmq5 libzmq3-dev
6365
sudo apt-get install -qq -y \

.azure-pipelines/build-template.yml

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
clean: true
6363
submodules: true
6464
- script: |
65+
set -ex
66+
sudo apt-get update
6567
sudo apt-get install -qq -y \
6668
qtbase5-dev \
6769
libdbus-glib-1-2 \

.azure-pipelines/build_and_install_module.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function build_and_install_kmodule()
2626
SUBLEVEL=$(echo $KERNEL_MAINVERSION | cut -d. -f3)
2727

2828
# Install the required debian packages to build the kernel modules
29+
apt-get update
2930
apt-get install -y build-essential linux-headers-${KERNEL_RELEASE} autoconf pkg-config fakeroot
3031
apt-get install -y flex bison libssl-dev libelf-dev
3132
apt-get install -y libnl-route-3-200 libnl-route-3-dev libnl-cli-3-200 libnl-cli-3-dev libnl-3-dev

.azure-pipelines/test-docker-sonic-vs-template.yml

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
set -ex
4949
sudo sonic-sairedis/.azure-pipelines/build_and_install_module.sh
5050
51+
sudo apt-get update
5152
sudo apt-get install -y libhiredis0.14
5253
sudo dpkg -i --force-confask,confnew $(Build.ArtifactStagingDirectory)/download/libswsscommon_1.0.0_amd64.deb || apt-get install -f
5354
sudo dpkg -i $(Build.ArtifactStagingDirectory)/download/python3-swsscommon_1.0.0_amd64.deb

0 commit comments

Comments
 (0)