Hi! On Sat, 2016-02-06 at 12:03:55 +0100, Marc Haber wrote: > sorry for not getting back to you any sooner. It took me a while to > understand my local configuration issue.
No problem! > On Mon, Jan 18, 2016 at 03:04:55AM +0100, Guillem Jover wrote: > > Yes, it should, and that's what's supposed to happen. Here's a session > > on my system: > > > > ,--- > > # rm -rf /usr/share/zoneinfo > > # ls -la /usr/share/zoneinfo > > ls: cannot access /usr/share/zoneinfo: No such file or directory > > # dpkg --path-exclude='/usr/share/zoneinfo' > > --path-exclude='/usr/share/zoneinfo/*' --install tzdata_2015g-1_all.deb > > (Reading database ... 264026 files and directories currently installed.) > > Preparing to unpack tzdata_2015g-1_all.deb ... > > Unpacking tzdata (2015g-1) over (2015g-1) ... > > Setting up tzdata (2015g-1) ... > > > > User defined time zone, leaving /etc/localtime unchanged. > > Local time is now: Mon Jan 18 02:56:22 CET 2016. > > Universal Time is now: Mon Jan 18 01:56:22 UTC 2016. > > Run 'dpkg-reconfigure tzdata' if you wish to change it. > > > > # ls -la /usr/share/zoneinfols: cannot access /usr/share/zoneinfo: No such > > file or directory > > # > > `--- > > > > So there's something else going on here. Could you run the above but by > > passing «-D333» to dpkg, and send the log? > > After looking into an strace of the dpkg process, I found out that I > had configuration regarding path exclude and include in > /etc/dpkg/dpkg.conf.d, which was contradicting my command line > directives. > > After removing the configuration, dpkg behaves as expected now. Ah, that certainly explains. > May I suggest adding information about processed configuration files > to -D333 output to point people a bit more towards a possible conflict? Oh, you mean dpkg's own configurations, sure! > How does dpkg handle conflicts between command line configuration and > configuration file configuration? If dpkg can detect there's an actual conflict then it should (in principle) error out, but in this case I don't see how dpkg would be able to tell what you really want to do, so it considers the user wants to extend the pre-existing directives. Thanks, Guillem