There is a typo in the /etc/init.d/unattended-upgrade script. Easy to
fix.

It does not mean unattended-upgrades do not run -- they run from 
/etc/cron.daily/apt
via the /etc/apt/apt.conf.d/50unattended-upgrade variables.

The purpose of this /etc/init.d/unattended-upgrade script is to wait if
an unattended upgrade is in progress during a shutdown, to let it finish
gracefully.

The init.d script has the default runlevels wrong and so the error shows
up.

0 r...@oystercatcher:~#dpkg-reconfigure -u unattended-upgrades 
update-rc.d: warning: unattended-upgrades start runlevel arguments (none) do 
not match LSB Default-Start values (0 6)
update-rc.d: warning: unattended-upgrades stop runlevel arguments (0 6) do not 
match LSB Default-Stop values (none)
0 r...@oystercatcher:~#grep Desc /etc/init.d/unattended-upgrades 
# Short-Description: Check if unattended upgrades are being applied
# Description:       Check if unattended upgrades are being applied
0 r...@oystercatcher:~#grep shut /etc/init.d/unattended-upgrades 
# Provides:          unattended-upgrade-shutdown-check
        python /usr/share/unattended-upgrades/unattended-upgrade-shutdown
0 r...@oystercatcher:~#ls -l /etc/rc*/*unatte*
lrwxrwxrwx 1 root root 29 Aug 16 15:10 /etc/rc0.d/S10unattended-upgrades -> 
../init.d/unattended-upgrades
lrwxrwxrwx 1 root root 29 Aug 16 15:10 /etc/rc6.d/S10unattended-upgrades -> 
../init.d/unattended-upgrades
################# should those not really be K10unattended-upgrades? I mean it 
starts unattended-upgrade-shutdown
################# but it runs during shutdown or reboot. The K seems more apt 
than S given the below:
0 r...@oystercatcher:~#grep Default /etc/init.d/unattended-upgrades 
# Default-Start:     0 6         ################ <- this is the wrong line
# Default-Stop:      
0 r...@oystercatcher:~#sed -i 's/Default-Start:[\t ]*0 6/Default-Start:/' 
/etc/init.d/unattended-upgrades 
0 r...@oystercatcher:~#sed -i 's/Default-Stop:/Default-Stop:\t\t0 6/' 
/etc/init.d/unattended-upgrades 
0 r...@oystercatcher:~#grep Default /etc/init.d/unattended-upgrades 
# Default-Start:
# Default-Stop:         0 6      
0 r...@oystercatcher:~#dpkg-reconfigure -u unattended-upgrades 
0 r...@oystercatcher:~#

\o/

Now, is it possible for unattended-upgrades to apply -security, to not apply 
-updates, but to download debs for -updates
and email the changelogs to me? Or do I have to mess with apt-listchanges again.

-- 
runlevel arguments (none) do not match LSB Default-Start values (0 6)
https://bugs.launchpad.net/bugs/429867
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to