Skip to content

Commit 2a4798c

Browse files
committed
vmupdate: don't fail if apt lock file doesn't exist
This is the case after fresh template installation. Fixes QubesOS/qubes-issues#9857
1 parent ea79a38 commit 2a4798c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vmupdate/agent/source/apt/apt_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def wait_for_lock(self):
5252
"""
5353
Wait for any other apt-get instance to finish.
5454
"""
55+
if not os.path.exists("/var/lib/apt/lists/lock"):
56+
return
5557
with self.apt_lock():
5658
pass
5759

0 commit comments

Comments
 (0)