:: Re: [DNG] OT: how to trigger debcon…
Startseite
Nachricht löschen
Nachricht beantworten
Autor: zeanmi
Datum:  
To: dng
Betreff: Re: [DNG] OT: how to trigger debconf on package upgrade?
Hi ! I don't know if that can be helpful :

export APT_LISTCHANGES_FRONTEND=none
export DEBIAN_FRONTEND=noninteractive
apt-get -q -y -o Dpkg::Options::="--force-confdef" -o
Dpkg::Options::="--force-confold" dist-upgrade

Links :
https://debian-handbook.info/browse/stable/sect.automatic-upgrades.html
https://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/

Regards
zeanmi
--

Selon Didier Kryn <kryn@???>:

> Le 17/02/2016 14:09, Florian Zieboll a écrit :
> > On Wed, 17 Feb 2016 11:04:04 +0100
> > Didier Kryn <kryn@???> wrote:
> >
> >>       I think 'dpkg-reconfigure <package-name>' should work.
> > You got me wrong ;) I have here a script that got stuck on the latest
> > glibc/locales update (apt-get upgrade -y -q). The log shows, that it
> > ran into interactive debconf. After downgrading to the previous
> > "locales" version, the script smoothly does its job, no way to
> > reproduce the problem, whereas /var/cache/debconf/config.dat does not
> > contain any version information.

> >
> > Assumptions so far: To trigger interactive debconf on a package
> > upgrade...
> >
> > a) as local admin, I'd have to mess with /var/cache/debconf/config.dat
> >     or reconfigure debconf to present lower-priority questions.

> >
> > b) as a package maintainer, I could modify the package's
> >     debconf-igurable items or their syntax.

> >
> > Conclusion: To make an unattended upgrade script more robust, I have to
> > export "DEBIAN_FRONTEND=noninteractive" before running the upgrade. But
> > thus I risk ending up with un-debconf-igured packages on my system (see
> > "assumptions" above).
> >
> > Follow-up (meta) question: For safe unattended upgrades, wouldn't it
> > make sense to force packages that come with modified debconf rules into
> > the "dist-upgrade" workflow?
> >
>      This is going beyond my incompetence level. Sorry.

>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>