Skip to content

Commit 08866c4

Browse files
committed
ci: Add apt-get update before install
This is standard practice and seems to resolve this this failure: Run limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3 Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package iperf3 Signed-off-by: Nir Soffer <[email protected]>
1 parent e147ae6 commit 08866c4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ jobs:
7979
limactl shell vm1 ip a
8080
- name: "Lima: vm1: set up iperf3"
8181
run: |
82-
limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
82+
export DEBIAN_FRONTEND=noninteractive
83+
limactl shell vm1 sudo apt-get update
84+
limactl shell vm1 sudo apt-get install -y iperf3
8385
limactl shell vm1 sudo systemctl start iperf3.service
8486
- name: "Lima: vm1: get the IP"
8587
run: |
@@ -96,7 +98,9 @@ jobs:
9698
limactl shell vm2 ip a
9799
- name: "Lima: vm2: set up iperf3"
98100
run: |
99-
limactl shell vm2 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
101+
export DEBIAN_FRONTEND=noninteractive
102+
limactl shell vm2 sudo apt-get update
103+
limactl shell vm2 sudo apt-get install -y iperf3
100104
- name: "Lima: vm2: iperf3 (vm2 -> vm1)"
101105
run: |
102106
limactl shell vm2 iperf3 -c "$(cat /tmp/vm1_ip)"

0 commit comments

Comments
 (0)