unattended-upgrades fails if a package has a conffile prompt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Triaged
|
Medium
|
Unassigned |
Bug Description
unattended-upgrades will fail if a package has a conffile prompt. This is unusual for a new install, but recently became an issue for me because of changes to the ubuntu-
In older versions of subiquity, an unattended-upgrades failure will cause subiquity to crash and the install to fail. That no longer appears to be case in newer releases of subiquity. I think because of this commit
https:/
According to the unattended-upgrades source, a failure exit-code is expected if a package has a conffile prompt. Based on the comment at https:/
# Was the overall run succesful: only if everything installed
# fine and nothing was held back because of a conffile prompt.
A potential simple solution would be to append to /etc/apt/
Dpkg::Options:
An argument could be made for "--force-confnew" instead, but subiquity is already using "--force-confold" when installing packages individually.
https:/
I believe this will work because the unattended-upgrades source checks for these options and will not "blacklist" any packages if present. However, I have not tested to verify.
https:/
These are some of the logs generated by subiquity when uu fails during an Ubuntu 22.04 install.
Apr 12 22:19:36 ubuntu-server subiquity_
Apr 12 22:19:36 ubuntu-server subiquity_
Apr 12 22:19:36 ubuntu-server subiquity_
...
Apr 12 22:19:37 ubuntu-server subiquity_
...
Apr 12 22:45:55 ubuntu-server subiquity_
Apr 12 22:45:55 ubuntu-server subiquity_
Apr 12 22:45:55 ubuntu-server subiquity_
Apr 12 22:45:55 ubuntu-server subiquity_
Apr 12 22:45:55 ubuntu-server subiquity_
Apr 12 22:45:55 ubuntu-server subiquity_
Apr 12 22:45:55 ubuntu-server subiquity_
Apr 12 22:45:55 ubuntu-server subiquity_
Apr 12 22:45:55 ubuntu-server subiquity_
Apr 12 22:45:55 ubuntu-server subiquity_
...
Apr 12 22:45:55 ubuntu-server subiquity_
description: | updated |
description: | updated |
Changed in subiquity: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Updated patch file. The one I attached before had a typo, so I went back and copied the formatting from unattended-upgrades
https:/ /github. com/mvo5/ unattended- upgrades/ blob/7bf3aa52af 1c6b11c031d0949 f223c1beb94f84c /README. md?plain= 1#L265