Install Ros Error:set up your keys timed out

Source: Internet
Author: User
Tags gpg

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.