On Mon 12. Jan 2026 at 19:27, Jessica Clarke <[email protected]> wrote:

> Control: tags -1 moreinfo unreproducible
> Control: severity -1 normal
>
> > On 5 Dec 2025, at 07:52, Michael Prokop <[email protected]> wrote:
> >
> > Hi,
> >
> > * Jessica Clarke [Mon Nov 03, 2025 at 03:25:02PM +0000]:
> >> On 28 Feb 2023, at 19:36, Henning <[email protected]> wrote:
> >
> >>> Building a docker image with pbuilder installed with debconf
> >>> frontend non-interactive
> > [...]
> >>> At least in the bookworm docker image, the apt sources are
> >>> configured via /etc/apt/sources.list.d/debian.sources file, and
> >>> I assume its the same for systems installed "normally" with the
> >>> debian installer.
> >>>
> >>> But pbuilder apparently relies on the "traditional"
> >>> /etc/apt/sources.list file, and otrherwise keeps looping through
> >>> an interactive question for the user to input a default mirror
> >>> manually.
> >>>
> >>>  * What outcome did you expect instead?
> >>> I expect that pbuilder does not resort to interactive user input
> >>> when  DEBIAN_FRONTEND=noninteractive and some default is used,
> >>> and the pbuilder instal script do not rely on a file that cannot
> >>> be guranteed to exist.
> >
> >> So it’s supposed to be detecting the non-interactive case (and 30 is
> >> the documented value for that), providing a default. Yes, we should do
> >> better in the deb822 cases (note that the script *does* check
> >> sources.list.d, but only for *.list, which are in the same format as
> >> sources.list itself), and maybe there’s a way we can extract that
> >> information out of apt itself (e.g. something like apt-cache policy
> >> dpkg, but not quite), but the above code should still be making that
> >> matter less. I’ll have to go test this myself, see if I can reproduce
> >> it, and figure out why it’s not working.
> >
> > I can't reproduce the problem:
> >
> > | root@dd10c07bc0f9:/# DEBIAN_FRONTEND='noninteractive' apt install
> pbuilder --no-install-recommends
> > | [...]
> > | Preconfiguring packages ...
> > | Configuring pbuilder
> > | --------------------
> > |
> > | Default mirror not found
> > |
> > | Mirror information detection failed and the user provided no mirror
> > | information.
> > |
> > | Please enter valid mirror information.
> > |
> > | Selecting previously unselected package bzip2.
> > | (Reading database ... 4935 files and directories currently
> > | installed.)
> > | [...]
> > | root@dd10c07bc0f9:/# grep '^MIRROR' /etc/pbuilderrc
> > | MIRRORSITE=http://deb.debian.org/debian
> >
> > Same behavior for both bookworm + trixie.
>
> I finally tested it myself and with DEBIAN_FRONTEND=noninteractive it
> works as expected, falling back on deb.debian.org <http://deb.debian.org/>,
> just as you say.
>
> > But I agree that we should add support for deb822.
> > AFAIK there sadly is no nice interface to query apt for its
> > repositories, but this seems to work for me:
> >
> >  https://salsa.debian.org/pbuilder-team/pbuilder/-/merge_requests/41
>
> Taking a look at this properly now. Sorry for such a long delay, I had
> hoped to get to it over the holidays but didn’t manage to.
>
> Jessica




i don’t really understand the communication here but my 3 years/2 stable
releases old bug can probably just be closed due outdatedness ;)

>

Reply via email to