WARNING: APT: The following signatures were invalid error in Ubuntu 20.04

Many Ubuntu 20.04 users may encounter problems updating packages due to the «WARNING: APT: The following signatures were invalid» error. This error can prevent you from updating your system and installing new programs.

Most often, this problem occurs because the security keys of the packages are not verified. This can happen for various reasons, such as incorrect repository settings or network access problems.

To fix this error, you will need to perform several steps. The first step is to update information about available packages:

sudo apt-get update

Next, you need to clear the APT cache:

sudo apt-get clean

And finally, try updating the system:

sudo apt-get upgrade

If that doesn’t help, try updating the package security keys:

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

Where «key» is the security key for the specific package causing the error.

If all of the above methods do not help, you may want to check your repository settings and make sure they are configured correctly.

Don’t panic if you encounter the «WARNING: APT: The following signatures were invalid» error in Ubuntu 20.04. By following the steps above, you can fix this problem and continue using your system without any problems.