Your message dated Thu, 13 Mar 2025 13:18:04 +0100 with message-id <7dzlefrcehvyugep4n4y3pfjgi7iyahkdojroz7engcbg6q2ve@ravuaprlzot5> and subject line Re: Bug#1100398: apt: Reinstall does not reinstall all files has caused the Debian Bug report #1100398, regarding apt: Reinstall does not reinstall all files to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 1100398: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100398 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apt: Reinstall does not reinstall all files
- From: sidt <sidtosh4@gmail.com>
- Date: Thu, 13 Mar 2025 11:17:15 +0000
- Message-id: <[🔎] 174186463528.120585.10987118199573748563.reportbug@linux.local>
Package: apt Version: 2.9.33 Severity: normal X-Debbugs-Cc: sidtosh4@gmail.com I've modified "/etc/logrotate.d/apt" few months ago. I wanted to restore the original with "apt reinstall apt", but nothing happens even after removing "/etc/logrotate.d/apt". Original "/etc/logrotate.d/apt" is not getting installed in "/etc/logrotate.d/". Relevant debug logs: -------------------- Setting up apt (2.9.33) ... D020000: trigproc_activate_packageprocessing pkg=apt:amd64 D000001: deferred_configure updating conffiles D000020: conffderef in='/etc/apt/apt.conf.d/01autoremove' result='/etc/apt/apt.conf.d/01autoremove' D000020: deferred_configure '/etc/apt/apt.conf.d/01autoremove' (= '/etc/apt/apt.conf.d/01autoremove') useredited=-1 distedited=-1 what=2 D000020: conffderef in='/etc/cron.daily/apt-compat' result='/etc/cron.daily/apt-compat' D000020: deferred_configure '/etc/cron.daily/apt-compat' (= '/etc/cron.daily/apt-compat') useredited=-1 distedited=-1 what=2 D000020: deferred_configure '/etc/logrotate.d/apt' (= '/etc/logrotate.d/apt') useredited=1 distedited=0 what=202 D000001: dpkg_db_reopen: unchanged /var/lib/dpkg/diversions, skipping D020000: post_postinst_tasks - trig_incorporate D000400: checking group ... D000400: checking possibility -> libc6 D000400: checking non-provided pkg libc6:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libc6 D000400: checking non-provided pkg libc6:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D020000: check_triggers_cycle pnow=libc-bin:amd64 first Processing triggers for libc-bin (2.41-4) ... D000001: dpkg_db_reopen: unchanged /var/lib/dpkg/diversions, skipping D020000: post_postinst_tasks - trig_incorporate D000400: checking group ... D000400: checking possibility -> bsdextrautils D000400: checking non-provided pkg bsdextrautils:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> groff-base D000400: checking non-provided pkg groff-base:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> debconf D000400: checking non-provided pkg debconf:all D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libc6 D000400: checking non-provided pkg libc6:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libgdbm6t64 D000400: checking non-provided pkg libgdbm6t64:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libpipeline1 D000400: checking non-provided pkg libpipeline1:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libseccomp2 D000400: checking non-provided pkg libseccomp2:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> zlib1g D000400: checking non-provided pkg zlib1g:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D020000: tortoise_in_hare pnow=man-db tortoise=man-db D020000: tortoise_in_hare pnow=man-db tortoise=man-db tortoisetrig=/usr/share/man D040000: tortoise_in_hare pnow=man-db tortoise=man-db tortoisetrig=/usr/share/man haretrig=/usr/share/man D020000: tortoise_in_hare pnow=man-db tortoise=libc-bin D020000: tortoise_in_hare pnow=man-db tortoise=libc-bin tortoisetrig=ldconfig D020000: tortoise_in_hare pnow=man-db tortoise=libc-bin OK Processing triggers for man-db (2.13.0-1) ... D000001: dpkg_db_reopen: unchanged /var/lib/dpkg/diversions, skipping D020000: post_postinst_tasks - trig_incorporate -- Package-specific info: -- (/etc/apt/preferences present, but not submitted) -- -- (/etc/apt/preferences.d/apt-listbugs present, but not submitted) -- -- (/etc/apt/sources.list present, but not submitted) -- -- (no /etc/apt/sources.list.d/* present) -- -- System Information: Debian Release: trixie/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.12.17-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages apt depends on: ii adduser 3.145 ii base-passwd 3.6.6 ii debian-archive-keyring 2023.4 ii libapt-pkg7.0 2.9.33 ii libc6 2.41-4 ii libgcc-s1 14.2.0-17 ii libseccomp2 2.5.5-2+b1 ii libssl3t64 3.4.1-1 ii libstdc++6 14.2.0-17 ii libsystemd0 257.4-1 ii sqv 1.2.1-6+b1 Versions of packages apt recommends: ii ca-certificates 20241223 Versions of packages apt suggests: ii apt-doc 2.9.33 ii aptitude 0.8.13-7 ii dpkg-dev 1.22.18 ii gnupg 2.4.7-4 ii gnupg2 2.4.7-4 ii powermgmt-base 1.38 ii synaptic 0.91.5+nmu2 ii wajig 4.1.3 -- no debconf information
--- End Message ---
--- Begin Message ---
- To: sidt <sidtosh4@gmail.com>, 1100398-done@bugs.debian.org
- Subject: Re: Bug#1100398: apt: Reinstall does not reinstall all files
- From: David Kalnischkies <david@kalnischkies.de>
- Date: Thu, 13 Mar 2025 13:18:04 +0100
- Message-id: <7dzlefrcehvyugep4n4y3pfjgi7iyahkdojroz7engcbg6q2ve@ravuaprlzot5>
- In-reply-to: <[🔎] 174186463528.120585.10987118199573748563.reportbug@linux.local>
- References: <[🔎] 174186463528.120585.10987118199573748563.reportbug@linux.local>
Am Thu, Mar 13, 2025 at 11:17:15AM +0000, schrieb sidt: > I've modified "/etc/logrotate.d/apt" few months ago. I wanted to restore the > original with "apt reinstall apt", but nothing happens even after removing > "/etc/logrotate.d/apt". Original "/etc/logrotate.d/apt" is not getting > installed in "/etc/logrotate.d/". Removing a conf file is (or at least can be) a valid configuration choice that is preserved by dpkg and has nothing to do with the individual packages or apt as the used front end. 'apt reinstall' is a rather useless command which is why I was against adding it (it used to be a flag for install), but people asked for it… (It isn't completely useless… it just doesn't do what you think it does. It reinstalls the package, aka reinstalls the files, it does not, what you thought it would, override your configuration choices and resets it to the "default" as conffiles are special). Look for 'confmiss' and/or 'confask' in the dpkg man page if you want to deal with this with dpkg. With some care you can instruct apt to pass your chosen options to dpkg, although that might conflict with other options you might have set, so I don't give a copy-paste suggestion here. User support channels can help you in this regard. In most cases, it is probably easier to just 'apt purge' the package (which removes also the conf files) and 'apt install' it again after that (of course, that works for leaf packages only… you can't really purge apt and expect it to install itself afterwards). In any case, its not a bug that reinstall works this way, so I am closing this report as not-a-bug. Best regards David KalnischkiesAttachment: signature.asc
Description: PGP signature
--- End Message ---