Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debain repo critical error #3015

Closed
VladislavGatsenko opened this issue Mar 9, 2024 · 4 comments
Closed

Debain repo critical error #3015

VladislavGatsenko opened this issue Mar 9, 2024 · 4 comments

Comments

@VladislavGatsenko
Copy link

After the 8th of the month, I am having a problem adding the mosquitto repository to my Debian 12.5 system.

I use the following set of commands to add the repository (it worked before 8th without problems):

sudo wget -qO- https://repo.mosquitto.org/debian/mosquitto-repo.gpg.key | sudo tee /etc/apt/trusted.gpg.d/mosquitto-repo.asc &&\
sudo wget -O /etc/apt/sources.list.d/mosquitto-bookworm.list https://repo.mosquitto.org/debian/mosquitto-bookworm.list && \
sudo apt update

Now I (and my colleagues) get an error:

W: GPG error: https://repo.mosquitto.org/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 61611AE430993623
E: The repository 'https://repo.mosquitto.org/debian bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See the apt-secure(8) manpage for repository creation and user configuration details.

Full log:

root@debian:~# sudo wget -qO- https://repo.mosquitto.org/debian/mosquitto-repo.gpg.key | sudo tee /etc/apt/trusted.gpg.d/mosquitto-repo.asc && \
sudo wget -O /etc/apt/sources.list.d/mosquitto-bookworm.list https://repo.mosquitto.org/debian/mosquitto-bookworm.list && \
sudo apt update
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFDnU4UBEADbtHyC/CR1OXZo0s5+nxLYtvXAVSJU0T+I91e+iJAeayyzH0iI
33l12L9N20Q+eYfELelX61NIU++u+xi5wa6/R/L+Aeu3P2E/dQmtYx8zzjjPhQQm
lnX3huaMoqBxHthvD+XJjKwHHJbyDzcdJGodN2nUsqCfUgcAgS7ZME8xYz83U5iH
/deHgpWBjtI5VNV/GDJc/oi1dh8V+I5fzxRjl3/t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SaT3T0TYIpuzJ
NCOjMHznfHWXYWyI+M89r3yeXfoSYD+kDKfM5MAGptNZrp/AhL8CP9LXI5/yrkYq
d283PBWrSKHmQkLOZIp2iv4b6W4khWniC2dfyPcHfEnOxcdbSag16E4r6sM6oi8W
XwgWVwC9XvGxpJj85og19VyjYmPCYtpEgXQot432sDcxAeIbAdJnDuQBHzm1e4sC
5dW96aDlLkClN5Gd8bzscTnyt7icPpy+QxcJR5Ih49dh/0LyJBNIsrNyE83vtXaa
4Sd78FXA0zdlPCrIVxIh0RQ5soNZUIylh/vXK9LzYJIJYULFZGhsiZ+l5fUU8zSS
Btf5a4jDtkRWOHxc5A76Wm/gJVqJ9JHHJRQOuBeQGL2RpSdKQcLzAN2MHx6il95o
prgSuYpTy4tv/FeI/xItwFwZwc99qy+SPnks831efleFse71v9uzZ9xRd7GTpj5i
1OAP/IcpIFd6dsqTAlVoel+sNvE1HjUlIDre87UoqIzjs+DVXl/FocLDIub7Zcb4
zpLmwZrYQpWMcnDcwFKko3i0Jso2gSZdRkjXahbUrv7yUmehbiUslun3la/Ga++S
Jl+ToCeR7Mwd13j6yl+PhkBHrjE/Mh/mLN3jhFaHEbhn+VecAM5XgDVn3LMmo48U
s0CcAA8PgqiftljzfmpNypsDsO1FmQ==
=pZgG
-----END PGP PUBLIC KEY BLOCK-----
--2024-03-09 17:34:36--  https://repo.mosquitto.org/debian/mosquitto-bookworm.list
Resolving repo.mosquitto.org (repo.mosquitto.org)... 85.119.83.194, 2001:ba8:1f1:f271::2
Connecting to repo.mosquitto.org (repo.mosquitto.org)|85.119.83.194|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 101 [application/octet-stream]
Saving to: ‘/etc/apt/sources.list.d/mosquitto-bookworm.list’

/etc/apt/sources.list.d/mosqu 100%[=================================================>]     101  --.-KB/s    in 0s      

2024-03-09 17:34:36 (211 MB/s) - ‘/etc/apt/sources.list.d/mosquitto-bookworm.list’ saved [101/101]

Hit:1 http:https://mirror.mephi.ru/debian bookworm InRelease
Get:2 http:https://mirror.mephi.ru/debian bookworm-updates InRelease [55.4 kB]                                       
Get:3 https://repo.mosquitto.org/debian bookworm InRelease [18.7 kB]                                                   
Err:3 https://repo.mosquitto.org/debian bookworm InRelease                                        
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 61611AE430993623
Get:4 http:https://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:5 http:https://security.debian.org/debian-security bookworm-security/main Sources [83.7 kB]
Get:6 http:https://security.debian.org/debian-security bookworm-security/main amd64 Packages [145 kB]
Get:7 http:https://security.debian.org/debian-security bookworm-security/main Translation-en [86.3 kB]
Reading package lists... Done                                   
W: GPG error: https://repo.mosquitto.org/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 61611AE430993623
E: The repository 'https://repo.mosquitto.org/debian bookworm 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.
root@debian:~# 
@Daedaluz
Copy link
Contributor

Daedaluz commented Mar 9, 2024

If you open mosquitto-bookworm.list you'll see that there is a signed-by attribute before the repo location.
It doesn't look like you placed the public key there.

@VladislavGatsenko
Copy link
Author

VladislavGatsenko commented Mar 9, 2024

So the problem is that previously adding the repository worked correctly. And since yesterday it started to happen (key error). I tested it on different machines, and the picture is the same everywhere: error when adding repository.
Somewhere on the mosquitto server there was a change. That's why this ticket was created.

By the way, there were no changes in the documentation on the official mosqutto site in terms of adding a repository for Debian.

0001

@VladislavGatsenko
Copy link
Author

Ok, that's fix changes in mosquitto-bookworm.list after 8th march.

sudo wget -qO- https://repo.mosquitto.org/debian/mosquitto-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/mosquitto-repo.gpg && \
sudo wget -O /etc/apt/sources.list.d/mosquitto-bookworm.list https://repo.mosquitto.org/debian/mosquitto-bookworm.list && \
sudo apt update

@Daedaluz
Copy link
Contributor

Daedaluz commented Mar 9, 2024

I guess there is a "new" way to connect to third party repos? Or rather a more the-debian-way to add third party repo?

Maybe this can shed some light.
And the README.txt seems to have the correct instructions.

I don't know which instructions you have been following but the mosquitto.org version seems a bit out of date as it doesn't even list bullseye, and I don't know if it is still relevant.

I havent personally aware of any direct changes to how to install mosquitto broker, but then again, i usually run it in a docker environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants