[Bug 1606600] Re: dpkg-reconfigure unattended-upgrades results in update-rc.d warning that start and stop actions are no longer supported
Chris Glass
christopher.glass at canonical.com
Sat Feb 25 09:38:36 UTC 2017
I *think* the root of the issue is that the assumption in debian/rules
# we do not want to run the init script in the postinst/prerm, its
# really only useful on shutdown, see Debian bug #645919
dh_installinit $@ --no-start -- stop 10 0 6 .
is wrong.
It is not only useful on shutdown but also when dpkg-reconfigure is
invoked.
As a strawman fix, I've uploaded a fixed (xenial) package to
https://launchpad.net/~tribaal/+archive/ubuntu/unattended-upgrades
It seems to fix the issue in my limited testing: running "dpkg-
reconfigure -fnoninteractive unattended-upgrades" does apply changes
passed by debconf-set-selections.
I'll attach a debdiff to this bug as well, and open a pull request
upsteam.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1606600
Title:
dpkg-reconfigure unattended-upgrades results in update-rc.d warning
that start and stop actions are no longer supported
Status in One Hundred Papercuts:
Confirmed
Status in unattended-upgrades package in Ubuntu:
Confirmed
Bug description:
I'm trying to script a change to the automatic updating of servers,
and tried the following:
echo "debconf unattended-upgrades/enable_auto_updates boolean false" | debconf-set-selections -
dpkg-reconfigure -fnoninteractive unattended-upgrades
The result, however, is a warning message:
update-rc.d: warning: start and stop actions are no longer supported;
falling back to defaults
At this point, the change I tried to make seems to be lost. To show
this in an expanded sequence:
root at brennan:/home/ubuntu# debconf-show unattended-upgrades
* unattended-upgrades/origins_pattern: "origin=Debian,codename=${distro_codename},label=Debian-Security";
* unattended-upgrades/enable_auto_updates: true
root at brennan:/home/ubuntu# echo "debconf unattended-upgrades/enable_auto_updates boolean false" | debconf-set-selections -
root at brennan:/home/ubuntu# debconf-show unattended-upgrades
* unattended-upgrades/origins_pattern: "origin=Debian,codename=${distro_codename},label=Debian-Security";
* unattended-upgrades/enable_auto_updates: false
root at brennan:/home/ubuntu# dpkg-reconfigure -fnoninteractive unattended-upgrades
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
root at brennan:/home/ubuntu# debconf-show unattended-upgrades
* unattended-upgrades/enable_auto_updates: true
* unattended-upgrades/origins_pattern: "origin=Debian,codename=${distro_codename},label=Debian-Security";
If I omit the "-fnoninteractive" option to dpkg-reconfigure, I still
get the warning message, but the change IS accepted and takes effect.
Of course, this isn't useful in a script that should be run non-
interactively. I've tried the equivalent commands to reconfigure other
packages, and they work without error message, so I believe the
problem is with unattended-upgrades, not with debconf/dpkg-
reconfigure.
This problem affects Ubuntu 16.04.1 (and probably 16.04 GA, but I've
not tested it). It works as expected with Ubuntu 14.04. (That version,
of course, defeaults to "false" for the unattended-
upgrades/enable_auto_updates value. I've tested both with the default
"false" value and after changing it to "true," with successful runs
both times.)
Version information, as requested:
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
$ apt-cache policy unattended-upgrades
unattended-upgrades:
Installed: 0.90
Candidate: 0.90
Version table:
*** 0.90 500
500 http://192.168.1.2//ubuntu xenial/main amd64 Packages
500 http://192.168.1.2//ubuntu xenial/main i386 Packages
100 /var/lib/dpkg/status
$ apt-cache policy debconf
debconf:
Installed: 1.5.58ubuntu1
Candidate: 1.5.58ubuntu1
Version table:
*** 1.5.58ubuntu1 500
500 http://192.168.1.2//ubuntu xenial/main amd64 Packages
500 http://192.168.1.2//ubuntu xenial/main i386 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1606600/+subscriptions
More information about the foundations-bugs
mailing list