{"id":4856,"date":"2011-09-05T06:03:16","date_gmt":"2011-09-05T06:03:16","guid":{"rendered":"http:\/\/www.hbyconsultancy.com\/?p=4856"},"modified":"2011-09-05T06:03:16","modified_gmt":"2011-09-05T06:03:16","slug":"ubuntu-howto-fix-repository-signature-verification-issues","status":"publish","type":"post","link":"https:\/\/hbyconsultancy.com\/2011\/09\/ubuntu-howto-fix-repository-signature-verification-issues.html","title":{"rendered":"Ubuntu Howto Fix Repository Signature Verification Issues"},"content":{"rendered":"

Repository signature verification issues in ubuntu are becoming annoying, I\u2019m getting this after apt-get update :<\/p>\n

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http:\/\/archive.ubuntu.com natty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key
\nW: Failed to fetch http:\/\/archive.ubuntu.com\/ubuntu\/dists\/natty-updates\/Release
\nW: Some index files failed to download. They have been ignored, or old ones used instead.<\/code><\/p>\n

here is a quick fix :<\/p>\n

$ sudo apt-get clean
\n$ cd \/var\/lib\/apt
\n$ sudo mv lists lists.old
\n$ sudo mkdir -p lists\/partial
\n$ sudo apt-get clean<\/code><\/p>\n

Should be enough, but still getting error like :<\/p>\n

W: GPG error: http:\/\/archive.ubuntu.com natty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key<\/code><\/p>\n

Try another clean<\/p>\n

$ sudo apt-get clean
\n$ sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update<\/code><\/p>\n

Test now<\/p>\n

$ sudo apt-get update
\n$ sudo apt-get upgrade<\/code><\/p>\n

Fixed !<\/p>\n","protected":false},"excerpt":{"rendered":"

Repository signature verification issues in ubuntu are becoming annoying, I\u2019m getting this after apt-get update : W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http:\/\/archive.ubuntu.com natty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key W: […]<\/p>\n","protected":false},"author":1,"featured_media":4857,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[147,261],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/hbyconsultancy.com\/wp-content\/uploads\/2014\/12\/ubuntu-logo14.png?fit=540%2C243&ssl=1","_links":{"self":[{"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/posts\/4856"}],"collection":[{"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/comments?post=4856"}],"version-history":[{"count":0,"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/posts\/4856\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/media\/4857"}],"wp:attachment":[{"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/media?parent=4856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/categories?post=4856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hbyconsultancy.com\/wp-json\/wp\/v2\/tags?post=4856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}