Receive error "The following signatures were invalid: EXPKEYSIG 4ABE1AC7557BEFF9" when adding ownCloud server repository for Ubuntu 20.04

,

Steps to reproduce

  1. Add ownCloud repository for installation of “owncloud-complete-files”, following instructions for Ubuntu 20.04 from: Install package isv:ownCloud:server:10 / owncloud-complete-files
  2. apt update
  3. See error:
    GPG error: Index of /repositories/isv:/ownCloud:/server:/10/Ubuntu_20.04 InRelease: The following signatures were invalid: EXPKEYSIG 4ABE1AC7557BEFF9 isv:ownCloud OBS Project isv:ownCloud@build.opensuse.org
    E: The repository ‘Index of /repositories/isv:/ownCloud:/server:/10/Ubuntu_20.04 InRelease’ is not signed.

Expected behaviour

Tell us what should happen
I expect to be able to add the repository and run “apt update” without error.

Actual behaviour

Tell us what happens instead
As mentioned in the steps to reproduce, when following the steps to add the ownCloud server repository, I see an error: “The following signatures were invalid: EXPKEYSIG 4ABE1AC7557BEFF9 isv:ownCloud OBS Project isv:ownCloud@build.opensuse.org

Note that this is occurring on a machine that already has ownCloud version 10.9.1 installed successfully, that I have just upgraded from Ubuntu 18.04 to version 20.04. That installation was performed through the use of the official repository and I was attempting to switch the repository to the one required from my new operating system version.

Server configuration

Operating system:
Ubuntu 20.04

Web server:
Apache 2.4.41

Database:
mysql-server 8.0.28

PHP version:
php -v
PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies

ownCloud version: (see ownCloud admin page)
10.9.1-1+6.1

Updated from an older ownCloud or fresh install:
The previous version I updated from was 10.8

Where did you install ownCloud from:
Official package repository.

Hi; There are some distribution key‘s expired; For Ubuntu 20.04 it is fixed.

curl -L https://download.opensuse.org/repositories/isv:ownCloud:server:10/Ubuntu_20.04/Release.key | gpg -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0gpg: WARNING:  Kein Kommando angegeben.  Versuche zu raten was gemeint ist ...
100   371  100   371    0     0   2612      0 --:--:-- --:--:-- --:--:--  2612
100   372  100   372    0     0   2214      0 --:--:-- --:--:-- --:--:--  2214
100   373  100   373    0     0   1912      0 --:--:-- --:--:-- --:--:--  1912
100  1097  100  1097    0     0   4919      0 --:--:-- --:--:-- --:--:--  4919
pub   rsa2048 2016-09-25 [SC] [verfällt: 2024-03-23]
      1B07204CD71B690D409F57D24ABE1AC7557BEFF9
uid           isv:ownCloud OBS Project <isv:ownCloud@build.opensuse.org>

Take a look at your system [apt-key list] and remove the expired one under /etc/apt/trusted.gpg.d

Then just add the new key.

1 Like

Thanks very much for the quick reply. Removing two existing expired keys does appear to have solved the problem. I no longer see the error.

2 Likes