Here’s what finally fixed the problem for me:
Since the key is expired, apt refuses to trust and update from that repository. To fix this, you just need to download the repository’s new key and tell your system to use it.
- Add the New Repository Key
This command will download the new GPG key from the openSUSE server, convert it to the correct format, and save it where your system can use it.
Bash
curl -fsSL http://download.opensuse.org/repositories/server:/eGroupWare/Debian_12/Release.key | sudo gpg --dearmor -o /usr/share/keyrings/egroupware-obs.gpg
- Update Your Repository Source File
Next, you need to edit the source file for the eGroupWare repository to point to the new key you just added.
Find the relevant file in /etc/apt/sources.list.d/. It’s likely named egroupware.list or something similar. Open it with a text editor like nano:
Bash
sudo nano /etc/apt/sources.list.d/egroupware.list
Your existing line will look something like this:
deb http://download.opensuse.org/repositories/server:/eGroupWare/Debian_12/ ./
Modify it by adding [signed-by=/usr/share/keyrings/egroupware-obs.gpg] right after deb, like so:
Diff
#deb http://download.opensuse.org/repositories/server:/eGroupWare/Debian_12/ ./
deb [signed-by=/usr/share/keyrings/egroupware-obs.gpg] http://download.opensuse.org/repositories/server:/eGroupWare/Debian_12/ ./
Save the file and exit the editor (in nano, press Ctrl+X, then Y, then Enter).
- Refresh Your Package Lists
Finally, run the update command again. The error should now be gone.
Bash
sudo apt update