From a2e5aefffd4a0b1bc08a6ce782afec78c93b87e5 Mon Sep 17 00:00:00 2001 From: Darii Nurgaleev <50947177+Darleev@users.noreply.github.com> Date: Sat, 19 Dec 2020 01:34:02 +0700 Subject: [PATCH] [Ubuntu] update apt.mock with additional lock error. (#2299) --- images/linux/scripts/base/apt-mock.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/linux/scripts/base/apt-mock.sh b/images/linux/scripts/base/apt-mock.sh index d46a18780..08a14a120 100644 --- a/images/linux/scripts/base/apt-mock.sh +++ b/images/linux/scripts/base/apt-mock.sh @@ -32,6 +32,9 @@ while [ \$i -le 30 ];do elif grep -q 'Temporary failure in name resolution' \$err;then # It looks like DNS is not updated with random generated hostname yet retry=true + elif grep -q 'dpkg frontend is locked by another process' \$err;then + # dpkg process is busy by another process + retry=true fi rm \$err