1

Topic: NO_PUBKEY error with Sogo repo

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.0
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Ubuntu 20.04 LTS server
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

When trying to

sudo apt update

my iRedMail server, I get the following error:

Hit:1 http://lu.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://lu.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://lu.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://lu.archive.ubuntu.com/ubuntu focal-security InRelease
Get:5 https://packages.sogo.nu/nightly/5/ubuntu focal InRelease [3,218 B]
Err:5 https://packages.sogo.nu/nightly/5/ubuntu focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F8A27B36A6E2EAE9
Fetched 3,218 B in 1s (4,247 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
11 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sogo.nu/nightly/5/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F8A27B36A6E2EAE9
W: Failed to fetch https://packages.inverse.ca/SOGo/nightl … /InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F8A27B36A6E2EAE9
W: Some index files failed to download. They have been ignored, or old ones used instead.

I have read here that the binary packages of SOGo and SOPE will be available from a different URL (https://packages.sogo.nu).

Is it sufficient to replace in my sogo-nightly.list repository file the line

deb https://packages.inverse.ca/SOGo/nightly/5/ubuntu/ focal focal

by

deb http://packages.sogo.nu/nightly/5/ubuntu/ focal focal

?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: NO_PUBKEY error with Sogo repo

Found the solution here: https://www.sogo.nu/support/faq/how-to- … .html#/faq

Also needed to:

sudo wget -O- "http://pgp.mit.edu/pks/lookup?op=get&search=0xCB2D3A2AA0030E2C" | sudo gpg --dearmor | sudo apt-key add -

sudo wget -O- "https://keys.openpgp.org/vks/v1/by-fingerprint/74FFC6D72B925A34B5D356BDF8A27B36A6E2EAE9" | sudo gpg --dearmor | sudo apt-key add -

3

Re: NO_PUBKEY error with Sogo repo

We covered this in upgrade tutorial for upcoming iRedMail release (1.6.1):
https://docs.iredmail.org/upgrade.iredm … igning-key