[Pkg-freeradius-maintainers] Bug#839931: Bug#839931: freeradius-config: fails to upgrade from 'sid' - trying to overwrite /etc/freeradius/clients.conf
Michael Stapelberg
stapelberg at debian.org
Thu Oct 27 09:02:41 UTC 2016
Figured out some more details: /etc/freeradius/hints is not listed in
DEBIAN/conffiles in freeradius-config 3.0.12+dfsg-1 because it’s a symlink
(dh_installdeb uses find -type f to find conffiles). IIUC, that’s the
reason why dpkg does not realize that a conffile is moving between two
packages here.
Now, let’s see how we can fix that…
On Mon, Oct 24, 2016 at 10:00 AM, Michael Stapelberg <stapelberg at debian.org>
wrote:
> I think the issue is that the file(s) in question (e.g.
> /etc/freeradius/hints) are marked as conffiles in freeradius
> 2.2.8+dfsg-0.1+b3:
>
> # grep hints /var/lib/dpkg/info/freeradius.*
> /var/lib/dpkg/info/freeradius.conffiles:/etc/freeradius/hints
> /var/lib/dpkg/info/freeradius.list:/etc/freeradius/hints
> /var/lib/dpkg/info/freeradius.postinst:
> /etc/freeradius/hints \
> /var/lib/dpkg/info/freeradius.prerm: /etc/freeradius/hints \
>
> When updating, the entry vanishes from freeradius.conffiles, but stays in
> freeradius.list:
>
> # dpkg -i freeradius-common_3.0.12+dfsg-1_all.deb
> freeradius_3.0.12+dfsg-1_amd64.deb libfreeradius3_3.0.12+dfsg-1_amd64.deb
> freeradius-config_3.0.12+dfsg-1_amd64.deb
> (Reading database ... 24462 files and directories currently installed.)
> Preparing to unpack freeradius-common_3.0.12+dfsg-1_all.deb ...
> Unpacking freeradius-common (3.0.12+dfsg-1) over (3.0.12+dfsg-1) ...
> Preparing to unpack freeradius_3.0.12+dfsg-1_amd64.deb ...
> Unpacking freeradius (3.0.12+dfsg-1) over (2.2.8+dfsg-0.1+b3) ...
> dpkg: warning: unable to delete old directory '/etc/freeradius/sites-enabled':
> Directory not empty
> dpkg: warning: unable to delete old directory '/etc/freeradius/sites-available':
> Directory not empty
> dpkg: warning: unable to delete old directory '/etc/freeradius/modules':
> Directory not empty
> dpkg: warning: unable to delete old directory '/etc/freeradius/certs':
> Directory not empty
> dpkg: warning: unable to delete old directory '/etc/freeradius': Directory
> not empty
> Preparing to unpack libfreeradius3_3.0.12+dfsg-1_amd64.deb ...
> Unpacking libfreeradius3 (3.0.12+dfsg-1) over (3.0.12+dfsg-1) ...
> Preparing to unpack freeradius-config_3.0.12+dfsg-1_amd64.deb ...
> Unpacking freeradius-config (3.0.12+dfsg-1) ...
> dpkg: error processing archive freeradius-config_3.0.12+dfsg-1_amd64.deb
> (--install):
> trying to overwrite '/etc/freeradius/hints', which is also in package
> freeradius 3.0.12+dfsg-1
> Setting up freeradius-common (3.0.12+dfsg-1) ...
> dpkg: dependency problems prevent configuration of freeradius:
> freeradius depends on freeradius-config; however:
> Package freeradius-config is not installed.
>
> dpkg: error processing package freeradius (--install):
> dependency problems - leaving unconfigured
> Setting up libfreeradius3 (3.0.12+dfsg-1) ...
> Processing triggers for man-db (2.7.5-1) ...
> Processing triggers for systemd (229-1) ...
> Errors were encountered while processing:
> freeradius-config_3.0.12+dfsg-1_amd64.deb
> freeradius
>
> # grep hints /var/lib/dpkg/info/freeradius.*
> /var/lib/dpkg/info/freeradius.list:/etc/freeradius/hints
> /var/lib/dpkg/info/freeradius.postinst:
> /etc/freeradius/mods-config/preprocess/hints \
> /var/lib/dpkg/info/freeradius.prerm: /etc/freeradius/mods-config/preprocess/hints
> \
>
> anbe, do you know how this situation should be properly handled? Do I need
> to use rm_conffiles in the maintscripts?
>
> Thanks!
>
> On Sat, Oct 15, 2016 at 3:15 PM, Andreas Beckmann <anbe at debian.org> wrote:
>
>> Followup-For: Bug #839931
>> Control: found -1 3.0.12+dfsg-1
>>
>> Hi,
>>
>> there are still file overwrite problems in the latest version:
>>
>> Preparing to unpack .../07-freeradius_3.0.12+dfsg-1_amd64.deb ...
>> Unpacking freeradius (3.0.12+dfsg-1) over (2.2.8+dfsg-0.1+b3) ...
>> dpkg: warning: unable to delete old directory
>> '/etc/freeradius/sites-enabled': Directory not empty
>> dpkg: warning: unable to delete old directory
>> '/etc/freeradius/sites-available': Directory not empty
>> dpkg: warning: unable to delete old directory
>> '/etc/freeradius/modules': Directory not empty
>> dpkg: warning: unable to delete old directory '/etc/freeradius/certs':
>> Directory not empty
>> dpkg: warning: unable to delete old directory '/etc/freeradius':
>> Directory not empty
>> Selecting previously unselected package freeradius-config.
>> Preparing to unpack .../08-freeradius-config_3.0.12+dfsg-1_amd64.deb
>> ...
>> Unpacking freeradius-config (3.0.12+dfsg-1) ...
>> dpkg: error processing archive /tmp/apt-dpkg-install-5B7fDA/0
>> 8-freeradius-config_3.0.12+dfsg-1_amd64.deb (--unpack):
>> trying to overwrite '/etc/freeradius/hints', which is also in package
>> freeradius 3.0.12+dfsg-1
>>
>>
>> Andreas
>>
>> _______________________________________________
>> Pkg-freeradius-maintainers mailing list
>> Pkg-freeradius-maintainers at lists.alioth.debian.org
>> https://lists.alioth.debian.org/mailman/listinfo/pkg-freerad
>> ius-maintainers
>>
>
>
>
> --
> Best regards,
> Michael
>
--
Best regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-freeradius-maintainers/attachments/20161027/ab584989/attachment.html>
More information about the Pkg-freeradius-maintainers
mailing list