How to Fix ‘Requires installation of untrusted packages’ error in Ubuntu 10.10 Maverick Meerkat

This morning I tried to update my Ubuntu machine and got this error massage ‘Requires installation of unstrusted packages’ and couldn’t figure out why. I later found out that I was missing some GPG keys. If you find yourself in this same situation and need help with it, I’m going show you how to quickly resolve it in Ubuntu Lucid or Maverick.

 

The error screen below is what you’ll get when you try to update your system via Update  Manager.

 

untrusted_mav 

 

To fix it, go to Applications –> Accessories’ –> Terminal. and run the command below:

sudo apt-get update

untrusted_mav_1

 

Then take notes of all the numbers (keys) after ‘NO_PUBKEY’. I have underlined my missing keys in the image above.

 

To install the missing public keys, run the command below for each missing key. Replace XXXXXX with the key shown

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com XXXXXXXXX

untrusted_mav_2

 

After that, type the command below to update your package repository with the missing key:

sudo apt-get update

untrusted_mav_4

 

Next, try updating your system again, and this time it should work.

 

untrusted_mav_3

 

Thanks for reading and please come back soon.

58 comments on “How to Fix ‘Requires installation of untrusted packages’ error in Ubuntu 10.10 Maverick Meerkat
  1. Srikad8 says:

    after I type in the

    sudo apt-key adv –recv-key –keyserver keyserver.ubuntu.com XXXXXXXXX

    command i get the following:

    Executing: gpg –ignore-time-conflict –no-options –no-default-keyring –secret-keyring /etc/apt/secring.gpg –trustdb-name /etc/apt/trustdb.gpg –keyring /etc/apt/trusted.gpg –primary-keyring /etc/apt/trusted.gpg –recv-key –keyserver keyserver.ubuntu.com 61E091672E206FF0
    gpg: requesting key 2E206FF0 from hkp server keyserver.ubuntu.com
    ?: keyserver.ubuntu.com: Connection timed out
    gpgkeys: HTTP fetch error 7: couldn’t connect: Connection timed out
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0

  2. fandango says:

    hey thankyou for that worked perfectly

  3. Victor Hugo Cardenas says:

    Thanks!!! this solved it

  4. Halit Yurtsever says:

    thanks buddy. it worked :)

  5. Robin says:

    Excellent work, thanks very much

  6. Bhaskar says:

    Thanks a lot buddy

  7. Yuki Buwana says:

    Thanks a lot bro… :)

  8. Pete says:

    Thanks for your helpful post – In my case after running apt-get update, I didn’t get any NO_PUBKEY entries.. So I tried to update again and it worked… Not sure why it failed in the first place but, you helped me solve it.. Thanks a lot.

  9. Avisheklive says:

    thanks man….it workd…
    u rck

  10. Sniper7137 says:

    Thanks a lot. it worked fine. Didn’t even have to fix the missing keys. Just typing the sudo apt-get update command worked for me.

  11. Bybu87 says:

    yeah the commands worked successful

  12. Maheanuu says:

    I can’t seem to download the Keys, I get the following messages in the terminal when

  13. Maheanuu says:

    When I go through all the steps I get the following at the end and I have tried this 6 times in a row with no joy….. Below is what I am getting when I try to get the keys

    Hit http://ppa.launchpad.net maverick Release
    Ign http://ppa.launchpad.net maverick Release
    Ign http://ppa.launchpad.net maverick/main Sources/DiffIndex
    Ign http://ppa.launchpad.net maverick/main amd64 Packages/DiffIndex
    Ign http://ppa.launchpad.net maverick/main Sources/DiffIndex
    Ign http://ppa.launchpad.net maverick/main amd64 Packages/DiffIndex
    Hit http://ppa.launchpad.net maverick/main Sources
    Hit http://ppa.launchpad.net maverick/main amd64 Packages
    Hit http://ppa.launchpad.net maverick/main Sources
    Hit http://ppa.launchpad.net maverick/main amd64 Packages
    Fetched 633B in 9s (64B/s)
    Reading package lists… Done
    W: GPG error: http://ppa.launchpad.net maverick Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 531EE72F4C9D234C
    W: GPG error: http://ppa.launchpad.net maverick Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 35DA01C261E46227
    maheanuu@maheanuu:~$

    Any help would be greatly appreciated, I am not only a newbie, but am over the end of the world and do not have anyone on this island that even has the foggiest notion about Linux or Ubuntu

  14. Guest says:

    In my case, I did not see any NO_PUBKEY at apt-get output, but when I tried the Update Manager again, it starts working!
    May be just running the sudo apt-get update itself helped the update manager. Thanks.

  15. FU says:

    thanks alot :) worked like a charm :D

  16. Guest says:

    Thank you!

  17. Sahil Akhunji says:

    Just running the first command
    sudo apt-get update
    solved the problem.
    P.S. : It didn’t display any PUB-KEY too.

  18. Daszkov says:

    Thanks, but typing only sudo apt-get update resolved my problem :)

  19. Medk says:

    Thanks a lot! It solved the problem – I am new to Ubuntu….

  20. Gorowok Metal says:

    nice share…it’s works. thx

  21. Liveinreal20 says:

    Go to System>Administrator>Software Sources, open the second tab “Other Software” and click the http://archive.canonical.com/ubuntu partner (Source Code)

  22. sandy_riyadi says:

    hai
    i’m in this situation, n i has to follow that command, but i have this :

    sandy_riyadi@RSK-LNX-UB1:~$ sudo apt-key adv –recv-key –keyserver keyserver.ubuntu.com 2E206FF0
    Executing: gpg –ignore-time-conflict –no-options –no-default-keyring –secret-keyring /etc/apt/secring.gpg –trustdb-name /etc/apt/trustdb.gpg –keyring /etc/apt/trusted.gpg –primary-keyring /etc/apt/trusted.gpg –recv-key –keyserver keyserver.ubuntu.com 2E206FF0
    gpg: requesting key 2E206FF0 from hkp server keyserver.ubuntu.com
    ?: keyserver.ubuntu.com: Connection refused
    gpgkeys: HTTP fetch error 7: couldn’t connect: Connection refused
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0
    sandy_riyadi@RSK-LNX-UB1:~$

    how to fix that problem ???

  23. thanks a lot its working for me..

  24. Hamrohc says:

    thanks it workssssssss……………..

  25. Cmdr says:

    Thanks…I didn’t even change the codes.
    Just terminal command and update.
    Works just fine!

  26. Thalessenador says:

    thx it works now

  27. What caused this problem?

  28. Sirsat_tushar says:

    Thanks a lot buddy, it worked for me.
    Ubuntu support groups and fans ROCK !

  29. Razaractor says:

    Thanx a million

  30. ivnogueira says:

    great. thanks.

  31. Bhavin Tuxlover says:

    thanks a lot, this is beautifully works for me.

  32. coolnezz says:

    this worked. thanks!

  33. Ira says:

    Also works with Natty Narwhal (11.04)
    Thanks much!

  34. naveen says:

    Thanx man

  35. Cesar says:

    It really worked.. Thanks!!!

  36. Mahmoud says:

    Thx Thx Thx a lot.

  37. Matt says:

    If you can’t use apt-key then another option is to just do it via command line as mentioned in this post: http://ubuntuforums.org/showthread.php?t=1610171

    So here’s how I resolved it:
    1. open a terminal
    2. sudo apt-get update
    3. sudo apt-get upgrade

    Then say “Y” when asked to install without verification

  38. jas says:

    Bravo!!! worked like a charm, thank you so much

  39. Ryan says:

    Thanks, fixed my issue!

  40. Ell says:

    Appreciated

  41. Nikhil K.H Parmar says:

    Simply PERFECT…………Thankx

  42. Selva says:

    Thanks….Its working fine.

  43. NetPlayer says:

    Worked fine on Ubuntu 11.04 , thank you!

  44. Oddvar says:

    I dont know why, but after that error I performed sudo update-manager
    That functioned without errors.
    Btw I could not find any errors concerning any kay. but the error mag
    was the same.

  45. CASPER says:

    Thank you, solved a nagging problem

  46. lei says:

    Thank you. Worked perfectly without a hitch.

  47. fellowadmin says:

    ****worked perfectly on lubuntu 11.10…the problem was with one of the medibuntu packages — public key.

    many thanks…:)

  48. Donal says:

    Thanks! ..fixed my update problem with a CRAN mirror for R packages

  49. BadOPCode says:

    Thanks man! Always wondered how to fix that instead of always doing upgrades from the command line. Was getting old doing it that way.

  50. Eva says:

    thank you very much for your supporting.

  51. jaskaran says:

    thank you my friend …

    just the first terminal command did the work :)
    thanks

  52. Alex says:

    Many Thanks!

    I used:

    sudo apt-get update | grep “GPG Error”

    to easier identify the key-less package. :)

  53. zagpau says:

    Thanks for the very good info – precise and to the point!

  54. lightbulb says:

    For my 12.04 the first step ( sudo apt-get update ) was sufficient. – But thanks anyway!

  55. Joe says:

    Worked like a charm. Thanks for posting!

  56. Adriano says:

    Very good. Tks!

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>