Browse Source

修改脚本中安装系统时的key,根据最新ros wiki来修改

corvin 5 years ago
parent
commit
9176ef1ee8
1 changed files with 4 additions and 4 deletions
  1. 4 4
      autoInstallROS.sh

+ 4 - 4
autoInstallROS.sh

@@ -28,11 +28,11 @@
 #        执行该脚本基本上完成大部分的配置;
 #    20180226 - 安装ROS时各版本下载的ROS key步骤相同,因此增加函数
 #        downloadROSKey各版本统一调用,减少代码量;
-#
+#    20190614 - 更新安装系统时配置的密钥信息,根据ros wiki上最新安装教程修改;
 #####################################################################
 
 ##### USER UPDATE AREA START #####
-TOOL_VER="V1.1"
+TOOL_VER="V1.2"
 ##### USER UPDATE AREA END  #####
 
 green="\e[32;1m"
@@ -99,14 +99,14 @@ function downloadROSKey()
     sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
     roskey=`apt-key list | grep "ROS Builder"`
     if [ -z "$roskey" ]; then
-      sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
+      sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
     fi
 
     while [ $? -ne 0 ]
     do
         echo -e "${red}Download ROS keys occured error, wait 10 seconds retry...${normal}"
         sleep 10
-        sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
+        sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
     done
     sudo apt-get update
 }