dpkg-reconfigure unattended-upgrades results in update-rc.d warning that start and stop actions are no longer supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Fix Released
|
High
|
Unassigned | ||
unattended-upgrades (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
I'm trying to script a change to the automatic updating of servers, and tried the following:
echo "debconf unattended-
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@brennan:
* unattended-
* unattended-
root@brennan:
root@brennan:
* unattended-
* unattended-
root@brennan:
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
root@brennan:
* unattended-
* unattended-
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-
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-
Version information, as requested:
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
$ apt-cache policy unattended-upgrades
unattended-
Installed: 0.90
Candidate: 0.90
Version table:
*** 0.90 500
500 http://
500 http://
100 /var/lib/
$ apt-cache policy debconf
debconf:
Installed: 1.5.58ubuntu1
Candidate: 1.5.58ubuntu1
Version table:
*** 1.5.58ubuntu1 500
500 http://
500 http://
100 /var/lib/
tags: | added: xenial |
summary: |
- "dpkg-reconfigure unattended-upgrades" results in error message, no - change to configuration in Ubuntu 16.04 + dpkg-reconfigure unattended-upgrades results in update-rc.d warning that + start and stop actions are no longer supported |
Changed in unattended-upgrades (Ubuntu): | |
importance: | Undecided → Low |
importance: | Low → Undecided |
Changed in unattended-upgrades (Ubuntu): | |
importance: | Undecided → High |
Changed in hundredpapercuts: | |
status: | New → Confirmed |
importance: | Undecided → High |
The warning message is because of the following line in debian/rules.
dh_installinit $@ --no-start -- stop 10 0 6 .
It is just warning that the stop action is now ignored. It shouldn't have any impact. See this announcement.
https:/ /lists. debian. org/debian- devel/2013/ 05/msg01109. html