personalrobotics / pr-cleanroom

Utilities for testing the installation of the Personal Robotics Lab software in a clean environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup script frequently fails to retrieve ROS keys

brianhou opened this issue · comments

Instructions are from http://wiki.ros.org/indigo/Installation/Sources#Set_up_your_keys.
We do this here: https://github.com/personalrobotics/pr-cleanroom/blob/master/internal-setup.sh#L21

However, this doesn't always work: in the latest batch of runs that caused me to create this issue, 3/12 Ubuntu jobs failed with this error message.

+sudo -n apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
Executing: /tmp/tmp.2paEYFg0Y2/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: key 421C365BD9FF1F717815A3895523BAEEB01FA116 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

Restarting the build usually works, so simply retrying a few times might make this a bit more robust and less annoying.