Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

repository key snafu


  • Please log in to reply
3 replies to this topic

#1 Alchemist

Alchemist

  • Members
  • 176 posts
  • OFFLINE
  •  
  • Local time:10:12 AM

Posted 15 November 2016 - 09:39 AM

My Debian Wheezy install has been updating fine for years. Not even the change to long-term maintenance disturbed it. But today it broke for no detectable reason. I got the "key invalid" error message, but apt-key list doesn't show any expired keys. Did they change repositories? If so, why didn't they issue key updates before they did that? What else could cause a key to be invalid even though it's not expired?



BC AdBot (Login to Remove)

 


#2 Viper_Security

Viper_Security

  • Members
  • 826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1
  • Local time:07:12 AM

Posted 15 November 2016 - 02:27 PM

If you are able to log in to the desktop open terminal and run.

 

sudo apt-get autoremove

sudo apt-get autoclean

sudo apt-get clean 

sudo apt-get -f install 

sudo apt-get update

 

that should fix your apt, and if not:

 

 

apt-key list | grep expired

 

You will get a result similar to the this:

 

pub 4096R/BE1DB1F1 2011-03-29 [expired: 2014-03-28]

 

The key ID is after the "/"

 

To update it: 

sudo apt-key adv --recv-keys --keyserver keys.gnupg.net "KEYID"

 

Make sure your date and time are correct as well!


    IT Auditor & Security Professional

hQBT2G3.png


#3 Alchemist

Alchemist
  • Topic Starter

  • Members
  • 176 posts
  • OFFLINE
  •  
  • Local time:10:12 AM

Posted 16 November 2016 - 11:40 AM

Yeah, I found a suggestion to run the "clean" option on another message board. That worked, but it's kind of annoying to not have the current updates for my distro easily available if I want to re-install. I was using auto-clean to only remove the obsolete packages. But apparently the old packages not matching the new key were the cause of the problem.



#4 Viper_Security

Viper_Security

  • Members
  • 826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1
  • Local time:07:12 AM

Posted 16 November 2016 - 01:06 PM

Ahhh okay No worries!!


Edited by Viper_Security, 16 November 2016 - 02:24 PM.

    IT Auditor & Security Professional

hQBT2G3.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users