How to Fix Error: An error occurred during the signature verification on Ubuntu

Today I tried to update my old Ubuntu 22.04 Server to version 22.04.1. This server was not used for several months and I just got a chance today to boot it up. After performing the update and upgrade command, I got the following error.

An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://jp.archive.ubuntu.com/ubuntu jammy InRelease: Splitting up /var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_jammy_InRelease into data and signature failed

Actually, there are some more lines that I do not include in this post. I tried many ways to fix it but ended up with the following solution.

sudo apt-get clean
sudo rm -r /var/lib/apt/lists/*
sudo apt update

After that, I can update and upgrade my Ubuntu to version 22.04.1 without issues. If you had the same issue, don’t panic. We can easily fix this signature error with a pretty simple trick. Thanks for reading and see you next time.

Be the first to comment

Leave a Reply