ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Unable to install keys for ROS Kinetic using Ubuntu 16.04

asked 2018-10-29 14:27:33 -0500

JThan gravatar image

updated 2021-10-26 09:00:06 -0500

lucasw gravatar image

Hi all, I have been trying to follow the guide to installing ROS Kinetic using ubuntu 16.04 as mentioned in the guide: http://wiki.ros.org/Installation/Ubuntu However, when I reach the stage to install keys I continue to have errors. I would appreciate any help.

jt@DESKTOP-3055SML:~$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

jt@DESKTOP-3055SML:~$ sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

Executing: /tmp/tmp.uPhc0jGvdc/gpg.1.sh --keyserver
hkp://pgp.mit.edu:80
--recv-key
421C365BD9FF1F717815A3895523BAEEB01FA116
gpg: requesting key B01FA116 from hkp server pgp.mit.edu
gpgkeys: HTTP fetch error 7: couldn't connect: eof
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver unreachable
gpg: keyserver communications error: public key not found
gpg: keyserver receive failed: public key not found

jt@DESKTOP-3055SML:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
Executing: /tmp/tmp.d32lZCQFRX/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-key
421C365BD9FF1F717815A3895523BAEEB01FA116
gpg: requesting key B01FA116 from hkp server keyserver.ubuntu.com
gpgkeys: HTTP fetch error 7: couldn't connect: eof
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver unreachable
gpg: keyserver communications error: public key not found
gpg: keyserver receive failed: public key not found

jt@DESKTOP-3055SML:~$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
Executing: /tmp/tmp.0aSSGVNvmq/gpg.1.sh --keyserver
hkp://ha.pool.sks-keyservers.net:80
--recv-key
421C365BD9FF1F717815A3895523BAEEB01FA116
gpg: requesting key B01FA116 from hkp server ha.pool.sks-keyservers.net
gpgkeys: HTTP fetch error 7: couldn't connect: eof
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver unreachable
gpg: keyserver communications error: public key not found
gpg: keyserver receive failed: public key not found
edit retag flag offensive close merge delete

Comments

Can you provide the errors text / description?

alex.lavriv gravatar image alex.lavriv  ( 2018-10-29 15:21:40 -0500 )edit

Im not sure how to enter all the text into a comment with the correct formatting, and have instead put a screen capture on imgur. Hope this will do. link to imgur

JThan gravatar image JThan  ( 2018-10-29 17:01:17 -0500 )edit

Im not sure how to enter all the text into a comment with the correct formatting

copy from your terminal, paste into your original question (use the edit button/link near the comments) select pasted text, press ctrl+k or the Preformatted Text button (the one with 101010 on it).

gvdhoorn gravatar image gvdhoorn  ( 2018-10-30 02:52:56 -0500 )edit
1

Please do not use screenshots to show console text. See also the support guidelines.

gvdhoorn gravatar image gvdhoorn  ( 2018-10-30 02:53:22 -0500 )edit

Ok, hope that is better? I've added the code for all three substitutions

JThan gravatar image JThan  ( 2018-10-30 06:54:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-10-29 22:38:29 -0500

ameykasar gravatar image

updated 2018-10-30 10:15:01 -0500

I do not know the exact solution to your problem. It may just be a network issue or a problem with your package list.

I did however find a workaround/second method for installing keys. Follow the following steps:

  1. Visit this link
  2. Copy the block after the title Public Key Server -- Get "0x5523baeeb01fa116 " to a file (lets say abc.txt)
  3. Run sudo apt-key add abc.txt
  4. If it works, you will receive OK as output
  5. Run sudo apt-get update
edit flag offensive delete link more

Comments

Seems to be the same problem, I have added the errors to the original question

JThan gravatar image JThan  ( 2018-10-30 06:54:37 -0500 )edit

Are you behind a (corporate) proxy or some other form of firewall?

gvdhoorn gravatar image gvdhoorn  ( 2018-10-30 07:12:12 -0500 )edit

This is my personal desktop pc and am not using a proxy, I have disabled my windows and kapersky firewalls but still the same problem.

JThan gravatar image JThan  ( 2018-10-30 07:24:09 -0500 )edit
2

+1 for the effort @ameykasar but this is not necessary.

@JThan: try the following command:

wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
gvdhoorn gravatar image gvdhoorn  ( 2018-10-30 14:43:40 -0500 )edit

@gvdhoorn Sorry for the late response, Result:

Resolving packages.ros.org (packages.ros.org)... 64.50.233.100, 64.50.236.52, 140.211.166.134, ...
Connecting to packages.ros.org (packages.ros.org)|64.50.233.100|:80... connected.
Failed writing HTTP request: Connection reset by peer.
JThan gravatar image JThan  ( 2018-11-01 12:05:47 -0500 )edit

Or I get,

--2018-11-01 17:00:37--  (try:20)  http://packages.ros.org/ros.key
Connecting to packages.ros.org (packages.ros.org)|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... No data received.
Giving up.

gpg: no valid OpenPGP data found.
JThan gravatar image JThan  ( 2018-11-01 12:07:12 -0500 )edit

With that output I really start to get the feeling you're behind some kind of firewall or proxy and that is interfering with your connections to packages.ros.org.

You'll have to verify that or find a work-around.

gvdhoorn gravatar image gvdhoorn  ( 2018-11-01 12:07:32 -0500 )edit

Is it influenced at all by the fact I am running Ubuntu 16.04 LTS (from microsoft store)? Any known problems with this?

JThan gravatar image JThan  ( 2018-11-01 12:10:10 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-10-29 14:27:33 -0500

Seen: 6,490 times

Last updated: Oct 24 '21