Apt update doesn't work and getting no public key

What is the problem?

When updating my Octopi/Octoprint server, it just started failing on the octoprint repository and says there is no public key.
@octopi1:~ $ sudo apt update

[sudo] password for rogerwa:

Hit:1 Index of /debian bullseye InRelease

Hit:2 Index of /raspbian bullseye InRelease

Get:3 Index of /debian bullseye InRelease [4,067 B]

Err:3 Index of /debian bullseye InRelease

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 418208F07AD011A2

This has been working fine for several months.

What did you already try to solve it?

Ran this command with the key listed above

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 418208F07AD011A2

Says apt-key is deprecated. Could not find any other solution.

Have you tried running in safe mode?

N/A

Did running in safe mode solve the problem?

N/A

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

octoprint-systeminfo-20240325205200.zip (114.7 KB)

Additional information about your setup

OctoPrint version 1.9.3, OctoPi version 1.0.0, printer Ender 3Pro, firmware, browser, operating system, ... as much data as possible

Raspberry Pi 4, Octoprint 1.9.3, Octopi 1.0.0

1 Like

Unfortunately, the key for https://apt.octoprint.org/ had to be updated. To update the key on your install, you can do the below (instructions from https://apt.octoprint.org/)

"I get an error on update: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 418208F07AD011A2"
Please re-import the public key, it has been updated:

curl -s --compressed "https://apt.octoprint.org/octoprint.gpg.key" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/octoprint.gpg > /dev/null
sudo apt update
2 Likes

I used the instructions listed here and it worked, especially the following line:

curl -s --compressed "https://apt.octoprint.org/octoprint.gpg.key" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/octoprint.gpg > /dev/null
1 Like

Awesome thanks.. I will give that a try.