Can't Install Mosquitto Beyond v 2.0.11 on Raspberry Pi Bookworm

Been using Eclipse Mosquitto for several years on Raspberry Pi hardware. Current setup is RaspPi 5 and RaspPi 4b both running fresh images of Raspberry Pi OS Bookworm 64-bit. If I install Mosquitto from the RaspPi repository, it installs v 2.0.11, so I remove that install and follow the “old” (from 2013) instructions on the Cedalo Mosquitto site for Debian inserting “Bookworm” where needed:

sudo wget http://repo.mosquitto.org/debian/mosquitto-bookworm.list

Then I do: sudo apt-get update

And get this error at the end:
N: Skipping acquire of configured file ‘main/binary-arm64/Packages’ as repository ‘https://repo.mosquitto.org/debian bookworm InRelease’ doesn’t support architecture ‘arm64’

Is this error correct?

Yes, it is. I need to add arm64 support, I’ll see about doing that soon.

Cheers,

Roger

@loke, would you mind and try again?
We have added arm64 support!

If I use the original 2013 instructions for upgrading on Raspberrypi, it simply says that I am already at the latest version 2.0.11. During that process, I would get a “Warning” message stating that apt-get is outdated and to use gpg instead, so I had modified the 2013 instructions as follows:

Installing latest version of Eclipse Mosquitto
rev 2-24-2024

sudo wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
// do this next section if you get Warning messages about apt-key not being supported in future
sudo apt-key list // get the last 8 digits of the hexadecimal number associated with Mosquitto key
sudo bash -c ‘apt-key export 30993623 > /tmp/pgdg.asc’
file /tmp/pgdg.asc
sudo apt-key del 30993623
sudo mv /tmp/pgdg.asc /etc/apt/trusted.gpg.d/
// end of key relocation section
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-bookworm.list
sudo apt-get update
sudo apt-get install mosquitto mosquito-clients

This is when I would get my original error stating mosquito would not upgrade because of no arm64 support. This time, I got the following error message and still no upgrade past 2.0.11

Get:6 Index of /debian/ bookworm InRelease [18.7 kB]
Err:6 Index of /debian/ bookworm InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 779B22DFB3E717B7
Fetched 18.7 kB in 2s (12.1 kB/s)
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian/ bookworm InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 779B22DFB3E717B7
W: Failed to fetch https://repo.mosquitto.org/debian/dists/bookworm/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 779B22DFB3E717B7
W: Some index files failed to download. They have been ignored, or old ones used instead.

Hi,

Sorry, the wrong key was used in signing. It’s now fixed. The README.txt is also updated with up to date instructions on dealing with the keys as well.

Cheers,

Roger

Great news, but can you please provide me a link to the “README.txt” file?

Still unable to find the README.txt that you are referring to. Tried doing the install again but no luck.

It is here: https://repo.mosquitto.org/debian/README.txt

That did it !!! Thank you. FYI, for my installation, I had to add “sudo” to the last command:

sudo apt-get update && sudo apt-get install mosquito

Best regards.

1 Like

Hate to bring this up again, but the latest “README.txt” published on March 13 does work for Bookworm but DOES NOT work for Bullseye 64bit OS. I still get the error:
N: Skipping acquire of configured file ‘main/binary-arm64/Packages’ as repository ‘Index of /debian/ bullseye InRelease’ doesn’t support architecture ‘arm64’