--force-architecture forces dpkg to install packages for other
architectures than the host architecture. --force-depends is required
because when building for arm64 it seems it can't quite figure out
all the pre-depends. For extra safety, we also set APT::Architectures
on top of APT::Architecture.
dedent(
f"""\
APT::Architecture "{debarch}";
+ APT::Architectures "{debarch}";
APT::Immediate-Configure "off";
APT::Install-Recommends "false";
APT::Get::Assume-Yes "true";
DPkg::Options:: "--root={state.root}";
DPkg::Options:: "--log={state.workspace / "apt/dpkg.log"}";
DPkg::Options:: "--force-unsafe-io";
+ DPkg::Options:: "--force-architecture";
+ DPkg::Options:: "--force-depends";
Dpkg::Use-Pty "false";
DPkg::Install::Recursive::Minimum "1000";
pkgCacheGen::ForceEssential ",";