#825650 libreoffice-common: prompting due to modified conffiles which were not modified by the user: /etc/libreoffice/sofficerc #825650
- Package:
- libreoffice-common
- Source:
- libreoffice
- Submitter:
- Andreas Beckmann
- Date:
- 2025-08-08 05:57:02 UTC
- Severity:
- important
- Tags:
Hi, during a test with piuparts I noticed your package failed the piuparts upgrade test because dpkg detected a conffile as being modified and then prompted the user for an action. As there is no user input, this fails. But this is not the real problem, the real problem is that this prompt shows up in the first place, as there was nobody modifying this conffile at all, the package has just been installed and upgraded... This is a violation of policy 10.7.3, see https://www.debian.org/doc/debian-policy/ch-files.html#s10.7.3, which says "[These scripts handling conffiles] must not ask unnecessary questions (particularly during upgrades), and must otherwise be good citizens." https://wiki.debian.org/DpkgConffileHandling should help with figuring out how to do this properly. In https://lists.debian.org/debian-devel/2009/08/msg00675.html and followups it has been agreed that these bugs are to be filed with severity serious. Setting up libreoffice-common (1:5.1.3-1) ... Configuration file '/etc/libreoffice/sofficerc' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** sofficerc (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package libreoffice-common (--configure): end of file on stdin at conffile prompt This was observed on an upgrade from squeeze (openoffice) => wheezy (libreoffice) => jessie => stretch. Only the last step (jessie->stretch) failed. cheers, Andreas
tag 825650 + moreinfo
tag 825650 + help
thanks
Hi,
Nothing in LO touches (or even touched) sofficerc...
Yeah, I "like" templates. Especially if we don't do manual stuff with soffice
at all, so I don't see how that one applies here.
The attached log says openoffice.org-common. That one doesn't exist since
ages. (Yeah, I know it exists in squeeze.)
Which openoffice package? There was no openoffice in squeeze? Do you mean
openoffice.org? (Yes, "OpenOffice.org" was the name, not "OpenOffice")
So you started from oldoldstable which didn't even have libreoffice.
I don't belive upgrade bugs from squeeze are (still) RC, even if the actual
problem arrives now at jessie->stretch.
But let's try it:
- jessie cowbuilder + libreoffice -> stretch: works
- wheezy cowbuilder + libreoffice -> jessie -> stretch: works
- debootstrap squeeze from archive.debian.org + openoffice.org
-> wheezy -> jessie -> stretch (which you say this is about): running, will
take, will report back.
(I think any upgrade here just involving
openoffice.org-common/libreoffice-common and not "the rest" is artificial.
But one can try this, too...)
The only thing (see above) which _was_ done with sofficerc was this:
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "1:3.3.0-3"; then
[...]
dpkg-maintscript-helper mv_conffile \
"/etc/openoffice/sofficerc" "/etc/libreoffice/sofficerc" "" libreoffice-common -- "$@"
[...]
in libreoffice-commons postinst/postrm/preinst
But interestingly, in your log this only happened on the wheezy->jessie upgrade,
while it should already have been done in the squeeze->wheezy one. So
maybe dpkg gets confused because the mv_conffile is done "one release late"?
In any case, I don't see what to do here and how to fix *current* packages.
Regards,
Rene
tag 825650 - moreinfo severity 825650 important # there is no cantfix tag 825650 + wontfix thanks Hi, Indeed, after my squeeze->wheezy upgrade I still have a /etc/openoffice/sofficerc (together with a /etc/libreoffice/sofficerc) :-( And wheezy->jessie mv_conffiles it.. Seems the conditional doesn't get executed in squeeze->wheezy since there is no old "libreoffice-common" then. That makes it even more unfixable given squeeze is EOL and archived, and even wheezy is EOL. Even if we fixed this in wheezy-lts this wouldn't help people already running jessie or wheezy-backports (which has jessies version), which should be near 100% of people using LibreOffice. Regards, Rene
Same problem with soffice.sh and psprint.conf ...
I have now added a workaround for these problems in piuparts, deleting
/etc/openoffice/{sofficerc,soffice.sh,psprint.conf} if their
/etc/libreoffice/* counterparts exist before performing the upgrade from
wheezy to jessie (at this point nothing "bad" has happened, yet).
The solution for cleaning this up in stretch would be in
libreoffice-common.preinst:
for conffile in /etc/libreoffice/{sofficerc,soffice.sh,psprint.conf}
if md5sum(conffile) == known_md5sum_squeeze(conffile)
restore conffile from embedded copy from jessie
fi
done
Not sure if someone wants to implement this (I don't :-P) ... but IIRC
one package actually did recovery this way (for a single conffile), but
I don't remember who implemented it.
We could reconsider this option if it seems to be easier than dealing
with the bug reports being filed after stretch got released :-)
Anyway, we should keep this bug report open (and wontfix) as
documentation for people running into it.
Andreas
Dear submitter, as the package libreoffice has just been removed from the Debian archive experimental we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/1069123 The version of this package that was in Debian prior to this removal can still be found using https://snapshot.debian.org/. Please note that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Scott Kitterman (the ftpmaster behind the curtain)
Humanitarian Grant of 1.5M for you. Reply for claims