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:
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 build.py build.py lxd_exitstack(
container _name,
index 072d3e7..3178e69 100644
--- a/gitubuntu/
+++ b/gitubuntu/
@@ -1004,11 +1004,12 @@ def do_build_
)
+ import time; time.sleep(20) lxd(container_ name, ['apt', 'update',]) lxd(container_ name, ['apt-get', 'update',])
_ run_in_ lxd(container_ name, [
'install' ,
'-y' ,
'devscripts' , lxd_exitstack(
logging. error(
"(attempt %d/%d)",
i+1, retries+1, lxd_exitstack(
time. sleep(retry_ backoffs[ i])
for i in range(retries+1):
try:
- _run_in_
+ _run_in_
- 'apt',
+ 'apt-get',
@@ -1018,7 +1019,7 @@ def do_build_
break
except Exception as e:
- "Failed to run apt in ephemeral build container "
+ "Failed to run apt-get in ephemeral build container "
)
@@ -1026,7 +1027,7 @@ def do_build_
else:
raise RuntimeError(
- "Failed to run apt in ephemeral build container"
+ "Failed to run apt-get in ephemeral build container"
)
try: