[Debconf-devel] Bug#774451: sane-utils: preconfigure of package sane-utils fails when /tmp is mounted noexec

pada pada at posteo.de
Sun Jan 4 00:04:11 UTC 2015


> John Paul Adrian Glaubitz wrote:
> > Also, this would be rather a bug in debconf

According to bug #129289 as of version 0.5.8, apt supports TMPDIR for
determining where apt-extracttemplates puts its temporary files.

So the solution is to provide a separate directory as
APT::ExtractTemplates::TempDir which is accessible by root only
and mounted with exec. You can replace /var/tmp/apt by whatever
directory you provide for root apt temporary files.

cat > /etc/apt/apt.conf.d/00tmpdir <<EOF
APT {
  ExtractTemplates {
    TempDir "/var/tmp/apt";
  }
}

DPkg {
  Pre-Invoke {
    "mkdir -m 0700 -p /var/tmp/apt";
  }
}
EOF



More information about the Debconf-devel mailing list