Skip to content

Commit 4b33e14

Browse files
[ci] Fix apt-get install unable locate package issue. (sonic-net#1212)
1 parent 54116e9 commit 4b33e14

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
@@ -46,6 +46,8 @@ jobs:
4646

4747
steps:
4848
- script: |
49+
set -ex
50+
sudo apt-get update
4951
sudo apt-get install -y libhiredis0.14 libhiredis-dev
5052
sudo apt-get install -y libzmq5 libzmq3-dev
5153
sudo apt-get install -qq -y \

.azure-pipelines/build-template.yml

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949

5050
steps:
5151
- script: |
52+
set -ex
53+
sudo apt-get update
5254
sudo apt-get install -qq -y \
5355
qtbase5-dev \
5456
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
@@ -41,6 +41,7 @@ jobs:
4141
set -x
4242
sudo sonic-sairedis/.azure-pipelines/build_and_install_module.sh
4343
44+
sudo apt-get update
4445
sudo apt-get install -y libhiredis0.14
4546
sudo dpkg -i --force-confask,confnew ../libswsscommon_1.0.0_amd64.deb || apt-get install -f
4647
sudo dpkg -i ../python3-swsscommon_1.0.0_amd64.deb

0 commit comments

Comments
 (0)