Jeremy Davis's picture

Although you've added the key location to the apt sources.list line, you're still including the key in the default apt key ring (via 'apt-key add')!

As we should already include the key there (i.e. the /usr/share/keyrings/odoo.gpg file should already exist) you could probably skip that wget line altogether.

But for completeness, here is how to (re)download the key (you just need to include the '--keyring' switch with the path to where you want to save the file):

wget -O - https://nightly.odoo.com/odoo.key | apt-key --keyring /usr/share/keyrings/odoo.gpg add -

[update] adjusted the apt-key command to it's above format - the previous format does not work! Unless the switch precedes the argument, it fails...