Re: how to remove old conffile when switching to ucf
Hi,
On Wed, 28 May 2025 09:45:37 +0200 (CEST)
PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
wrote:
> Hello, I am updating the jupyterhub package in order to switch to ucf
> for the configuration part.
I'm not sure what that means exactly: are you installing some files
below /usr/ to then deploy as conffile with ucf below /etc, but in a
different path than /etc/jupyterhub/config/jupyterhub_config.d/
?
>
> when I install the new packages, I get these error message (sorry for
> the french).
>
> it means, I can not remove non empty directory
>
> In fact these directory contain the conf file of the previous package.
>
> /etc/jupyterhub/config/jupyterhub_config.d/50-use-configurable-http-proxy.py
> /etc/jupyterhub/config/jupyterhub_config.d/config.yaml
> /var/lib/dpkg/info/jupyterhub.conffiles (END)
>
>
> what is the right way to remove this during the upgrade ?
There is dpkg-maintscript-helper, maybe it helps
https://manpages.debian.org/unstable/dpkg/dpkg-maintscript-helper.1.en.html
Lorenzo
>
>
> thanks for your help
>
> Fred
>
Reply to: