diff --git a/hh/src/sbx.rs b/hh/src/sbx.rs index 55e0f0e..11b6d53 100644 --- a/hh/src/sbx.rs +++ b/hh/src/sbx.rs @@ -762,6 +762,10 @@ pub fn provision(backend: Backend, name: &str, owner: &str, members: &[String]) run } Backend::Docker => { + // Refresh the apt index once so `apt-get install ` just works — + // base images ship without /var/lib/apt/lists, so installs otherwise + // fail with "Unable to locate package" until the user runs update. + dk(name, &["apt-get", "update"]); for m in members { let u = unix_name(m); if !u.is_empty() {