Fix ROS Error

This commit is contained in:
zouri 2024-12-05 20:59:47 +08:00 committed by ccmywish
parent cc713816c6
commit cc88867aae

View File

@ -3,12 +3,13 @@
* ------------------------------------------------------------- * -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com> * File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com> * Contributors : Aoran Zeng <ccmywish@qq.com>
* | zouri <guoshuaisun@outlook.com>
* Created On : <2023-09-03> * Created On : <2023-09-03>
* Last Modified : <2024-08-23> * Last Modified : <2024-12-05>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @update 2024-04-18 * @update 2024-12-05
*/ */
static Source_t os_ros_sources[] = static Source_t os_ros_sources[] =
{ {
@ -39,7 +40,7 @@ os_ros_setsrc (char *option)
chsrc_backup (OS_ROS_SourceList); chsrc_backup (OS_ROS_SourceList);
char *cmd = NULL; char *cmd = NULL;
cmd = xy_strjoin(3, "sed -E -i \'s@https?://.*/ros/ubuntu/?@", source.url, "@/ros/ubuntug\' " OS_ROS_SourceList); cmd = xy_strjoin(3, "sed -E -i \'s@https?://.*/ros/ubuntu/?@", source.url, "/ros/ubuntu@g\' " OS_ROS_SourceList);
chsrc_run(cmd, RunOpt_Default); chsrc_run(cmd, RunOpt_Default);
cmd = "apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654"; cmd = "apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654";