Skip to content

Commit f54f196

Browse files
committed
fix apt package lock issue
1 parent 031d788 commit f54f196

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/verify-lxd-vm.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ jobs:
131131
[ -n "$ipv4" ] || { echo "No VM IPv4 found"; lxc info "$NAME"; exit 1; }
132132
echo "KITCHEN_HOST=$ipv4" >> "$GITHUB_ENV"
133133
134-
- name: Wait for background apt jobs in LXD VM
135-
run: sleep 30
136-
137134
- name: Run kitchen test
138135
if: ${{ !contains(steps.commit.outputs.message, 'only-validate-profile') }}
139136
continue-on-error: true

kitchen.lxd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ lifecycle:
5454
sudo add-apt-repository -y universe || true
5555
sudo apt-get -y update
5656
echo ""
57+
echo "+++ Waiting for background apt/dpkg jobs before Python venv and pip install +++"
58+
sleep 30
59+
echo ""
5760
echo "+++ Installing Python venv and pip +++"
5861
PYVER="$(python3 -V | awk '{print $2}' | cut -d. -f1,2)"
5962
if ! sudo apt-get -y install "python${PYVER}-venv" python3-pip; then

0 commit comments

Comments
 (0)