From: Anton Mikanovich <amikan@ilbers.de>
To: Uladzimir Bely <ubely@ilbers.de>, isar-users@googlegroups.com
Subject: Re: [PATCH 0/1] Exit bootstrap with error if apt-get update fails
Date: Wed, 26 Oct 2022 17:02:32 +0300 [thread overview]
Message-ID: <09d4cdf2-e358-8def-5f35-43ab0f79ba1c@ilbers.de> (raw)
In-Reply-To: <20221019043139.27219-1-ubely@ilbers.de>
19.10.2022 07:31, Uladzimir Bely wrote:
> Sometimes we have issues with `deb.debian.org` availability. Usually, it
> results in errors in the related tasks that are understandable, e.g.,
> `Could not connect to deb.debian.org:80` and so on.
>
> But if the issue happens while debootstrapping at the `apt-get update`
> stage, it doesn't produce an error and the following tasks fail instead
> with a pretty weird reason (no any errors in the nearest context).
>
> For example, we can get errors in buildchroot-target:
>
> ```
> E: Package 'make' has no installation candidate
> E: Unable to locate package debhelper
> ...
> ```
> The reason is that `actual` error happened in `bootstrap` task, but it
> didn't fail with error code.
>
> Adding `-o APT::Update::Error-Mode=any` (this is an apt configuration
> equivalent of `--error-on=any` option) makes apt fail in such cases
> during the debootstrapping.
>
> Unfortunatelly, proposed solution doesn't work for `stretch` and
> `buster` while they have older apt versions.
>
> Technically, it's possible support these legacy distros, but it will
> require ugly workarounds with redirecting apt-get output, parcing
> it for `^W` messages (warnings) and generating artificial errors. It
> doesn't looks like something that is worth implementing.
>
> Uladzimir Bely (1):
> Exit bootstrap with error if apt-get update fails
>
> meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Applied to next, thanks.
prev parent reply other threads:[~2022-10-26 14:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-19 4:31 Uladzimir Bely
2022-10-19 4:31 ` [PATCH 1/1] " Uladzimir Bely
2022-10-26 14:02 ` Anton Mikanovich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=09d4cdf2-e358-8def-5f35-43ab0f79ba1c@ilbers.de \
--to=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=ubely@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox