Closed chendelin1982 closed 3 years ago
add this task before apt install
- name: Check dpkg lock wait for Upgrade
become: yes
shell: |
while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep 5; done;
while sudo fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1; do sleep 5; done;
Done
task
dkpg locked on Amazon Unbutnu20.04, need to retry it