FATAL Error: The following signatures were invalid in Ubuntu 18.04
If you’re working with Ubuntu 18.04, you might have encountered the FATAL error: The following signatures were invalid. This error message can be quite annoying and cause problems when installing software. But don’t worry, we have a solution!
This error usually occurs when installed packages have invalid signatures, making them untrusted. However, there are several ways to fix this annoying error message.
Solution 1: Updating Signature Keys
The first step to fix the FATAL error: The following signatures were invalid in Ubuntu 18.04 is to update the signature keys. To do this, run the following command in the terminal:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys КОД    
Replace «KEY» with the specific key code that is causing the error. After running this command, update your package and check if the error message has been fixed.
Solution 2: Removing Invalid Signature
If updating the keys didn’t help, try removing the invalid signature directly. To do this, follow these steps:
- Open the file with the invalid signature key in a text editor.
- Delete the contents of the file and save the changes.
- Run the package update command sudo apt-get update.
- Check if the error has been removed.
These solutions should help you fix the FATAL error: The following signatures were invalid in Ubuntu 18.04 and continue working without problems. Ensure the safety and reliability of your signature keys to avoid similar errors in the future.
«` 
             
                         
                                                                                         
                                                                                         
                                                                                        