Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275061 > unrolled thread

Unexpected prompt during package update

Started byJohn Boxall <jboxall47@gmail.com>
First post2024-11-30 23:40 +0100
Last post2024-12-01 02:30 +0100
Articles 6 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Unexpected prompt during package update John Boxall <jboxall47@gmail.com> - 2024-11-30 23:40 +0100
    Re: Unexpected prompt during package update Andy Smith <andy@strugglers.net> - 2024-11-30 23:50 +0100
      Re: Unexpected prompt during package update Andy Smith <andy@strugglers.net> - 2024-11-30 23:50 +0100
        Re: Unexpected prompt during package update John Boxall <jboxall47@gmail.com> - 2024-12-01 01:20 +0100
    Re: Unexpected prompt during package update Roberto C. Sánchez <roberto@debian.org> - 2024-12-01 02:10 +0100
      Re: Unexpected prompt during package update John Boxall <jboxall47@gmail.com> - 2024-12-01 02:30 +0100

#275061 — Unexpected prompt during package update

FromJohn Boxall <jboxall47@gmail.com>
Date2024-11-30 23:40 +0100
SubjectUnexpected prompt during package update
Message-ID<JOEi6-cR86-13@gated-at.bofh.it>
I am upgrading a bookworm vm (vmware workstation pro guest, bookworm 
host) to "testing" (aka trixie/sid) to try it out. Both the guest and 
host have all of the latest updates.

I am using the following commands to perform the upgrade, having already 
updated sources.list:

	apt-get -y --only-upgrade --show-progress upgrade

	apt-get -y --show-progress dist-upgrade

During the dist-upgrade I am presented with the following prompt:

<snip>
Setting up fwupd (1.9.26-2) ...

Configuration file '/etc/fwupd/fwupd.conf'
  ==> File on system created by you or by a script.
  ==> File also in package provided by package maintainer.
    What would you like to do about it ?  Your options are:
     Y or I  : install the package maintainer's version
     N or O  : keep your currently-installed version
       D     : show the differences between the versions
       Z     : start a shell to examine the situation
  The default action is to keep your current version.
*** fwupd.conf (Y/I/N/O/D/Z) [default=N] ? Y
<snip>

Is the option "-y" in the command not enough to prevent the prompt?

-- 
Regards,

John Boxall

[toc] | [next] | [standalone]


#275062

FromAndy Smith <andy@strugglers.net>
Date2024-11-30 23:50 +0100
Message-ID<JOErM-cRbh-1@gated-at.bofh.it>
In reply to#275061
Hi,

On Sat, Nov 30, 2024 at 05:38:40PM -0500, John Boxall wrote:
> 	apt-get -y --show-progress dist-upgrade
> 
> During the dist-upgrade I am presented with the following prompt:
> 
> <snip>
> Setting up fwupd (1.9.26-2) ...
> 
> Configuration file '/etc/fwupd/fwupd.conf'
>  ==> File on system created by you or by a script.
>  ==> File also in package provided by package maintainer.
>    What would you like to do about it ?  Your options are:
>     Y or I  : install the package maintainer's version
>     N or O  : keep your currently-installed version
>       D     : show the differences between the versions
>       Z     : start a shell to examine the situation
>  The default action is to keep your current version.
> *** fwupd.conf (Y/I/N/O/D/Z) [default=N] ? Y
> <snip>
> 
> Is the option "-y" in the command not enough to prevent the prompt?

This question is being asked by dpkg, not apt-get. I am unsure if there
is an apt config option that forces confnew on dpkg, but it might be
something like:

$ sudo apt-get  -o "Dpkg::Options::=--force-confnew" …

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

[toc] | [prev] | [next] | [standalone]


#275063

FromAndy Smith <andy@strugglers.net>
Date2024-11-30 23:50 +0100
Message-ID<JOErM-cRbh-3@gated-at.bofh.it>
In reply to#275062
On Sat, Nov 30, 2024 at 10:45:37PM +0000, Andy Smith wrote:
> > Is the option "-y" in the command not enough to prevent the prompt?

I forgot to add:

Using -y on dist-upgrade is a good way to completely destroy your system
given the slightest anomaly (and this is an upgrade to testing, so…) so
I really wouldn't recommend it, but perhaps your VM is considered
disposable…

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

[toc] | [prev] | [next] | [standalone]


#275071

FromJohn Boxall <jboxall47@gmail.com>
Date2024-12-01 01:20 +0100
Message-ID<JOFQR-cSc2-9@gated-at.bofh.it>
In reply to#275063
On 2024-11-30 17:48, Andy Smith wrote:
> On Sat, Nov 30, 2024 at 10:45:37PM +0000, Andy Smith wrote:
>>> Is the option "-y" in the command not enough to prevent the prompt?
> 
> I forgot to add:
> 
> Using -y on dist-upgrade is a good way to completely destroy your system
> given the slightest anomaly (and this is an upgrade to testing, so…) so
> I really wouldn't recommend it, but perhaps your VM is considered
> disposable…
> 
> Thanks,
> Andy
> 

Thanks Andy, and yes all my VM's are disposable. I am doing extensive 
testing of the upgrade process before I commit to implementing it on 
some hardware....with backup drives safely set aside.

My experience, __so_far__, is that "-y" has not damaged any systems I've 
migrated.

-- 
Regards,

John Boxall

[toc] | [prev] | [next] | [standalone]


#275075

FromRoberto C. Sánchez <roberto@debian.org>
Date2024-12-01 02:10 +0100
Message-ID<JOGDf-cSIf-5@gated-at.bofh.it>
In reply to#275061
On Sat, Nov 30, 2024 at 05:38:40PM -0500, John Boxall wrote:
> 
> Is the option "-y" in the command not enough to prevent the prompt?
> 
As Andy explained, no the "-y" option will not prevent the prompt.

The "-y" as you have used it is passed to apt-get and defaults the
answers to prompts presented by apt-get to "yes". However, the prompt
you are seeing is actually from debconf (Andy said 'dpkg', which is
partially correct).

According to the debconf(7) manpage [0]:

noninteractive
    This is the anti-frontend. It never interacts with you at all, and
    makes the default answers be used for all questions. It might mail
    error messages to root, but that's it; otherwise it is completely
    silent and unobtrusive, a perfect frontend for automatic installs.
    If you are using this front-end, and require non-default answers to
    questions, you will need to preseed the debconf database; see the
    section below on Unattended Package Installation for more details.

So, it looks like what you want is noninteractive, with preseeding. You
should probably read the entire man page, as there are lots of ways to
tweak the behavior of debconf.

Regards,

-Roberto

[0] https://manpages.debian.org/buster/debconf-doc/debconf.7.en.html

-- 
Roberto C. Sánchez

[toc] | [prev] | [next] | [standalone]


#275078

FromJohn Boxall <jboxall47@gmail.com>
Date2024-12-01 02:30 +0100
Message-ID<JOGWB-cSOr-1@gated-at.bofh.it>
In reply to#275075
On 2024-11-30 20:00, Roberto C. Sánchez wrote:

> So, it looks like what you want is noninteractive, with preseeding. You
> should probably read the entire man page, as there are lots of ways to
> tweak the behavior of debconf.
> 
> Regards,
> 
> -Roberto
> 

Thanks Roberto and Andy. I'll look at debconf and see if I can make it 
work for me.

-- 
Regards,

John Boxall

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web