You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wget -qO - https://mirror.mwt.me/shiftkey-desktop/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/mwt-desktop.gpg > /dev/null
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/mwt-desktop.gpg] https://mirror.mwt.me/shiftkey-desktop/deb/ any main" > /etc/apt/sources.list.d/mwt-desktop.list'
sudo apt update then returns this error:
Err:2 https://mirror.mwt.me/shiftkey-desktop/deb any InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FC979028B1997C1
...
Reading package lists... Done
W: GPG error: https://mirror.mwt.me/shiftkey-desktop/deb any InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FC979028B1997C1
and verified that /etc/apt/sources.list.d/shiftkey-desktop.list and /etc/apt/keyrings/shiftkey-desktop.asc were created. sudo apt update now returns:
Err:1 https://mirror.mwt.me/shiftkey-desktop/deb any InRelease
Unknown error executing apt-key
...
W: GPG error: https://mirror.mwt.me/shiftkey-desktop/deb any InRelease: Unknown error executing apt-key
E: The repository 'https://mirror.mwt.me/shiftkey-desktop/deb any 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.
Activity
mwt commentedon Sep 11, 2025
Could you try looking at
/usr/share/keyrings/mwt-desktop.gpgand see that the file is present and looks like a real gpg key?Edit: if you can't get that to work, could you try
0nobody0 commentedon Sep 11, 2025
thanks for the mirror and the quick reply!
sudo cat /usr/share/keyrings/mwt-desktop.gpg:sudo cat /usr/share/keyrings/mwt-desktop.gpg | gpg --with-colons --import-options show-only --import:i also checked that
wget -qO - https://mirror.mwt.me/shiftkey-desktop/gpgkeyreturns the expected key before being piped togpg --dearmor:i ran
and verified that
/etc/apt/sources.list.d/shiftkey-desktop.listand/etc/apt/keyrings/shiftkey-desktop.ascwere created.sudo apt updatenow returns:Edit: Added
sudo cat /usr/share/keyrings/mwt-desktop.gpg | gpg --with-colons --import-options show-only --importabove.mwt commentedon Sep 11, 2025
Strange. I'm running the same version of Ubuntu and it is signed for me. The
InReleasefile that it's saying isn't signed is the following:https://mirror.mwt.me/shiftkey-desktop/deb/dists/any/InRelease
Which is definitely signed. Is this file maybe blocked for you? What happens if you curl it?
0nobody0 commentedon Sep 11, 2025
pardon the confusion - user error. somehow
umaskwas set to077which resulted in the keyfile having the wrong permissions:sudo apt updateworks fine after fixing the permissions withsudo chmod 644 /usr/share/mwt-desktop.gpg:mwt commentedon Sep 11, 2025
Interesting. I guess apt doesn't use root when reading the key. I didn't know that.