I think the person in comment 12 must be running a newer version of Ubuntu
and/or debconf. On 22.04 with debconf 1.5.79ubuntu1, the line looks like this:
if (system("apt-extracttemplates", @collect) != 0) {
No tempdir setting to be found! Also note that 'readlink -f' will still
output when the last path component doesn't exist, as it doesn't on my
22.04 system.
According to the debconf changelog, the upstream Debian bug 223683 was
fixed in debconf 1.5.81. Ubuntu 24.04 has 1.5.86 but 22.04 and older do
not have this fix.
This is 100% reproducible for me on 22.04 by:
- mounting /tmp noexec
- apt reinstall linux-base (this happened to be a small, recently-updated
package whose preconfigured script fails)
Combining the tempdir used in newer debconf plus the apt.conf setting in
https://bugs.launchpad.net/ubuntu/+source/debconf/+bug/90085/comments/23, I
came up with this workaround (from root shell):
# mkdir /var/cache/debconf/tmp.ci
# echo 'APT::ExtractTemplates::TempDir "/var/cache/debconf/tmp.ci";' >
/etc/apt/apt.conf.d/71debconf-tmpdir
Now 'apt reinstall linux-base' no longer has errors preconfiguring
packages.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2043711
Title:
Open3.pm tries to run code in /tmp when preconfiguring packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debconf/+bug/2043711/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs