Debian Bug report logs - #1091701
debconf: bad error about unable to write templates.dat-new when there is no data to write

version graph

Package: debconf; Maintainer for debconf is Debconf Developers <[email protected]>; Source for debconf is src:debconf (PTS, buildd, popcon).

Reported by: Russell Coker <[email protected]>

Date: Mon, 30 Dec 2024 03:42:01 UTC

Severity: normal

Found in version debconf/1.5.89

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debconf Developers <[email protected]>:
Bug#1091701; Package debconf. (Mon, 30 Dec 2024 03:42:02 GMT) (full text, mbox, link).


Acknowledgement sent to Russell Coker <[email protected]>:
New Bug report received and forwarded. Copy sent to Debconf Developers <[email protected]>. (Mon, 30 Dec 2024 03:42:02 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Russell Coker <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: debconf: bad error about unable to write templates.dat-new when there is no data to write
Date: Mon, 30 Dec 2024 14:38:13 +1100
Package: debconf
Version: 1.5.89
Severity: normal

I am writing SE Linux policy for the needrestart utility which runs the debconf
frontend program.

When it runs I see the following error message:
debconf: DbDriver "templatedb": could not write /var/cache/debconf/templates.dat-new: Permission denied

Firstly due to it's nature needrestart won't have anything to write to the
templates.dat file.

Next here is an extract from the strace output:
str.9334:openat(AT_FDCWD, "/var/cache/debconf/templates.dat", O_RDWR|O_CLOEXEC) = -1 EACCES (Permission denied)
str.9334:openat(AT_FDCWD, "/var/cache/debconf/templates.dat", O_RDONLY|O_CLOEXEC) = 4

So when it reads the data it sees that RDWR access isn't allowed, opens it
read-only and doesn't report this as an error.  So by then it should know
that writing is inappropriate as well as being unneeded and not report it
as a problem.

-- System Information:
Debian Release: trixie/sid
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.6-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

debconf depends on no packages.

Versions of packages debconf recommends:
ii  apt           2.9.19
ii  apt-utils     2.9.19
ii  debconf-i18n  1.5.89

Versions of packages debconf suggests:
pn  debconf-doc                <none>
pn  debconf-kde-helper         <none>
pn  debconf-utils              <none>
pn  libgtk3-perl               <none>
pn  libnet-ldap-perl           <none>
pn  libterm-readline-gnu-perl  <none>
ii  perl                       5.40.0-8
ii  whiptail                   0.52.24-4

-- debconf-show failed



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Fri May 16 09:36:32 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.