I got the same error, also going via apt-cacher-ng: $ sudo apt-get update Hit:1 http://gb.archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://gb.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB] Get:3 http://gb.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB] Hit:4 https://ppa.launchpadcontent.net/gns3/ppa/ubuntu jammy InRelease Hit:5 https://download.docker.com/linux/ubuntu jammy InRelease Get:6 http://gb.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Err:2 http://gb.archive.ubuntu.com/ubuntu jammy-updates InRelease The following signatures were invalid: BADSIG 871920D1991BC93C Ubuntu Archive Automatic Signing Key (2018) <[email protected]> Hit:7 https://packagecloud.io/netdata/netdata/ubuntu jammy InRelease Hit:8 https://packagecloud.io/netdata/netdata-repoconfig/ubuntu jammy InRelease Hit:9 https://apt.syncthing.net syncthing InRelease Fetched 324 kB in 2s (148 kB/s) Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://gb.archive.ubuntu.com/ubuntu jammy-updates InRelease: The following signatures were invalid: BADSIG 871920D1991BC93C Ubuntu Archive Automatic Signing Key (2018) <[email protected]> W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease The following signatures were invalid: BADSIG 871920D1991BC93C Ubuntu Archive Automatic Signing Key (2018) <[email protected]> W: Some index files failed to download. They have been ignored, or old ones used instead.
Note that in my case the error was for "jammy-updates". The solution for me was: $ sudo rm -rf /var/cache/apt-cacher-ng/uburep/dists/jammy-updates/ Then: $ sudo apt-get update Hit:1 http://gb.archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://gb.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB] Get:3 http://gb.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Get:4 http://gb.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB] Hit:5 https://ppa.launchpadcontent.net/gns3/ppa/ubuntu jammy InRelease Hit:6 https://download.docker.com/linux/ubuntu jammy InRelease Hit:7 https://apt.syncthing.net syncthing InRelease Get:8 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [795 kB] Get:9 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [177 kB] Get:10 http://gb.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [521 kB] Get:11 http://gb.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [79.7 kB] Hit:12 https://packagecloud.io/netdata/netdata/ubuntu jammy InRelease Hit:13 https://packagecloud.io/netdata/netdata-repoconfig/ubuntu jammy InRelease Fetched 1,897 kB in 2s (938 kB/s) Reading package lists... Done $ Hence getting into this bad state looks like some internal problem with apt-cacher-ng. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1956039 Title: BADSIG 871920D1991BC93C Ubuntu Archive Automatic Signing Key (2018) <[email protected]> Status in apt package in Ubuntu: Confirmed Bug description: Updating Jammy fails with: Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB] Err:2 http://archive.ubuntu.com/ubuntu jammy InRelease The following signatures were invalid: BADSIG 871920D1991BC93C Ubuntu Archive Automatic Signing Key (2018) <[email protected]> To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1956039/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

