On Fri, 24 Mar 2017, Wouter Verhelst wrote: > > Control: severity -1 normal > thanks > > On Fri, Mar 17, 2017 at 06:21:31PM +0100, Cristian Ionescu-Idbohrn wrote: > > Package: logtool > > Version: 1.2.8-8+b2 > > Severity: normal > > > > dpkg: warning: logtool: conffile '/etc/logtool/exclude' is not a plain file > > or symlink (= '/etc/logcheck/ignore.d.workstation') > > dpkg: error processing archive > > /var/cache/apt/archives/logtool_1.2.8-8+b2_amd64.deb (--unpack): > > unable to open '/etc/logtool/exclude.dpkg-new': No such file or directory > > Errors were encountered while processing: > > /var/cache/apt/archives/logtool_1.2.8-8+b2_amd64.deb > > I can't reproduce this, and neither can Evgeni. > > Can you provide a bit more details on how you managed to do this?
I'll try. > If not, I'm going to close the bug. For now, marking as normal, > since an unreproducible bug means it can't be totally useless, so > it's not grave. I'm attempting to upgrade from logtool 1.2.8-8. Last changelog.Debian.gz entry: -- Wouter Verhelst <[email protected]> Sun, 27 Jun 2010 14:33:50 +0200 So, it seems it's all about conffile '/etc/logtool/exclude': > ls -l /etc/logtool/exclude lrwxrwxrwx 1 root root 34 Feb 3 2013 /etc/logtool/exclude -> /etc/logcheck/ignore.d.workstation/ > stat /etc/logtool/exclude File: /etc/logtool/exclude -> /etc/logcheck/ignore.d.workstation Size: 34 Blocks: 0 IO Block: 4096 symbolic link Device: 900h/2304d Inode: 8720 Links: 1 Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2013-02-03 12:33:33.916350930 +0100 Modify: 2013-02-03 12:33:33.916350930 +0100 Change: 2013-02-03 12:33:33.916350930 +0100 Birth: - It's a symbolic link, pointing to a directory. Quite old stuff, 2013-02-03. Looks like it's expected to be a plain file or a symbolic link to a plain file. The package configuration is: # debconf-show logtool * logtool/map-violations_ignore-to-file: exclude * logtool/use-violations: true * logtool/use-violations_ignore: true logtool/use-level: true logtool/error-multiple: * logtool/manual: false * logtool/use-workstation: true logtool/ignore-start: paranoid * logtool/map-cracking-to-file: exclude * logtool/use-paranoid: false * logtool/use-cracking: true * logtool/use-server: false logtool/map-level-to-file: * logtool/map-violations-to-file: exclude * logtool/map-workstation-to-file: exclude I see /var/lib/dpkg/info/logtool.postinst is doing the symlinking. Running it with `echo' in front of `ln -sbf' shows: ln -sbf /etc/logcheck/ignore.d.workstation /etc/logtool/exclude ln -sbf /etc/logcheck/violations.d /etc/logtool/exclude ln -sbf /etc/logcheck/cracking.d /etc/logtool/exclude which seems odd. To see what's going on behind the scenes, I run: # dpkg -i -D333 /var/cache/apt/archives/logtool_1.2.8-8+b2_amd64.deb 2>&1 | egrep 'exclude|workstation' D000200: process_archive conffile '/etc/logtool/blue' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/brightblue' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/brightcyan' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/brightgreen' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/brightmagenta' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/brightred' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/brightwhite' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/brightyellow' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/cyan' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/exclude' in package logtool:amd64 - conff ? D000200: process_archive conffile '/etc/logtool/exclude' in package logtool:amd64 - conff ? not '/etc/logtool/magenta' D000200: process_archive conffile '/etc/logtool/exclude' in package logtool:amd64 - conff ? not '/etc/logtool/white' D000020: process_archive conffile '/etc/logtool/exclude' package=logtool:amd64 same hash=48bf9731137e82dc0ee6a0186d2d89c1 D000200: process_archive conffile '/etc/logtool/green' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/include' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/logtool.conf' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: process_archive conffile '/etc/logtool/yellow' in package logtool:amd64 - conff ? not '/etc/logtool/exclude' D000200: pkg_conffiles_mark_old '/etc/logtool/exclude' namenode '/etc/logtool/exclude' flags 5 D000010: tarobject ti->name='./etc/logtool/exclude' mode=100644 owner=0:0 type=48(-) ti->linkname='' namenode='/etc/logtool/exclude' flags=7 instead='<none>' D000200: conffderef in='/etc/logtool/exclude' current working='/etc/logtool/exclude' D000200: conffderef readlink gave 34, '/etc/logcheck/ignore.d.workstation' D000200: conffderef in='/etc/logtool/exclude' current working='/etc/logcheck/ignore.d.workstation' dpkg: warning: logtool: conffile '/etc/logtool/exclude' is not a plain file or symlink (= '/etc/logcheck/ignore.d.workstation') D000020: tarobject fnnf_new_conff deref='/etc/logcheck/ignore.d.workstation' D000100: setupvnamevbs main='/etc/logcheck/ignore.d.workstation' tmp='/etc/logcheck/ignore.d.workstation.dpkg-tmp' new='/etc/logcheck/ignore.d.workstation.dpkg-new' D000010: path_remove_tree '/etc/logcheck/ignore.d.workstation.dpkg-new' D000010: path_remove_tree '/etc/logcheck/ignore.d.workstation.dpkg-tmp' D000100: setupvnamevbs main='/etc/logtool/exclude' tmp='/etc/logtool/exclude.dpkg-tmp' new='/etc/logtool/exclude.dpkg-new' unable to open '/etc/logtool/exclude.dpkg-new': No such file or directory D000010: cu_installnew '/etc/logtool/exclude' flags=227 D000100: setupvnamevbs main='/etc/logtool/exclude' tmp='/etc/logtool/exclude.dpkg-tmp' new='/etc/logtool/exclude.dpkg-new' D000100: secure_remove '/etc/logtool/exclude.dpkg-new' rmdir No such file or directory Does this help? If there's need for more info, please instruct. Cheers, -- Cristian

