Peppermint OS Community Forum

Support => Software & Applications => Topic started by: perknh on May 24, 2014, 11:12:13 am

Title: There is no public key available for the following key IDs (SOLVED)
Post by: perknh on May 24, 2014, 11:12:13 am
I get this message after updating, and do not know if it is important or not.

My Peppermint 4 installation is fast, and seems to be working well, but I suspect something could be wrong.

I began getting this after I started searching for PPAs to update my Chromium browser -- which I know now was a bad idea.  I tried too many times too, so I get a message about duplicates also.

I don't know if I should clean this up, or even how to do so, or if I should re-install Peppermint 4, or just leave well enough alone.  As I said, my Peppermint 4 installation seems to be working fine.  It's this message below that disturbs me.  This is copied from my terminal after I run sudo apt-get update:


Spoiler (click here to view / hide)
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/multiverse amd64 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_multiverse_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/universe amd64 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_universe_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/restricted amd64 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_restricted_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/main amd64 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/multiverse i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/universe i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/restricted i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/main i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_main_binary-i386_Packages)
[close]

Thank you,
perknh
Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 24, 2014, 12:07:50 pm
Post the contents of
Code: [Select]
gedit /etc/apt/sources.list

and please put the output between spoiler tags.
Title: Re: There is no public key available for the following key IDs
Post by: perknh on May 24, 2014, 03:17:08 pm
Spoiler (click here to view / hide)
# deb cdrom:[Peppermint 4 _Four_ - Release amd64 (20130430)]/ raring main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ raring main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ raring main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates restricted main
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ raring universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring universe
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ raring-backports multiverse main universe restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu raring partner
deb-src http://archive.canonical.com/ubuntu raring partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu raring main
# deb-src http://extras.ubuntu.com/ubuntu raring main
deb http://security.ubuntu.com/ubuntu/ raring-security multiverse universe restricted main
deb http://us.archive.ubuntu.com/ubuntu/ raring-proposed multiverse main universe restricted
[close]



Also my terminal said this: 

$ gedit /etc/apt/sources.list

** (gedit:2207): WARNING **: Could not load theme icon user-bookmarks-symbolic: Icon 'user-bookmarks-symbolic' not present in theme

I imagine you want me to go in there and delete the duplicate massages.  But I won't do a thing until you say so.

Thank you,

perknh

Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 24, 2014, 03:28:05 pm
Gtk worning can be safely ignored.

OK, run:
sudo cp -v /etc/apt/sources.list /etc/apt/sources.list.bak
then
sudo gedit /etc/apt/sources.list
scroll to the bottom and comment out the bottom 2 lines .. so the file ends with:
Code: [Select]
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu raring main
# deb-src http://extras.ubuntu.com/ubuntu raring main
# deb http://security.ubuntu.com/ubuntu/ raring-security multiverse universe restricted main
# deb http://us.archive.ubuntu.com/ubuntu/ raring-proposed multiverse main universe restricted
SAVE the file and exit gedit .. back in the terminal run:
Code: [Select]
sudo apt-get update
any errors now ?
Title: Re: There is no public key available for the following key IDs
Post by: perknh on May 24, 2014, 04:03:57 pm
There was a word main after what you copied.  I tried it both ways, with the word main, and without the word main --but still the same results.

Nothing seems different.  These are my results: 

Spoiler (click here to view / hide)
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/multiverse amd64 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_multiverse_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/universe amd64 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_universe_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/restricted amd64 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_restricted_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/multiverse i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/universe i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ raring-security/restricted i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_raring-security_restricted_binary-i386_Packages)
[close]
Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 24, 2014, 04:22:28 pm
dunno what you mean by "main"

post the contents of
Code: [Select]
gedit /etc/apt/sources.list
again
Title: Re: There is no public key available for the following key IDs
Post by: perknh on May 24, 2014, 08:07:43 pm
Requested contents in spoiler below.

Spoiler (click here to view / hide)
# deb cdrom:[Peppermint 4 _Four_ - Release amd64 (20130430)]/ raring main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ raring main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ raring main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates restricted main
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ raring universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring universe
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ raring-backports multiverse main universe restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu raring partner
deb-src http://archive.canonical.com/ubuntu raring partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu raring main
# deb-src http://extras.ubuntu.com/ubuntu raring main
deb http://security.ubuntu.com/ubuntu/ raring-security multiverse universe restricted
[close]
Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 24, 2014, 08:29:41 pm
Run:
Code: [Select]
sudo gedit /etc/apt/sources.list
and delete the last line that reads:

deb http://security.ubuntu.com/ubuntu/ raring-security multiverse universe restricted

SAVE the file and exit gedit.

Back in the terminal run these commands in sequence:
Code: [Select]
sudo mv -v /var/lib/apt/lists /var/lib/apt/lists-old
then
Code: [Select]
sudo mkdir -p /var/lib/apt/lists/partial
then
Code: [Select]
sudo apt-get update
any errors now ?



I'm going to edit your last 2 posts .. from now on if you are asked to post any long output, please surround it with spoiler tags.

you can do this by highlighting all the text that you want in the spoiler, then whilst it's highlighted hit the [Sp] button.
Title: Re: There is no public key available for the following key IDs
Post by: perknh on May 24, 2014, 09:22:30 pm
Spoiler (click here to view / hide)
Fetched 26.9 MB in 1min 34s (285 kB/s)                                         
Reading package lists... Done
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
W: There is no public key available for the following key IDs:
40976EAF437D05B5
[close]

Thank you, PCNetSpec.  I forgot about using the spoiler tags, and I apologize about that.  I think I followed your spoiler tag request correctly this time.  I see two sets of three spoilers, and I don't have a clue what this all means.  But it looks a lot neater to me in Preview.

I started over again, as I believe you would have wanted me to, and what you see above is what I got from the terminal after running sudo apt-get update.

Thank you,
perknh

Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 25, 2014, 06:46:54 am
Run:
Code: [Select]
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5
then try:
Code: [Select]
sudo apt-get update
again.



Use of spoilers...

Try clicking the "Modify" button on one of the posts I've fixed .. and take a look at how I applied the spoiler tags.

like this

Code: [Select]
[spoiler]text to be hidden by the spoiler goes here[/spoiler]
Title: Re: There is no public key available for the following key IDs
Post by: perknh on May 25, 2014, 07:43:10 am
PCNetSpec,

You fixed it!   :)

From what I can see, my Peppermint 4 now updates normally.

If I may ask, how did I mess things up, so that I had to be dug out of this mess?
And, do you, and Mac, just whip this code off the top of your heads?
 
This is like magic to me.  Both of you guys seem to pull rabbits out of hats with mysterious stings of code.  How does you recognize what to do?  And, then, how do you know what string of code to run in the terminal?  And where does this code come from anyway?

I'm astonished by all of this.

Thank you, PCNetSpec.

And thank you for teaching me about spoilers.  I had never even known about them before yesterday.

perknh


Here's the output. (I did asterisk out a family member's name.)

Spoiler (click here to view / hide)
***@bluecaat ~ $ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5
[sudo] password for ***:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.q9SXxBv0Bv --trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5
gpg: requesting key 437D05B5 from hkp server keyserver.ubuntu.com
gpg: key 437D05B5: public key "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1
[close]
Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 25, 2014, 07:55:49 am
Quote
If I may ask, how did I mess things up, so that I had to be dug out of this mess?

IT support rarely get to know that .. we only see the aftermath ;)

Quote
How does you recognize what to do?  And, then, how do you know what string of code to run in the terminal?

Voodoo, a bit of chanting around a fire, some strong cactus juice, then we lick a few frogs and the solution just comes to us in a dream  :o
(for some reason there's always the sound of an eagle call in  the background .. even in the UK where there are no eagles  :-\)
Title: Re: There is no public key available for the following key IDs
Post by: perknh on May 25, 2014, 08:19:43 am
Thank you, PCNetSpec,

I want that experience too!

 8)
Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 25, 2014, 08:30:29 am
No problem :)

Please remember to mark the topic (SOLVED)

you can do this by editing the FIRST posting in this topic and changing:

Subject: There is no public key available for the following key IDs (SOLVED)

Thanks in advance.
Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 25, 2014, 09:07:47 am
Quote from: PCNetSpec
Voodoo, a bit of chanting around a fire, some strong cactus juice, then we lick a few frogs and the solution just comes to us in a dream

Quote from: perknh
I want that experience too!

You'll need to hook up with a good frog dealer then :)

PS. NOT Jim Henson .. his frogs are rubbish and taste vaguely of pork when you lick them  :P
Title: Re: There is no public key available for the following key IDs
Post by: VinDSL on May 25, 2014, 09:47:09 am
If I may ask, how did I mess things up, so that I had to be dug out of this mess?

And, do you, and Mac, just whip this code off the top of your heads?

Most likely YOU didn't "mess things up", perknh.

I've had this happen in the past, for no apparent reason -- usually after a release-upgrade.   Something belches, and it corrupts one or more of your stored keys.  I've had to go in and fix multiple keys -- a whole page of them, one at a time -- which is a real PITA.

I cannot speak for Mac or Mark or others -- we all have our way of doing things -- but, yes, I try to relegate as much "code" (and commands) as possible to my head.  It's a memory game I play with myself.  One of the tricks I use is word association.  After all, storing code and commands in your head is closely akin to expanding your vocabulary.

If a problem, like the above, occurs infrequently, I 'cheat' by documenting the problem and the fix in Gnote (https://en.wikipedia.org/wiki/Gnote) -- or on the web.  The only problem with that is -- your notes and/or the web aren't always available to you -- for instance, when you are sleeping on an idea, daydreaming about something, and so forth.

As a general rule, you're better off storing this info in your head.

That said, I couldn't remember the 'apt-key' command to save my life -- and, I couldn't find it in my Gnote data.  Word association didn't work.  And, it happens to me so infrequently, I couldn't find do a Google Search on myself, and find any web postings I had made on this topic in the past.

Expounding on that last point...  Yes, when you do this long enough -- and all else fails -- you can actually rely on the search engines to spur your memory.  That's one of the benefits you get by helping others, e.g. you help yourself -- with the search bots looking over your shoulder, the whole time, and recording everything for posterity.   8)

Hopefully that gives you a little insight on how we work our magic.  It isn't voodoo.  It's just a matter of being methodical and using whatever works for you, in conjunction with  your particular mental processes. 

I'll stop now.  This discussion doesn't really belong in the 'Support' Forum...  ;)

Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 25, 2014, 09:55:13 am
Aww .. I prefer "voodoo and frog licking", *then* Google.. but then we all have our own methods :)

[EDIT]

I'm not too bothered about a small amount of "discussion" in a support topic AFTER the initial issue is solved .. and if the "discussion" is started by the OP and doesn't get too out of hand :)

Later readers looking for a solution are likely to start at the beginning anyway.
Title: Re: There is no public key available for the following key IDs
Post by: VinDSL on May 25, 2014, 10:06:34 am
Aww .. I prefer "voodoo and frog licking", *then* Google.. but then we all have our own methods :)

LoL!   :D

Only voodoo I know about in Linux et al. is that @#$! LightDM program.

I swear, that author must have come from the planet Stewjon...
Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 25, 2014, 10:15:17 am
Hey, Martk Shuttleworth waves his hand, and mutters under his breath .. and in the next release certain things either disappear or magically no longer work .. that HAS to be some kinda south african voodoo right there.
Title: Re: There is no public key available for the following key IDs
Post by: VinDSL on May 25, 2014, 11:37:21 am
Hey, Martk Shuttleworth waves his hand, and mutters under his breath .. and in the next release certain things either disappear or magically no longer work .. that HAS to be some kinda south african voodoo right there.

Heh!  He actually responded to one of my loquacious posts on Launchpad.  Peeps were on a rant about how you can't change the look n' feel of Unity.  I said, sure you can - you just need to use GS to manipulate Unity.  And, I'll make Unity look however I want -  nobody is going to stop me, blah, blah, blah.  I finished with, "Nobody ever stopped Mark Shuttleworth, right Mark?"   I figured I would be banned from Launchpad, but Mark S. came back with, "Well put."   8)
Title: Re: There is no public key available for the following key IDs
Post by: PCNetSpec on May 25, 2014, 11:39:52 am
Unity .. further evidence of the satanic arts in Linux, and that Shuttleworth has his horns filed down every morning by contorted naked succubi >:D
Title: Re: There is no public key available for the following key IDs (Solved)
Post by: perknh on May 26, 2014, 10:07:13 am
I always suspected you guys were using magic, and now I know you do!

By the way, after running those last commands my Peppermint 4 OS is blazingly fast.  I can't imagine that Peppermint 5 will work any better than this.

And thank you, VinDSL, for giving me some thoughts on an approach for learning code and commands. 

I've learned a few commands:

Spoiler (click here to view / hide)
sudo apt-get update, sudo apt-get upgrade, sudo apt-get dist-upgrade, sudo apt-get install, sudo apt-get remove, sudo apt-get autoremove, sudo apt-get purge.

Then,  sudo ufw status, sudo apt-get install ufw, sudo ufw default deny incoming, sudo ufw default allow outgoing, sudo ufw enable

And that's about it, but it's a start!

[close]

As for Jimmy Henson's frogs -- thanks for the tip!

 ;)

perknh