Thursday 18 February 2021

Re: apt-get update --on-error=any

On Thu, Feb 11, 2021 at 5:14 AM Julian Andres Klode
<julian.klode@canonical.com> wrote:
>
> I just realized I did not yet widely advertise that hirsute has a new
> --error-on=any argument for apt{,-get} update that makes it also
> consider transient errors as errors instead of warnings.
>
> I think a bunch of people asked for that in the past because they
> implemented retry loops around that for like container startup.
>
> --error-on maps to the configuration option APT::Update::Error-Mode,
> for folks who want to drop that into apt.conf or who need to pass it
> unconditionally and keep older apts working, they can do -o
> APT::Update::Error-Mode=any
>
> The patch is not big, I guess we can SRU it if we want to.

Hi,
I just stumbled across this in practice on 20.04 and found this email.
What is the recommended way to have `apt-get update` exit failure when
something fails on 20.04 and 18.04 ?

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel