[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#801755: cqrlog: prompting due to modified conffiles which were not modified by the user: /etc/apparmor.d/usr.sbin.mysqld



Package: cqrlog
Version: 1.9.0-4
Severity: serious
User: debian-qa@lists.debian.org
Usertags: piuparts
Control: found -1 1.8.2-1.1

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.

>From the attached log (scroll to the bottom...):

While installing cqrlog/jessie (with --install-recommends):

  Setting up cqrlog (1.8.2-1.1) ...
  
  File /etc/apparmor.d/usr.sbin.mysqld was modified, now restarting apparmor ...
  
  /usr/share/cqrlog/cqrlog-apparmor-fix: line 21: /etc/init.d/apparmor: No such file or directory

While upgrading to stretch:

  Setting up mysql-server-5.6 (5.6.25-4) ...
  
  Configuration file '/etc/apparmor.d/usr.sbin.mysqld'
   ==> 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.
  *** usr.sbin.mysqld (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package mysql-server-5.6 (--configure):
   EOF on stdin at conffile prompt
  dpkg: dependency problems prevent configuration of mysql-server:
   mysql-server depends on mysql-server-5.6; however:
    Package mysql-server-5.6 is not configured yet.
  
  dpkg: error processing package mysql-server (--configure):
   dependency problems - leaving unconfigured
  Processing triggers for libc-bin (2.19-18+deb8u1) ...
  Errors were encountered while processing:
   mysql-server-5.6
   mysql-server


cheers,

Andreas

Attachment: cqrlog_1.9.0-4.log.gz
Description: application/gzip


Reply to: