Error:
sudo apt-key adv--keyserver hkp://ha.pool.sks-
Keyservers.net--recv-key 421c365bd9ff1f717815a3895523baeeb01fa116
EXECUTING:GPG--ignore-time-conflict--no-options--no-default-keyring--
Homedir/tmp/tmp. Cpclk5j7k0--no-auto-check-trustdb--trust-model always--
KEYRING/ETC/APT/TRUSTED.GPG--PRIMARY-KEYRING/ETC/APT/TRUSTED.GPG-
Keyserver hkp://ha.pool.sks-keyservers.net--recv-key
421c365bd9ff1f717815a3895523baeeb01fa116
Gpg:requesting key b01fa116 from HKP server ha.pool.sks-keyservers.net
Gpg:keyserver timed out
Gpg:keyserver Receive failed:keyserver Error
Environment:
Hardware: Friendlyarm NANOPI-M4
Http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M4/zh
System: Rk3399-sd-lubuntu-desktop-xenial-4.4-armhf-yyyymmdd.img.zip
Workaround:
Https://askubuntu.com/questions/880571/keyserver-timeout-when-trying-to-add-key
https://askubuntu.com/questions/574569/apt-get-stuck-at-0-connecting-to-us-archive-ubuntu-com/575130#575130
Extract of Solution content:
Figured out how to get apt-get to work again.
Edit gai.conf:
sudo vim/etc/gai.conf
Change line ~54 to uncomment the following:
Precedence:: FFFF:0:0/96 100
Write and quit:
: Wq
CAUTION
Look out line which looks almost identical:
Precedence:: ffff:0:0/96 10
The wrong line. Go ~ lines down and you'll find the correct line to uncomment because it ends with instead of 10
Install Ros Error:set up your keys timed out