Score:1

Errors when trying to upgrade to Ubuntu 21.04 from 20.10

it flag

Whenever I try and run software updater I just get the error "Failed to download repository. information please check your internet connection." and whenever I run sudo apt update I get the error

Get:6 https://packages.riot.im/debian default InRelease [2,892 B]
Err:6 https://packages.riot.im/debian default InRelease
  The following signatures were invalid: EXPKEYSIG C2850B265AC085BD riot.im packages <[email protected]>
Reading package lists... Done
W: GPG error: https://packages.riot.im/debian default InRelease: The following signatures were invalid: EXPKEYSIG C2850B265AC085BD riot.im packages <[email protected]>
E: The repository 'https://packages.riot.im/debian default 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.`
Steve avatar
us flag
I think the key here could be "Updating from such a repository can't be done securely..." It sounds like you may have added a third-party repo at some point to your software updater. I'd check there first. If you go to Software & Updates and click on the Other Software tab you may find the offending repo there. If so, try deselecting it and proceeding with your upgrade. There should be a reference to the offending repo packages.riot.im.
user535733 avatar
cn flag
Disable the broken repository, then try again
lululuna avatar
it flag
There is no repository with that name so I can't disable it.
Score:2
zw flag

You have to update repository GPG key by using command below

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C2850B265AC085BD

wget -q -O - https://packages.riot.im/element-release-key.gpg | sudo apt-key add -
wget -q -O - https://packages.riot.im/element-release-key-2020.gpg | sudo apt-key add -
wget -q -O - https://packages.riot.im/riot-release-key.gpg | sudo apt-key add -

and then install all updates with new dependencies to your current system by

sudo apt-get update
sudo apt-get dist-upgrade
cn flag
For me this did not work without changes because my `/etc/apt/sources.list.d/riot-im.list` contained `[signed-by=/usr/share/keyrings/riot-im-archive-keyring.gpg]`. I guess this might be different depending on when and how you installed element originally. If this is the case for you need to run `apt-key` commands with the `--keyring /usr/share/keyrings/riot-im-archive-keyring.gpg` option to update the key. It appears to me that using a dedicated keyring for such special repo is slightly more secure.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.