[Bug 773007] Re: conffile_prompt check incomplete on multiple conffiles
Jean-Baptiste Lallement
jean-baptiste at ubuntu.com
Tue Nov 29 18:30:12 UTC 2011
SRU verification for Lucid:
Here is the test case I followed:
1. Installed asterisk-config from lucid-release
2. modified /etc/asterisk/sip.conf
3. Ran unattended-upgrades from lucid-updates
=> the upgrade fails with the following error: 'EOF on stdin at conffile prompt'
4. downgrade asterisk-config to lucid-release again
5. install u-u from -proposed
6. run u-u again
RESULT: no failure and the package is kept untouched.
I have reproduced the problem with unattended-upgrades 0.55ubuntu5 in lucid-updates and have verified that the version of unattended-upgrades 0.55ubuntu6 in -proposed fixes the issue.
Marking as verification-done-lucid
** Tags added: verification-done
--
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/773007
Title:
conffile_prompt check incomplete on multiple conffiles
Status in “unattended-upgrades” package in Ubuntu:
Fix Committed
Status in “unattended-upgrades” source package in Lucid:
Fix Committed
Status in “unattended-upgrades” source package in Maverick:
Fix Committed
Status in “unattended-upgrades” source package in Natty:
Fix Committed
Status in “unattended-upgrades” package in Debian:
Fix Released
Bug description:
TEST CASE:
The bug can only be triggered when there is a package with multiple configuration files and the update
changes one configuration files (but not the first) and the user has modified the local configuration
file. This is the case for asterisk-config in debian/squeeze and this is how the bug got discovered.
I added a test in the code to artificially trigger the error. For the real verification we can either
reply on Debian or create a squeeze chroot with asterisk-config installed then modifying /etc/asterisk
/sip.conf and running unattended-upgrades.
Given that its pretty difficult to trigger this bug I think a regression test is sufficient. Running the
lucid-updates version in a clean VM and then the lucid-proposed version and comparing /var/log/apt/history.log (or comparing the result of unattedned-upgrades --dry-run) should be sufficient.
Binary package hint: unattended-upgrades
There is a bug in the conffile detection that causes the code to miss
modified conffiles if there are multiple conffiles.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/773007/+subscriptions
More information about the foundations-bugs
mailing list