码迷,mamicode.com
首页 > 其他好文 > 详细

install ros error :Set up your keys timed out

时间:2018-10-11 16:57:29      阅读:384      评论:0      收藏:0      [点我收藏+]

标签:end   net   correct   because   set   index.php   nec   which   win   

错误:

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

 

环境:

硬件:friendlyarm NanoPi-M4

http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M4/zh

系统:rk3399-sd-lubuntu-desktop-xenial-4.4-armhf-YYYYMMDD.img.zip

 

解决办法:

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

解决办法内容摘录:

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 50 which looks almost identical:

precedence ::ffff:0:0/96 10

This is the wrong line. Go ~4 lines down and you‘ll find the correct line to uncomment because it ends with 100 instead of 10

 

install ros error :Set up your keys timed out

标签:end   net   correct   because   set   index.php   nec   which   win   

原文地址:https://www.cnblogs.com/hiram-zhang/p/9772986.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!