Skip to content

Commit

Permalink
fix(ros): 基础版本安装出现依赖问题不会自动解决
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed Sep 20, 2024
1 parent 51c62be commit b76ff27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/tool_install_ros.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ def choose_and_install_ros(self):
if install_tool=='aptitude':
AptUtils.install_pkg('aptitude')

# ======================================================基础版本==============================================================
if code==2:
# 第一次尝试
cmd_result = CmdTask("sudo {} install {} -y".format(install_tool_apt,dic_base[install_version]),300,os_command=True).run()
Expand All @@ -355,9 +356,10 @@ def choose_and_install_ros(self):
PrintUtils.print_delay("请注意我,检测你在安装过程中出现依赖问题,请在稍后输入n,再选择y,即可解决")
import time
input("确认了解情况,请输入回车继续安装")
cmd_result = CmdTask("sudo {} install {} ".format(install_tool,install_version),300,os_command=True).run()
cmd_result = CmdTask("sudo {} install {} ".format(install_tool,dic_base[install_version]),300,os_command=True).run()
cmd_result = CmdTask("sudo {} install {} -y".format(install_tool,dic_base[install_version]),300,os_command=False).run()

# ======================================================桌面版本==============================================================
elif code==1:
cmd_result = CmdTask("sudo {} install {} -y".format(install_tool_apt,RosVersions.get_desktop_version(install_version)),300,os_command=True).run()
cmd_result = CmdTask("sudo {} install {} -y".format(install_tool_apt,RosVersions.get_desktop_version(install_version)),300,os_command=False).run()
Expand Down

0 comments on commit b76ff27

Please sign in to comment.