tl;dr apt-get update fails to contact a repository in the list which is treated as an error; how can I ignore that error?

When I run an apt update I see

$ apt update
Err:5 https://packagecloud.io/ookla/speedtest-cli/debian bullseye Release
  404  Not Found [IP: 443]
Reading package lists... Done
E: The repository 'https://packagecloud.io/ookla/speedtest-cli/debian bullseye Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

This causes apt-get to return process code non-zero, and the calling script then fails.

I know I could edit the repositories under /etc/apt. But in this case, I would like to have apt ignore errors like this, and have apt-get return process code zero (assuming nothing else goes wrong).

For moderators, this question is different than similar questions (1, 2, 3) because I'm asking to temporarily ignore missing repositories. Whereas other Questions and Answers are asking for the permanent fix (requiring changes under /etc/apt).

  • 1
    Did you found a solution to this?
    – gxx
    Nov 8, 2023 at 23:15
  • @gxx I have not 🙁 Nov 10, 2023 at 3:19


You must log in to answer this question.

Browse other questions tagged .