Verified 1.1ubuntu1.18.04.7~16.04.2 in Xenial: root@x-uu-verify:~# apt update -qq 21 packages can be upgraded. Run 'apt list --upgradable' to see them. root@x-uu-verify:~# apt install git=1:2.7.4-0ubuntu1 Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libfreetype6 Use 'apt autoremove' to remove it. Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn The following packages will be DOWNGRADED: git 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 21 not upgraded. Need to get 3,006 kB of archives. After this operation, 73.7 kB disk space will be freed. Do you want to continue? [Y/n] Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 git amd64 1:2.7.4-0ubuntu1 [3,006 kB] Fetched 3,006 kB in 0s (13.0 MB/s) dpkg: warning: downgrading git from 1:2.7.4-0ubuntu1.6 to 1:2.7.4-0ubuntu1 (Reading database ... 25724 files and directories currently installed.) Preparing to unpack .../git_1%3a2.7.4-0ubuntu1_amd64.deb ... Unpacking git (1:2.7.4-0ubuntu1) over (1:2.7.4-0ubuntu1.6) ... Setting up git (1:2.7.4-0ubuntu1) ... root@x-uu-verify:~# mv /etc/bash_completion.d/git-prompt /etc/bash_completion.d/git-prompt.bak root@x-uu-verify:~# mkdir /etc/bash_completion.d/git-prompt root@x-uu-verify:~# unattended-upgrade --verbose --dry-run Initial blacklisted packages: Initial whitelisted packages: Starting unattended upgrades script Allowed origins are: ['o=Ubuntu,a=xenial', 'o=Ubuntu,a=xenial-security', 'o=UbuntuESM,a=xenial'] Traceback (most recent call last): File "/usr/bin/unattended-upgrade", line 1485, in <module> main(options) File "/usr/bin/unattended-upgrade", line 1275, in main if conffile_prompt(item.destfile): File "/usr/bin/unattended-upgrade", line 671, in conffile_prompt with open(prefix + conf_file, 'rb') as fb: IsADirectoryError: [Errno 21] Is a directory: '/etc/bash_completion.d/git-prompt' root@x-uu-verify:~# vi /etc/apt/sources.list root@x-uu-verify:~# apt update -qq 30 packages can be upgraded. Run 'apt list --upgradable' to see them. root@x-uu-verify:~# apt install -y -qq unattended-upgrades The following package was automatically installed and is no longer required: libfreetype6 Use 'apt autoremove' to remove it. Suggested packages: bsd-mailx default-mta | mail-transport-agent needrestart The following packages will be upgraded: unattended-upgrades 1 upgraded, 0 newly installed, 0 to remove and 29 not upgraded. Need to get 40.1 kB of archives. After this operation, 69.6 kB of additional disk space will be used. Preconfiguring packages ... (Reading database ... 25723 files and directories currently installed.) Preparing to unpack .../unattended-upgrades_1.1ubuntu1.18.04.7~16.04.2_all.deb ... Unpacking unattended-upgrades (1.1ubuntu1.18.04.7~16.04.2) over (0.90ubuntu0.10) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for systemd (229-4ubuntu21.17) ... Processing triggers for ureadahead (0.100.0-19) ... Setting up unattended-upgrades (1.1ubuntu1.18.04.7~16.04.2) ... Installing new version of config file /etc/kernel/postinst.d/unattended-upgrades ... Installing new version of config file /etc/pm/sleep.d/10_unattended-upgrades-hibernate ... root@x-uu-verify:~# unattended-upgrade --verbose --dry-run Initial blacklisted packages: Initial whitelisted packages: Starting unattended upgrades script Allowed origins are: o=Ubuntu,a=xenial, o=Ubuntu,a=xenial-security, o=UbuntuESM,a=xenial Option --dry-run given, *not* performing real actions Packages that will be upgraded: busybox-initramfs busybox-static git libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 ntfs-3g policykit-1 snapd ubuntu-core-launcher Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log /usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/git_1%3a2.7.4-0ubuntu1.6_amd64.deb /usr/bin/dpkg --status-fd 11 --configure git:amd64 /usr/bin/dpkg --status-fd 13 --configure --pending /usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/libpolkit-backend-1-0_0.105-14.1ubuntu0.5_amd64.deb /usr/bin/dpkg --status-fd 11 --configure libpolkit-backend-1-0:amd64 /usr/bin/dpkg --status-fd 13 --configure --pending /usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/busybox-initramfs_1%3a1.22.0-15ubuntu1.4_amd64.deb /usr/bin/dpkg --status-fd 11 --configure busybox-initramfs:amd64 /usr/bin/dpkg --status-fd 13 --configure --pending /usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/libpolkit-agent-1-0_0.105-14.1ubuntu0.5_amd64.deb /usr/bin/dpkg --status-fd 11 --configure libpolkit-agent-1-0:amd64 /usr/bin/dpkg --status-fd 13 --configure --pending /usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/ntfs-3g_1%3a2015.3.14AR.1-1ubuntu0.2_amd64.deb /usr/bin/dpkg --status-fd 11 --configure ntfs-3g:amd64 /usr/bin/dpkg --status-fd 13 --configure --pending /usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/busybox-static_1%3a1.22.0-15ubuntu1.4_amd64.deb /usr/bin/dpkg --status-fd 11 --configure busybox-static:amd64 /usr/bin/dpkg --status-fd 13 --configure --pending /usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/libpolkit-gobject-1-0_0.105-14.1ubuntu0.5_amd64.deb /usr/bin/dpkg --status-fd 11 --configure libpolkit-gobject-1-0:amd64 /usr/bin/dpkg --status-fd 13 --configure --pending /usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/policykit-1_0.105-14.1ubuntu0.5_amd64.deb /usr/bin/dpkg --status-fd 11 --configure policykit-1:amd64 /usr/bin/dpkg --status-fd 13 --configure --pending /usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/ubuntu-core-launcher_2.37.4ubuntu0.1_amd64.deb /var/cache/apt/archives/snapd_2.37.4ubuntu0.1_amd64.deb /usr/bin/dpkg --status-fd 11 --configure snapd:amd64 ubuntu-core-launcher:amd64 /usr/bin/dpkg --status-fd 13 --configure --pending All upgrades installed root@x-uu-verify:~#
** Tags removed: verification-needed verification-needed-xenial ** Tags added: verification-done verification-done-xenial -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unattended-upgrades in Ubuntu. https://bugs.launchpad.net/bugs/1737637 Title: Replacing configuration file directory with file breaks unattended- upgrades Status in unattended-upgrades package in Ubuntu: Fix Released Status in unattended-upgrades source package in Xenial: Fix Committed Bug description: [Impact] * Unattended-upgrades crashes when a package update changes a config dir to a config file. * U-u stops installing security updates when it crashes. [Test Case] (Xenial) * Install an older version of the git package than the one available from xenial-security: # apt install git=1:2.7.4-0ubuntu1 * Change a configuration file to a directory and observe not fixed u-u crashing and fixed u-u installing the update. # mv /etc/bash_completion.d/git-prompt /etc/bash_completion.d/git-prompt.bak # mkdir /etc/bash_completion.d/git-prompt # unattended-upgrade --verbose --dry-run Initial blacklisted packages: Initial whitelisted packages: Starting unattended upgrades script Allowed origins are: ['o=Ubuntu,a=xenial', 'o=Ubuntu,a=xenial-security', 'o=UbuntuESM,a=xenial'] Traceback (most recent call last): File "/usr/bin/unattended-upgrade", line 1485, in <module> main(options) File "/usr/bin/unattended-upgrade", line 1275, in main if conffile_prompt(item.destfile): File "/usr/bin/unattended-upgrade", line 671, in conffile_prompt with open(prefix + conf_file, 'rb') as fb: IsADirectoryError: [Errno 21] Is a directory: '/etc/bash_completion.d/git-prompt' # fixed u-u: # unattended-upgrade --verbose --dry-run ... Unpacking git (1:2.17.1-1ubuntu0.4) over (1:2.17.1-1ubuntu0.3) ... dpkg: warning: git: conffile '/etc/bash_completion.d/git-prompt' is not a plain file or symlink (= '/etc/bash_completion.d/git-prompt') Setting up git (1:2.17.1-1ubuntu0.4) ... dpkg: warning: git: conffile '/etc/bash_completion.d/git-prompt' is not a plain file or symlink (= '/etc/bash_completion.d/git-prompt') ... [Regression Potential] * As a known and demonstrated regression configuration files replaced with directories by the local administrator are overwritten and this is dpkg's default behavior. The same thing would happen when applying the security update using apt, and this is still better than skipping the security update. [Original Bug Text] The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 0.98ubuntu1, the problem page at https://errors.ubuntu.com/problem/ed79dbb4e6eba8c7b89fcd7e0cbf60b0db4920ce contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports. If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. Traceback (most recent call last): File "/usr/bin/unattended-upgrade", line 1556, in <module> main(options) File "/usr/bin/unattended-upgrade", line 1348, in main if conffile_prompt(item.destfile): File "/usr/bin/unattended-upgrade", line 725, in conffile_prompt with open(prefix + conf_file, 'rb') as fp: IsADirectoryError: [Errno 21] Is a directory: '/etc/fonts/conf.avail/65-0-fonts-guru-extra.conf' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1737637/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp