Home / Linux / How to fix GPG or KEYEXPIRED error in ubuntu

How to fix GPG or KEYEXPIRED error in ubuntu

If you have been using ibus-avro for a while, you may have encourtered this error when running apt-get update.

W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1366357218

Lets see how to fix that.

  1. Open Ubuntu Software Center.
  2. From Top bar goto Edit > Software Sources
  3. Goto Authentication Tab and select the sarimkhan OBS Project key.
  4. Press Remove and confirm by entering your password.
  5. Now open up terminal and add the correcponding key for your OS, for example ubuntu 13.04
  6.  wget -q http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_13.04/Release.key -O- | sudo apt-key add -
  7. Now you can update your software sources without any problem.
  8.  sudo apt-get update
  9. Have Fun and keep rocking.

If the command are not doing it for you, you have to do it on your own. After a long research on this problem i finally decided that the best thing to do was manually download the key and add it.This is how i did it. Go to Ubuntu Key-server(Click here). Here you can search your key. In my case it was 6AF0E1940624A220. Note while searching for key pre-append the key with 0x. So search for 0x6AF0E1940624A220

Click on the link provided in the pub section. Copy the whole text(highlighted in below screen shot) from the page and save it in a file(say filename is key1)

Once you have copied the data to file. Save it. Then run the following command

 sudo apt-key add key1

You will get an “OK” response.

And you are done. Repeat the procedure of other keys that might be missing. Then you can run sudo

apt-get update

and you will not get any error. Update happens smoothly. Do let me know if you still have any doubts.

About Rasel Khan

Check Also

How to fix qualified domain name

When you restart your apache server using the command Someone get the following error: Let’s …


  1. With havin so much written content do you ever run into any problems of plagorism or copyright violation? My blog has a lot
    of exclusive content I’ve either authored myself or outsourced but it looks like a lot of it is popping
    it up all over the internet without my permission. Do you
    know any techniques to help stop content from being ripped off?
    I’d definitely appreciate it.

  2. Thanks for a marvelous posting! I ԁefinitely ennjoyed reading іt, y᧐u could bе
    a ցreat author.I wiⅼl ensure tһat I bookmark yօur blog and mɑу come back someday.
    I wаnt too encourage yoᥙ to continue уour gгeat posts, һave ɑ nice afternoon!

  3. Ꮋello it’s me, I am aⅼso visiting this web page oon a regular basis, tһiѕ website іѕ
    truly good and thе people arе аctually sharing nice tһoughts.

  4. Keeρ thiѕ goingg pⅼease, great job!

  5. I really can’t believe how great this site is. Keep up the good work. I’m going to tell all my friends about this place.

  6. This site looks better and better every time I visit it. What have you done with this place to make it so amazing?!

  7. It’ѕ in reality a great and usefսl piece оf іnformation. I’m glad tһat youu
    just shared tһis heloful info witһ us. Please stay us up tо Ԁate like tһis.
    Thank you fоr sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *