Comment 1 for bug 1734371

Revision history for this message
Robie Basak (racb) wrote :

Reproduced against 7e79017 in an artful VM, with only the following workaround applied. So this affects master and isn't a regression in my feature branch.

diff --git a/gitubuntu/build.py b/gitubuntu/build.py
index 072d3e7..3178e69 100644
--- a/gitubuntu/build.py
+++ b/gitubuntu/build.py
@@ -1004,11 +1004,12 @@ def do_build_lxd_exitstack(
             container_name,
         )

+ import time; time.sleep(20)
     for i in range(retries+1):
         try:
- _run_in_lxd(container_name, ['apt', 'update',])
+ _run_in_lxd(container_name, ['apt-get', 'update',])
             _run_in_lxd(container_name, [
- 'apt',
+ 'apt-get',
                 'install',
                 '-y',
                 'devscripts',
@@ -1018,7 +1019,7 @@ def do_build_lxd_exitstack(
             break
         except Exception as e:
             logging.error(
- "Failed to run apt in ephemeral build container "
+ "Failed to run apt-get in ephemeral build container "
                 "(attempt %d/%d)",
                 i+1, retries+1,
             )
@@ -1026,7 +1027,7 @@ def do_build_lxd_exitstack(
                 time.sleep(retry_backoffs[i])
     else:
         raise RuntimeError(
- "Failed to run apt in ephemeral build container"
+ "Failed to run apt-get in ephemeral build container"
         )

     try: