Error updating from Blokas apt

Error when updating apt:

pi@boson:~ $ sudo apt update
Hit:1 https://deb.nodesource.com/node_18.x buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Ign:3 http://blokas.io/apt rpi InRelease
Hit:4 http://archive.raspberrypi.org/debian buster InRelease
Err:5 http://blokas.io/apt rpi Release
  404  Not Found [IP: 142.93.172.202 80]
Reading package lists... Done
E: The repository 'http://blokas.io/apt rpi Release' no longer has 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.

I have tried this with the --allow-releaseinfo-change option, but this made no difference.

Run:

curl https://blokas.io/apt-setup.sh | sh

Btw, why do you have both buster and bullseye in your APT list?

Thanks, I get a different error now:

pi@boson:~ $ sudo apt update
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Get:2 http://apt.blokas.io rpi InRelease [3954 B]
Err:2 http://apt.blokas.io rpi InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 37808098F560908A
Reading package lists... Done
W: GPG error: http://apt.blokas.io rpi InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 37808098F560908A
E: The repository 'http://apt.blokas.io rpi InRelease' is not signed.
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.

The stray buster reference turned out to be in the file /etc/apt/sources.list.d/nodesource.list, which I have no memory of.

Check your /etc/apt/sources.list.d/ folder - if there are multiple Blokas sources files, keep only the blokas.sources one.

Checking…there’s only one Blokas source file in that directory, and the name is correct. There are also three other files, none of which have any Blokas reference, and anyway I have commented out the contents of those files.

What is the output of:

lsb_release -a

?

pi@boson:/etc/apt $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

FWIW, I checked my Pi5 with Pisound. It had the same issue until I ran apt-setup.sh, now it is fine. I will have to copare the two machines to see if any difference stands out, but I won’t be able to get to that until tomorrow.

I think it was the same issue as here: GPG Error on install

The legacy part of the APT setup script was missing sudo mkdir -p /etc/apt/keyrings - I just fixed the apt-setup.sh, please try running it again:

curl https://blokas.io/apt-setup.sh | sh

That worked! Thanks very much for your help (and your responsiveness!), much appreciated.

1 Like