GPG Error Public key is not available NO_PUBKEY EB9B1D8886F44E2A

Asked by balachandar

I have the issue while i am running "sudo apt-get update".

sudo apt-get update
Get:1 http://cdn-fastly.deb.debian.org/debian jessie-backports InRelease [166 kB]
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease [17.5 kB]
Ign:3 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease
Get:4 http://cdn-fastly.deb.debian.org/debian jessie-backports/main Sources [809 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian jessie-backports/main amd64 Packages [908 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian jessie-backports/main Translation-en [626 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Fetched 2,832 kB in 43s (65.3 kB/s)
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB9B1D8886F44E2A
W: The repository 'http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

/etc/apt/sources.list

## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial-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://archive.ubuntu.com/ubuntu xenial universe
deb-src http://archive.ubuntu.com/ubuntu xenial universe
deb http://archive.ubuntu.com/ubuntu xenial-updates universe
deb-src http://archive.ubuntu.com/ubuntu xenial-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://archive.ubuntu.com/ubuntu xenial multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-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

deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-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 xenial partner
deb http://cdn-fastly.deb.debian.org/debian jessie-backports main
deb-src http://cdn-fastly.deb.debian.org/debian jessie-backports main
#--deb http://cdn-fastly.deb.debian.org/debian/ jessie-backports main
# deb-src http://cdn-fastly.deb.debian.org/debian/ jessie-backports main
# deb-src http://archive.canonical.com/ubuntu xenial partner
#--deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
#--deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial main

How to resolve this issue?

Question information

Language:
English Edit question
Status:
Answered
For:
sources-list Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Manfred Hampl (m-hampl) said :
#1

The command

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB9B1D8886F44E2A

should help.

Or you can try re-adding the PPA with the command
sudo add-apt-repository ppa:openjdk-r/ppa

Revision history for this message
balachandar (balachandar-raju) said :
#2

As u suggested, if i go with first command(sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB9B1D8886F44E2A),
i have got the following Error:

 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB9B1D8886F44E2A
Executing: /tmp/tmp.FqDaWkZTZc/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
EB9B1D8886F44E2A
gpg: requesting key 86F44E2A from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

Revision history for this message
balachandar (balachandar-raju) said :
#3

If i will go with sudo add-apt-repository ppa:openjdk-r/ppa

sudo add-apt-repository ppa:openjdk-r/ppa
Cannot add PPA: 'ppa:~openjdk-r/ubuntu/ppa'.
ERROR: '~openjdk-r' user or team does not exist.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

The responses are unexpected.

What do you get when you try accessing the web page
http://keyserver.ubuntu.com/pks/lookup?search=0xEB9B1D8886F44E2A

Maybe there was some kind of temporary problem; if you try again, do you still get the same error messages?

Revision history for this message
balachandar (balachandar-raju) said :
#5

When i am accessing the above link i have got the following page with key

Search results for '0xeb9b1d8886f44e2a'

Type bits/keyID Date User ID
pub 1024R/86F44E2A 2010-04-12 Launchpad OpenJDK builds (all archs)

Yes.. I have tried out in many times same error happening.

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Maybe the manual procedure as shown in https://askubuntu.com/a/457549 works for you.

Revision history for this message
balachandar (balachandar-raju) said :
#7

Thanks Manfred Hampl, that solved my question.

Revision history for this message
balachandar (balachandar-raju) said :
#8

After that i have got an issue like following.

Cannot add PPA: 'ppa:~openjdk-r/ubuntu/ppa'.
ERROR: '~openjdk-r' user or team does not exist.

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

1. You have separate question for that - https://answers.launchpad.net/ubuntu-fr-secours-sourceslist/+question/642560 and for keeping the "one question - one topic" principle I recommend that you mark this question as solved and use the other one for the "user or group does not exist" problem.

2. You have created these two questions in a wrong area. "sources-list" ubuntu-fr-secours-sourceslist is a project for creating sources.list files as part of the French Ubuntu users group - apparently dead (Ubuntu 10.04 is listed as the newest release).
I suggest that you move the question documents into the general "Ubuntu" area by using the "edit" button in the header of the question document.

Can you help with this problem?

Provide an answer of your own, or ask balachandar for more information if necessary.

To post a message you must log in.