message regarding ignoring 50unattended-upgrades.ucf-dist is annoying

Bug #1639558 reported by richud
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Debian)
New
Undecided
Unassigned
apt (Ubuntu)
Low
Unassigned
unattended-upgrades (Ubuntu)
Medium
Unassigned

Bug Description

Regression problem, (in the sense it didn't happen before the update although not directly from the code changes)

Since update to 0.90ubuntu0.1 (ubuntu 16.04) I am constantly now getting this notification performing anything with apt.

N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension

Secondly I am also now getting this, triggering apport bug report on every boot (program is not checking/creating a dir before trying to write to log in it)

syslog.1:Nov 6 10:36:26 PortegeR830 apt.systemd.daily[815]: FileNotFoundError: [Errno 2] No such file or directory: '/var/log/unattended-upgrades/unattended-upgrades-dpkg.log'

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: unattended-upgrades 0.90ubuntu0.1
ProcVersionSignature: Ubuntu 4.4.0-45.66-generic 4.4.21
Uname: Linux 4.4.0-45-generic x86_64
.var.log.unattended-upgrades.unattended-upgrades.log:
 2016-11-06 10:36:05,682 INFO Initial blacklisted packages:
 2016-11-06 10:36:05,682 INFO Initial whitelisted packages:
 2016-11-06 10:36:05,683 INFO Starting unattended upgrades script
 2016-11-06 10:36:05,683 INFO Allowed origins are: ['o=Ubuntu,a=xenial-security', 'o=Ubuntu,a=xenial-updates', 'o=Ubuntu,a=xenial-backports']
 2016-11-06 10:36:21,473 INFO Packages that will be upgraded:
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Nov 6 10:59:28 2016
PackageArchitecture: all
SourcePackage: unattended-upgrades
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apt.apt.conf.d.10periodic:
 APT::Periodic::Update-Package-Lists "1";
 APT::Periodic::Download-Upgradeable-Packages "1";
 APT::Periodic::AutocleanInterval "7";
 APT::Periodic::Unattended-Upgrade "1";
mtime.conffile..etc.apt.apt.conf.d.10periodic: 2015-05-30T16:31:54.137714
mtime.conffile..etc.apt.apt.conf.d.50unattended-upgrades: 2015-05-30T16:31:21.861600

Revision history for this message
richud (richud.com) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

The FileNotFoundError is covered by bug 1590321 and I'm working on fixing it now.

summary: - regression-update from #1624641
+ message regarding ignoring 50unattended-upgrades.ucf-dist is annoying
Changed in unattended-upgrades (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
richud (richud.com) wrote :

great, also bug #1236059

Revision history for this message
Thomas (tholme) wrote :

Patch has been committed to upstream git that fixes the problem with "N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension"

https://anonscm.debian.org/git/apt/apt.git/commit/?id=5094697fe4b2459ff6f706a22006d3028369f3fa

Revision history for this message
Julian Andres Klode (juliank) wrote :

Right, I hope I don't forget to close the bug when uploading 1.4.

Changed in apt (Ubuntu):
status: New → Fix Committed
importance: Undecided → Low
Revision history for this message
Josh Littlefield (jblittlefield) wrote :

The patch works around the issue in apt, but isn't the underlying cause the fact that /etc/apt/apt.conf.d/50unattended-upgrades was a confffile in ~0.82.1ubuntu2.3, and is no longer a conffile in ~0.90ubuntu0.3, yet the typical pattern for obsoleting a conffile wasn't performed? So even an unchanged 50unattended-upgrades is seen as a conflict by the ucf code, and thuse the .ufc-dist file is created, and the user is asked to resolve a "conflict" in a file that wasn't changed.

Revision history for this message
Julian Andres Klode (juliank) wrote :

I don't know, but it certainly is right to ignore the file in apt.

Changed in apt (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Balint Reczey (rbalint) wrote :

Unattended-upgrade uses ufc(1) to manage the related conffiles and ucf creates those copies during the update.

Starting with u-u 1.4 README.md recommends creating separate configuration files in /etc/apt/apt.conf.d to avoid updates to conflict with local changes.

Latest apt ignores the .ucf-* files which is the right thing IMO and either giving warning or not giving a warning is OK on apt's side.

Changed in unattended-upgrades (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers