小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
一键安装ros2 foxy失败
-
yuchenye@ubuntu:~$ wget http://fishros.com/install -O fishros && . fishros --2022-05-30 15:32:37-- http://fishros.com/install Resolving fishros.com (fishros.com)... 139.9.131.171 Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://fishros.com/install/ [following] --2022-05-30 15:32:37-- http://fishros.com/install/ Reusing existing connection to fishros.com:80. HTTP request sent, awaiting response... 200 OK Length: 349 [application/octet-stream] Saving to: ‘fishros’ fishros 100%[===================>] 349 --.-KB/s in 0s 2022-05-30 15:32:37 (71.2 MB/s) - ‘fishros’ saved [349/349] [sudo] password for yuchenye: Reading package lists... Done Building dependency tree Reading state information... Done python3-distro is already the newest version (1.4.0-1). python3-distro set to manually installed. python3-yaml is already the newest version (5.3.1-1ubuntu0.1). python3-yaml set to manually installed. You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: python3-rosdep-modules : Depends: python3-rospkg-modules (>= 1.3.0) but it is not going to be installed Depends: python3-catkin-pkg-modules (>= 0.4.0) but it is not going to be installed Depends: python3-rosdistro-modules (>= 0.7.5) but it is not going to be installed ros-noetic-rospack : Depends: python3-catkin-pkg-modules but it is not going to be installed ros-noetic-rqt-gui : Depends: python3-rospkg-modules but it is not going to be installed ros-noetic-rqt-robot-monitor : Depends: python3-rospkg-modules but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). --2022-05-30 15:32:42-- http://fishros.com/install/install1s/tools/base.py Resolving fishros.com (fishros.com)... 139.9.131.171 Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 39555 (39K) [application/octet-stream] Saving to: ‘/tmp/fishinstall/tools/base.py’ /tmp/fishinstall/to 100%[===================>] 38.63K --.-KB/s in 0.03s 2022-05-30 15:32:42 (1.12 MB/s) - ‘/tmp/fishinstall/tools/base.py’ saved [39555/39555] Run CMD Task:[dpkg --print-architecture] [-]Result:success 基础检查通过... =============================================================================== ======欢迎使用一键安装工具,人生苦短,三省吾身,省时省力省心!======= ======一键安装已开源,请放心使用:https://github.com/fishros/install======= =============================================================================== .-~~~~~~~~~-._ _.-~~~~~~~~~-. __.' ~. .~ `.__ .'// 开卷有益 \./ 书山有路 \ `. .'// 可以多看看小鱼的文章 | 关注公众号鱼香ROS \ `. .'// .-~"~~~~-._ | _,-~~~~"~-. \`. .'//.-" `-. | .-' "-.\`. .'//______.============-.. \ | / ..-============.______\`. .'______________________________\|/______________________________` ---------------------------------------------------------------------- RUN Choose Task:[请输入括号内的数字] ---众多工具,等君来用--- [1]:一键安装:ROS(支持ROS和ROS2,树莓派Jetson) [2]:一键安装:github桌面版(小鱼常用的github客户端) [3]:一键配置:rosdep(小鱼的rosdepc,又快又好用) [4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择) [5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统) [6]:一键安装:nodejs [7]:一键安装:VsCode开发工具 [8]:一键安装:Docker [9]:一键安装:Cartographer(内测版v0.1) [10]:一键安装:微信(可以在Linux上使用的微信) [77]:测试模式:运行自定义工具测试 [0]:quit 请输入[]内的数字以选择:1 --2022-05-30 15:34:01-- http://fishros.com/install/install1s/tools/tool_install_ros.py Resolving fishros.com (fishros.com)... 139.9.131.171 Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 12296 (12K) [application/octet-stream] Saving to: ‘/tmp/fishinstall/tools/tool_install_ros.py’ /tmp/fishinstall/tools/tool_install_ros.py 100%[==============================================================================================>] 12.01K --.-KB/s in 0.001s 2022-05-30 15:34:01 (17.6 MB/s) - ‘/tmp/fishinstall/tools/tool_install_ros.py’ saved [12296/12296] --2022-05-30 15:34:01-- http://fishros.com/install/install1s/tools/tool_config_rosenv.py Resolving fishros.com (fishros.com)... 139.9.131.171 Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2307 (2.3K) [application/octet-stream] Saving to: ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ /tmp/fishinstall/tools/tool_config_rosenv.py 100%[==============================================================================================>] 2.25K --.-KB/s in 0s 2022-05-30 15:34:02 (9.61 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ saved [2307/2307] --2022-05-30 15:34:02-- http://fishros.com/install/install1s/tools/tool_config_system_source.py Resolving fishros.com (fishros.com)... 139.9.131.171 Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9321 (9.1K) [application/octet-stream] Saving to: ‘/tmp/fishinstall/tools/tool_config_system_source.py’ /tmp/fishinstall/tools/tool_config_system_sou 100%[==============================================================================================>] 9.10K --.-KB/s in 0.002s 2022-05-30 15:34:02 (5.57 MB/s) - ‘/tmp/fishinstall/tools/tool_config_system_source.py’ saved [9321/9321] 欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供 欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献.. 小鱼:检测当前系统ubuntu20.04:focal 支持一键安装ROS =========接下来这一步很重要,如果不知道怎么选请选择1======== RUN Choose Task:[请输入括号内的数字] 首次安装一定要换源并清理三方源,换源!!!系统默认国外源容易失败!! [1]:更换系统源再继续安装 [2]:不更换继续安装 [0]:quit 请输入[]内的数字以选择:1 欢迎使用一键更换系统源,本工具由作者小鱼提供 欢迎使用一键换源工具,本工具由[鱼香ROS]小鱼贡献.. RUN Choose Task:[请输入括号内的数字] 请选择换源方式,如果不知道选什么请选2 [1]:仅更换系统源 [2]:更换系统源并清理第三方源 [0]:quit 请输入[]内的数字以选择:2 Run CMD Task:[sudo rm -rf /etc/apt/sources.list] [-]Result:success 删除一个资源文件 Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d] [-]Result:success Run CMD Task:[sudo mkdir -p /etc/apt/sources.list.d] [-]Result:success Run CMD Task:[dpkg --print-architecture] [-]Result:success 检测到当前系统架构为[amd64:focal],正在为你更换对应源.. 替换完成,尝试第一次更新.... Run CMD Task:[sudo apt update] [-]Result:success --upgradable' to see them. amd64 c-n-f Metadata [512 B] B] 搞定了,不信你看,累死宝宝了,还不快去给小鱼点个赞~ ['Get:1 https://mirrors.ustc.edu.cn/ubuntu focal InRelease [265 kB]', 'Get:2 https://mirrors.ustc.edu.cn/ubuntu focal-updates InRelease [114 kB]', 'Get:3 https://mirrors.ustc.edu.cn/ubuntu focal-backports InRelease [108 kB]', 'Get:4 https://mirrors.ustc.edu.cn/ubuntu focal-security InRelease [114 kB]', 'Get:5 https://mirrors.ustc.edu.cn/ubuntu focal/main i386 Packages [718 kB]', 'Get:6 https://mirrors.ustc.edu.cn/ubuntu focal/main amd64 Packages [970 kB]', 'Get:7 https://mirrors.ustc.edu.cn/ubuntu focal/main Translation-en [506 kB]', 'Get:8 https://mirrors.ustc.edu.cn/ubuntu focal/main amd64 DEP-11 Metadata [494 kB]', 'Get:9 https://mirrors.ustc.edu.cn/ubuntu focal/main DEP-11 48x48 Icons [98.4 kB]', 'Get:10 https://mirrors.ustc.edu.cn/ubuntu focal/main DEP-11 64x64 Icons [163 kB]', 'Get:11 https://mirrors.ustc.edu.cn/ubuntu focal/main DEP-11 64x64@2 Icons [15.8 kB]', 'Get:12 https://mirrors.ustc.edu.cn/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB]', 'Get:13 https://mirrors.ustc.edu.cn/ubuntu focal/restricted amd64 Packages [22.0 kB]', 'Get:14 https://mirrors.ustc.edu.cn/ubuntu focal/restricted i386 Packages [8,112 B]', 'Get:15 https://mirrors.ustc.edu.cn/ubuntu focal/restricted Translation-en [6,212 B]', 'Get:16 https://mirrors.ustc.edu.cn/ubuntu focal/restricted amd64 c-n-f Metadata [392 B]', 'Get:17 https://mirrors.ustc.edu.cn/ubuntu focal/universe i386 Packages [4,642 kB]', 'Get:18 https://mirrors.ustc.edu.cn/ubuntu focal/universe amd64 Packages [8,628 kB]', 'Get:19 https://mirrors.ustc.edu.cn/ubuntu focal/universe Translation-en [5,124 kB]', 'Get:20 https://mirrors.ustc.edu.cn/ubuntu focal/universe amd64 DEP-11 Metadata [3,603 kB]', 'Get:21 https://mirrors.ustc.edu.cn/ubuntu focal/universe DEP-11 48x48 Icons [3,016 kB]', 'Get:22 https://mirrors.ustc.edu.cn/ubuntu focal/universe DEP-11 64x64 Icons [7,794 kB]', 'Get:23 https://mirrors.ustc.edu.cn/ubuntu focal/universe DEP-11 64x64@2 Icons [44.3 kB]', 'Get:24 https://mirrors.ustc.edu.cn/ubuntu focal/universe amd64 c-n-f Metadata [265 kB]', 'Get:25 https://mirrors.ustc.edu.cn/ubuntu focal/multiverse i386 Packages [74.7 kB]', 'Get:26 https://mirrors.ustc.edu.cn/ubuntu focal/multiverse amd64 Packages [144 kB]', 'Get:27 https://mirrors.ustc.edu.cn/ubuntu focal/multiverse Translation-en [104 kB]', 'Get:28 https://mirrors.ustc.edu.cn/ubuntu focal/multiverse amd64 DEP-11 Metadata [48.4 kB]', 'Get:29 https://mirrors.ustc.edu.cn/ubuntu focal/multiverse DEP-11 48x48 Icons [23.1 kB]', 'Get:30 https://mirrors.ustc.edu.cn/ubuntu focal/multiverse DEP-11 64x64 Icons [192 kB]', 'Get:31 https://mirrors.ustc.edu.cn/ubuntu focal/multiverse DEP-11 64x64@2 Icons [214 B]', 'Get:32 https://mirrors.ustc.edu.cn/ubuntu focal/multiverse amd64 c-n-f Metadata [9,136 B]', 'Get:33 https://mirrors.ustc.edu.cn/ubuntu focal-updates/main amd64 Packages [1,830 kB]', 'Get:34 https://mirrors.ustc.edu.cn/ubuntu focal-updates/main i386 Packages [659 kB]', 'Get:35 https://mirrors.ustc.edu.cn/ubuntu focal-updates/main Translation-en [336 kB]', 'Get:36 https://mirrors.ustc.edu.cn/ubuntu focal-updates/main amd64 DEP-11 Metadata [278 kB]', 'Get:37 https://mirrors.ustc.edu.cn/ubuntu focal-updates/main DEP-11 48x48 Icons [60.8 kB]', 'Get:38 https://mirrors.ustc.edu.cn/ubuntu focal-updates/main DEP-11 64x64 Icons [98.3 kB]', 'Get:39 https://mirrors.ustc.edu.cn/ubuntu focal-updates/main DEP-11 64x64@2 Icons [29 B]', 'Get:40 https://mirrors.ustc.edu.cn/ubuntu focal-updates/main amd64 c-n-f Metadata [15.4 kB]', 'Get:41 https://mirrors.ustc.edu.cn/ubuntu focal-updates/restricted i386 Packages [24.3 kB]', 'Get:42 https://mirrors.ustc.edu.cn/ubuntu focal-updates/restricted amd64 Packages [1,008 kB]', 'Get:43 https://mirrors.ustc.edu.cn/ubuntu focal-updates/restricted Translation-en [143 kB]', 'Get:44 https://mirrors.ustc.edu.cn/ubuntu focal-updates/restricted amd64 c-n-f Metadata [520 B]', 'Get:45 https://mirrors.ustc.edu.cn/ubuntu focal-updates/universe i386 Packages [679 kB]', 'Get:46 https://mirrors.ustc.edu.cn/ubuntu focal-updates/universe amd64 Packages [924 kB]', 'Get:47 https://mirrors.ustc.edu.cn/ubuntu focal-updates/universe Translation-en [207 kB]', 'Get:48 https://mirrors.ustc.edu.cn/ubuntu focal-updates/universe amd64 DEP-11 Metadata [390 kB]', 'Get:49 https://mirrors.ustc.edu.cn/ubuntu focal-updates/universe DEP-11 48x48 Icons [257 kB]', 'Get:50 https://mirrors.ustc.edu.cn/ubuntu focal-updates/universe DEP-11 64x64 Icons [458 kB]', 'Get:51 https://mirrors.ustc.edu.cn/ubuntu focal-updates/universe DEP-11 64x64@2 Icons [29 B]', 'Get:52 https://mirrors.ustc.edu.cn/ubuntu focal-updates/universe amd64 c-n-f Metadata [20.7 kB]', 'Get:53 https://mirrors.ustc.edu.cn/ubuntu focal-updates/multiverse i386 Packages [8,440 B]', 'Get:54 https://mirrors.ustc.edu.cn/ubuntu focal-updates/multiverse amd64 Packages [24.4 kB]', 'Get:55 https://mirrors.ustc.edu.cn/ubuntu focal-updates/multiverse Translation-en [7,336 B]', 'Get:56 https://mirrors.ustc.edu.cn/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]', 'Get:57 https://mirrors.ustc.edu.cn/ubuntu focal-updates/multiverse DEP-11 48x48 Icons [1,867 B]', 'Get:58 https://mirrors.ustc.edu.cn/ubuntu focal-updates/multiverse DEP-11 64x64 Icons [2,497 B]', 'Get:59 https://mirrors.ustc.edu.cn/ubuntu focal-updates/multiverse DEP-11 64x64@2 Icons [29 B]', 'Get:60 https://mirrors.ustc.edu.cn/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [596 B]', 'Get:61 https://mirrors.ustc.edu.cn/ubuntu focal-backports/main amd64 Packages [44.5 kB]', 'Get:62 https://mirrors.ustc.edu.cn/ubuntu focal-backports/main i386 Packages [35.2 kB]', 'Get:63 https://mirrors.ustc.edu.cn/ubuntu focal-backports/main Translation-en [10.9 kB]', 'Get:64 https://mirrors.ustc.edu.cn/ubuntu focal-backports/main amd64 DEP-11 Metadata [7,964 B]', 'Get:65 https://mirrors.ustc.edu.cn/ubuntu focal-backports/main DEP-11 48x48 Icons [6,974 B]', 'Get:66 https://mirrors.ustc.edu.cn/ubuntu focal-backports/main DEP-11 64x64 Icons [10.5 kB]', 'Get:67 https://mirrors.ustc.edu.cn/ubuntu focal-backports/main DEP-11 64x64@2 Icons [29 B]', 'Get:68 https://mirrors.ustc.edu.cn/ubuntu focal-backports/main amd64 c-n-f Metadata [980 B]', 'Get:69 https://mirrors.ustc.edu.cn/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B]', 'Get:70 https://mirrors.ustc.edu.cn/ubuntu focal-backports/universe amd64 Packages [23.6 kB]', 'Get:71 https://mirrors.ustc.edu.cn/ubuntu focal-backports/universe i386 Packages [13.2 kB]', 'Get:72 https://mirrors.ustc.edu.cn/ubuntu focal-backports/universe Translation-en [15.9 kB]', 'Get:73 https://mirrors.ustc.edu.cn/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30.8 kB]', 'Get:74 https://mirrors.ustc.edu.cn/ubuntu focal-backports/universe DEP-11 48x48 Icons [13.2 kB]', 'Get:75 https://mirrors.ustc.edu.cn/ubuntu focal-backports/universe DEP-11 64x64 Icons [22.6 kB]', 'Get:76 https://mirrors.ustc.edu.cn/ubuntu focal-backports/universe DEP-11 64x64@2 Icons [29 B]', 'Get:77 https://mirrors.ustc.edu.cn/ubuntu focal-backports/universe amd64 c-n-f Metadata [860 B]', 'Get:78 https://mirrors.ustc.edu.cn/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B]', 'Get:79 https://mirrors.ustc.edu.cn/ubuntu focal-security/main i386 Packages [440 kB]', 'Get:80 https://mirrors.ustc.edu.cn/ubuntu focal-security/main amd64 Packages [1,480 kB]', 'Get:81 https://mirrors.ustc.edu.cn/ubuntu focal-security/main Translation-en [255 kB]', 'Get:82 https://mirrors.ustc.edu.cn/ubuntu focal-security/main amd64 DEP-11 Metadata [40.7 kB]', 'Get:83 https://mirrors.ustc.edu.cn/ubuntu focal-security/main DEP-11 48x48 Icons [18.3 kB]', 'Get:84 https://mirrors.ustc.edu.cn/ubuntu focal-security/main DEP-11 64x64 Icons [35.5 kB]', 'Get:85 https://mirrors.ustc.edu.cn/ubuntu focal-security/main DEP-11 64x64@2 Icons [29 B]', 'Get:86 https://mirrors.ustc.edu.cn/ubuntu focal-security/main amd64 c-n-f Metadata [10.4 kB]', 'Get:87 https://mirrors.ustc.edu.cn/ubuntu focal-security/restricted i386 Packages [23.0 kB]', 'Get:88 https://mirrors.ustc.edu.cn/ubuntu focal-security/restricted amd64 Packages [938 kB]', 'Get:89 https://mirrors.ustc.edu.cn/ubuntu focal-security/restricted Translation-en [134 kB]', 'Get:90 https://mirrors.ustc.edu.cn/ubuntu focal-security/restricted amd64 c-n-f Metadata [520 B]', 'Get:91 https://mirrors.ustc.edu.cn/ubuntu focal-security/universe amd64 Packages [703 kB]', 'Get:92 https://mirrors.ustc.edu.cn/ubuntu focal-security/universe i386 Packages [551 kB]', 'Get:93 https://mirrors.ustc.edu.cn/ubuntu focal-security/universe Translation-en [126 kB]', 'Get:94 https://mirrors.ustc.edu.cn/ubuntu focal-security/universe amd64 DEP-11 Metadata [66.4 kB]', 'Get:95 https://mirrors.ustc.edu.cn/ubuntu focal-security/universe DEP-11 48x48 Icons [33.1 kB]', 'Get:96 https://mirrors.ustc.edu.cn/ubuntu focal-security/universe DEP-11 64x64 Icons [71.5 kB]', 'Get:97 https://mirrors.ustc.edu.cn/ubuntu focal-security/universe DEP-11 64x64@2 Icons [29 B]', 'Get:98 https://mirrors.ustc.edu.cn/ubuntu focal-security/universe amd64 c-n-f Metadata [14.4 kB]', 'Get:99 https://mirrors.ustc.edu.cn/ubuntu focal-security/multiverse i386 Packages [7,196 B]', 'Get:100 https://mirrors.ustc.edu.cn/ubuntu focal-security/multiverse amd64 Packages [22.2 kB]', 'Get:101 https://mirrors.ustc.edu.cn/ubuntu focal-security/multiverse Translation-en [5,376 B]', 'Get:102 https://mirrors.ustc.edu.cn/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2,464 B]', 'Get:103 https://mirrors.ustc.edu.cn/ubuntu focal-security/multiverse DEP-11 48x48 Icons [29 B]', 'Get:104 https://mirrors.ustc.edu.cn/ubuntu focal-security/multiverse DEP-11 64x64 Icons [2,638 B]', 'Get:105 https://mirrors.ustc.edu.cn/ubuntu focal-security/multiverse DEP-11 64x64@2 Icons [29 B]', 'Get:106 https://mirrors.ustc.edu.cn/ubuntu focal-security/multiverse amd64 c-n-f Metadata [512 B]', 'Fetched 50.0 MB in 7s (6,861 kB/s)', 'Reading package lists...', 'Building dependency tree...', 'Reading state information...', "3 packages can be upgraded. Run 'apt list --upgradable' to see them."] 镜像修复完成..... Run CMD Task:[sudo apt update] [-]Result:success --upgradable' to see them. Run CMD Task:[sudo apt-cache search curl ] [-]Result:success age retrieves data from url-format files such as http://, ftp://, package:// file://, etc., and loads the data into memory. Run CMD Task:[sudo apt install curl -y] [-]Result:code:100 ython3-rospkg-modules but it is not installabletallablee Run CMD Task:[sudo apt-cache search gnupg2 ] [-]Result:success eplacement (dummy transitional package) Run CMD Task:[sudo apt install gnupg2 -y] [-]Result:code:100 ython3-rospkg-modules but it is not installabletallablee Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add -] [-]Result:code:2 Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add -] [-]Result:code:2 导入密钥失败,开始更换导入方式并二次尝试... Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654] [-]Result:success O/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654 Run CMD Task:[dpkg --print-architecture] [-]Result:success 根据您的系统,为您推荐安装源为['http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/', 'http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/', 'http://packages.ros.org/ros2/ubuntu/'] Run CMD Task:[sudo apt update] [-]Result:success --upgradable' to see them. [1,042 kB] [681 kB]B] Run CMD Task:[sudo apt-cache search ros-base ] [-]Result:success tends 'ros_core' and includes other basic functionalities like tf2 and urdf..namic reconfigure, nodelets, and pluginlib. RUN Choose Task:[请输入括号内的数字] 请选择你要安装的ROS版本名称(请注意ROS1和ROS2区别): [1]:noetic(ROS1) [2]:foxy(ROS2) [3]:galactic(ROS2) [4]:rolling(ROS2) [0]:quit 请输入[]内的数字以选择:2 RUN Choose Task:[请输入括号内的数字] 请选择安装的具体版本(如果不知道怎么选,请选1桌面版): [1]:foxy(ROS2)桌面版 [2]:foxy(ROS2)基础版(小) [0]:quit 请输入[]内的数字以选择:1 Run CMD Task:[sudo apt-cache search aptitude ] [-]Result:success end for Debianfor C++ (development files)sion Run CMD Task:[sudo apt install aptitude -y] [-]Result:code:100 ython3-rospkg-modules but it is not going to be installednstalledd Run CMD Task:[sudo apt-cache search aptitude ] [-]Result:success end for Debianfor C++ (development files)sion Run CMD Task:[sudo apt install aptitude -y] [-]Result:code:100 ython3-rospkg-modules but it is not going to be installednstalledd Run CMD Task:[sudo aptitude install ros-foxy-desktop -y] sudo: aptitude: command not found Run CMD Task:[sudo aptitude install ros-foxy-desktop -y] [-]Result:code:1 Run CMD Task:[sudo apt-cache search python3-colcon-common-extensions ] [-]Result:success ackage aggregating colcon-core and common extensions. Run CMD Task:[sudo apt install python3-colcon-common-extensions -y] [-]Result:code:100 ython3-rospkg-modules but it is not going to be installednstalleddalleded Run CMD Task:[sudo apt-cache search python3-argcomplete ] [-]Result:success for argparse (for Python 3) Run CMD Task:[sudo apt install python3-argcomplete -y] [-]Result:code:100 ython3-rospkg-modules but it is not going to be installednstalledd Run CMD Task:[sudo apt-cache search python3-rosdep ] [-]Result:success anager abstraction tool for ROSPython 3) Run CMD Task:[sudo apt install python3-rosdep -y] [-]Result:code:100 ython3-rospkg-modules but it is not going to be installednstalledd Run CMD Task:[ls /opt/ros/foxy/setup.bash] [-]Result:code:2 安装失败了,请打开鱼香社区:https://fishros.org.cn/forum 在一键安装专区反馈问题... Run CMD Task:[ls /opt/ros/foxy/setup.bash] [-]Result:code:2 欢迎加入机器人学习交流QQ群:139707339(入群口令:一键安装) 如在使用过程中遇到问题,请打开:https://fishros.org.cn/forum 进行反馈
-
@小鱼 感谢,已解决。解决方式记录在此:
使用sudo apt --fix-broken install 发现部分文件包已存在目录下
sudo -i
获取root权限,以使用dpkg
dpkg -i --force-overwrite /var/cache/apt/archives/python3-catkin-pkg-modules_0.5.2-1_all.deb
dpkg -i --force-overwrite /var/cache/apt/archives/python3-rospkg-modules_1.4.0-1_all.deb
dpkg -i --force-overwrite /var/cache/apt/archives/python3-rosdistro-modules_0.8.3-1_all.deb
之后运行 apt --fix-broken install -
-
@小鱼 您好,还是继续报错
yuchenye@ubuntu:~$ apt --fix-broken install E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? yuchenye@ubuntu:~$ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libfprint-2-tod1 libfwupdplugin1 librospack0d linux-headers-5.8.0-50-generic linux-hwe-5.8-headers-5.8.0-50 linux-image-5.8.0-50-generic linux-modules-5.8.0-50-generic linux-modules-extra-5.8.0-50-generic rospack-tools Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: python3-catkin-pkg-modules python3-rosdistro-modules python3-rospkg-modules The following NEW packages will be installed: python3-catkin-pkg-modules python3-rosdistro-modules python3-rospkg-modules 0 upgraded, 3 newly installed, 0 to remove and 6 not upgraded. 1040 not fully installed or removed. Need to get 0 B/99.1 kB of archives. After this operation, 656 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 305867 files and directories currently installed.) Preparing to unpack .../python3-catkin-pkg-modules_0.5.2-1_all.deb ... Unpacking python3-catkin-pkg-modules (0.5.2-1) ... dpkg: error processing archive /var/cache/apt/archives/python3-catkin-pkg-module s_0.5.2-1_all.deb (--unpack): trying to overwrite '/usr/lib/python3/dist-packages/catkin_pkg/__init__.py', wh ich is also in package python3-catkin-pkg 0.4.16-1 Preparing to unpack .../python3-rospkg-modules_1.4.0-1_all.deb ... Unpacking python3-rospkg-modules (1.4.0-1) ... dpkg: error processing archive /var/cache/apt/archives/python3-rospkg-modules_1. 4.0-1_all.deb (--unpack): trying to overwrite '/usr/lib/python3/dist-packages/rospkg/__init__.py', which is also in package python3-rospkg 1.2.3-1 Preparing to unpack .../python3-rosdistro-modules_0.8.3-1_all.deb ... Unpacking python3-rosdistro-modules (0.8.3-1) ... dpkg: error processing archive /var/cache/apt/archives/python3-rosdistro-modules _0.8.3-1_all.deb (--unpack): trying to overwrite '/usr/lib/python3/dist-packages/rosdistro/__init__.py', whi ch is also in package python3-rosdistro 0.8.0-1 Errors were encountered while processing: /var/cache/apt/archives/python3-catkin-pkg-modules_0.5.2-1_all.deb /var/cache/apt/archives/python3-rospkg-modules_1.4.0-1_all.deb /var/cache/apt/archives/python3-rosdistro-modules_0.8.3-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
-
@857548267 记得加sudo,提示没权限
-
@小鱼 您好,在原代码第4行使用了sudo获得了权限。
现在个人初步猜测以下几点:
1是问题出在曾经安装ros被打断
2是python3相关无法安装
感谢 -
@857548267 sudo apt --fix-broken install
接着再用一键安装试试 -
@小鱼 感谢,已解决。解决方式记录在此:
使用sudo apt --fix-broken install 发现部分文件包已存在目录下
sudo -i
获取root权限,以使用dpkg
dpkg -i --force-overwrite /var/cache/apt/archives/python3-catkin-pkg-modules_0.5.2-1_all.deb
dpkg -i --force-overwrite /var/cache/apt/archives/python3-rospkg-modules_1.4.0-1_all.deb
dpkg -i --force-overwrite /var/cache/apt/archives/python3-rosdistro-modules_0.8.3-1_all.deb
之后运行 apt --fix-broken install -
-
-