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:
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’
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.
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.
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’