Unable to install keys for ROS Kinetic using Ubuntu 16.04
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
Asked by JThan on 2018-10-29 14:27:33 UTC
Answers
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:
- Visit this link
- Copy the block after the title Public Key Server -- Get "0x5523baeeb01fa116 " to a file (lets say
abc.txt
) - Run
sudo apt-key add abc.txt
- If it works, you will receive
OK
as output - Run
sudo apt-get update
Asked by ameykasar on 2018-10-29 22:38:29 UTC
Comments
Seems to be the same problem, I have added the errors to the original question
Asked by JThan on 2018-10-30 06:54:37 UTC
Are you behind a (corporate) proxy or some other form of firewall?
Asked by gvdhoorn on 2018-10-30 07:12:12 UTC
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.
Asked by JThan on 2018-10-30 07:24:09 UTC
+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 -
Asked by gvdhoorn on 2018-10-30 14:43:40 UTC
@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.
Asked by JThan on 2018-11-01 12:05:47 UTC
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.
Asked by JThan on 2018-11-01 12:07:12 UTC
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.
Asked by gvdhoorn on 2018-11-01 12:07:32 UTC
Is it influenced at all by the fact I am running Ubuntu 16.04 LTS (from microsoft store)? Any known problems with this?
Asked by JThan on 2018-11-01 12:10:10 UTC
Are you running this on Windows 10 - WSL?
if so, you should have said that immediately.
Asked by gvdhoorn on 2018-11-01 12:21:49 UTC
I had the same problem. I was using wireless internet connection in the university which is different network than LAN. I switched to LAN and used same ha.pool.sks-keyservers.net and it worked. So I think it is due to proxy settings. thanks @gvdhoorn .
Asked by lcd_cm on 2019-05-24 02:37:34 UTC
Well it is not a good solution. I can install ROS but I can not install new packages. As example:
sudo apt-get install ros-kinetic-ros-tutorials
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-kinetic-ros-tutorials
Asked by Michdo93 on 2021-10-24 08:32:55 UTC
If you're trying to do this on anything which is not Ubuntu Xenial, you'll run into that error.
You cannot install ROS Kinetic on any other Ubuntu distribution.
Asked by gvdhoorn on 2021-10-24 12:34:20 UTC
Comments
Can you provide the errors text / description?
Asked by alex.lavriv on 2018-10-29 15:21:40 UTC
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
Asked by JThan on 2018-10-29 17:01:17 UTC
copy from your terminal, paste into your original question (use the
edit
button/link near the comments) select pasted text, pressctrl+k
or the Preformatted Text button (the one with101010
on it).Asked by gvdhoorn on 2018-10-30 02:52:56 UTC
Please do not use screenshots to show console text. See also the support guidelines.
Asked by gvdhoorn on 2018-10-30 02:53:22 UTC
Ok, hope that is better? I've added the code for all three substitutions
Asked by JThan on 2018-10-30 06:54:01 UTC