小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
multipass中使用ubuntu22.04进行一键安装失败
-
进行一键ros2的时候,按照如下步骤
[1]:humble(ROS2)
[2]:rolling(ROS2)
[0]:quit
请输入[]内的数字以选择:1
RUN Choose Task:[请输入括号内的数字]
请选择安装的具体版本(如果不知道怎么选,请选1桌面版):
[1]:humble(ROS2)桌面版
[2]:humble(ROS2)基础版(小)
[0]:quit
请输入[]内的数字以选择:1出现如下信息
Run CMD Task:[ls /opt/ros/humble/setup.bash]
[-]Result:code:2希望提供了有用的信息
-
@老王 出现错误的地方是在apt install 指令的时候,需要你提供全部的终端日志打印数据才能判断问题。可以贴一个出来
-
*** 出错日志 ***
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:success e and 2 not upgraded.Run CMD Task:[sudo apt-cache search python3-rosdep ]
[]python3-rosdep2 - rosdep package manager abstraction tool for Robot OS (Pytho[-]Result:success anager abstraction tool for ROSRun CMD Task:[sudo apt install python3-rosdep -y]
[]Get:1 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main arm64 python[|]Get:2 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main arm64 python[-]Get:3 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main arm64 python[/]Get:4 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main arm64 python[]Get:5 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main arm64 python[|]Get:6 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main arm64 python[-]Get:7 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main arm64 python[-]Result:success -1) .....all.deb ....deb .....Run CMD Task:[ls /opt/ros/humble/setup.bash]
[-]Result:code:2*** 不知道是否提供了有用的信息 ***
-
@老王 依然不是这一段,还在最上面,apt install ros-xxx的时候
-
@小鱼
*** 我看到这里面有一个error ***
Run CMD Task:[sudo apt install ros-humble-desktop -y]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:The following packages have unmet dependencies:
libudev-dev : Depends: libudev1 (= 249.11-0ubuntu3) but 249.11-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.
Run CMD Task:[sudo aptitude install ros-humble-desktop -y]希望提供了有用的信息
-
@老王 在 multipass中使用ubuntu22.04进行一键安装失败 中说:
sudo aptitude install ros-humble-desktop
找到了,在这里,最近遇到发生这个问题频率越来越高了。
你手动的在终端中输入上面的指令,它会提供几个解决方案给你,先尝试第一个,不行输入n,它会提供下一个解决方案。
-
@小鱼 已经完成安装,尝试到了第二次的时候安装成功
The following actions will resolve these dependencies: Remove the following packages: 1) systemd-timesyncd [249.11-0ubuntu3.1 (now)] Install the following packages: 2) gir1.2-ibus-1.0 [1.5.26-4 (jammy)] 3) libasound2-dev [1.2.6.1-1ubuntu1 (jammy)] 4) libasyncns0 [0.8-6build2 (jammy)] 5) libblkid-dev [2.37.2-4ubuntu3 (jammy)] 6) libdbus-1-dev [1.12.20-2ubuntu4 (jammy)] 7) libdecor-0-0 [0.1.0-3build1 (jammy)] 8) libdecor-0-plugin-1-cairo [0.1.0-3build1 (jammy)] 9) libegl1-mesa-dev [22.0.1-1ubuntu2.1 (jammy-updates)] 10) libffi-dev [3.4.2-4 (jammy)] 11) libflac8 [1.3.3-2build2 (jammy)] 12) libglib2.0-dev [2.72.1-1 (jammy)] 13) libglib2.0-dev-bin [2.72.1-1 (jammy)] 14) libibus-1.0-5 [1.5.26-4 (jammy)] 15) libibus-1.0-dev [1.5.26-4 (jammy)] 16) libmount-dev [2.37.2-4ubuntu3 (jammy)] 17) libpcre16-3 [2:8.39-13ubuntu0.22.04.1 (jammy-security, jammy-updates)] 18) libpcre3-dev [2:8.39-13ubuntu0.22.04.1 (jammy-security, jammy-updates)] 19) libpcre32-3 [2:8.39-13ubuntu0.22.04.1 (jammy-security, jammy-updates)] 20) libpcrecpp0v5 [2:8.39-13ubuntu0.22.04.1 (jammy-security, jammy-updates)] 21) libpulse-dev [1:15.99.1+dfsg1-1ubuntu1 (jammy)] 22) libpulse-mainloop-glib0 [1:15.99.1+dfsg1-1ubuntu1 (jammy)] 23) libpulse0 [1:15.99.1+dfsg1-1ubuntu1 (jammy)] 24) libsdl2-2.0-0 [2.0.20+dfsg-2build1 (jammy)] 25) libsdl2-dev [2.0.20+dfsg-2build1 (jammy)] 26) libselinux1-dev [3.3-1build2 (jammy)] 27) libsepol-dev [3.3-1build1 (jammy)] 28) libsndfile1 [1.0.31-2build1 (jammy)] 29) libsndio-dev [1.8.1-1.1 (jammy)] 30) libsndio7.0 [1.8.1-1.1 (jammy)] 31) libudev-dev [249.11-0ubuntu3.3 (jammy-updates)] 32) libwayland-bin [1.20.0-1 (jammy)] 33) libwayland-dev [1.20.0-1 (jammy)] 34) libxcursor-dev [1:1.2.0-2build4 (jammy)] 35) libxfixes-dev [1:6.0.0-1 (jammy)] 36) libxi-dev [2:1.8-1build1 (jammy)] 37) libxinerama-dev [2:1.1.4-3 (jammy)] 38) libxkbcommon-dev [1.4.0-1 (jammy)] 39) libxv-dev [2:1.0.11-1build2 (jammy)] 40) libxxf86vm-dev [1:1.1.4-1build3 (jammy)] 41) openntpd [1:6.2p3-4.2 (jammy)] 42) ros-humble-joy [3.1.0-3jammy.20220607.135440 (jammy)] 43) ros-humble-sdl2-vendor [3.1.0-3jammy.20220520.000015 (jammy)] 44) ros-humble-teleop-twist-joy [2.4.3-4jammy.20220607.135737 (jammy)] Upgrade the following packages: 45) libnss-systemd [249.11-0ubuntu3.1 (now) -> 249.11-0ubuntu3.3 (jammy-updates)] 46) libpam-systemd [249.11-0ubuntu3.1 (now) -> 249.11-0ubuntu3.3 (jammy-updates)] 47) libsystemd0 [249.11-0ubuntu3.1 (now) -> 249.11-0ubuntu3.3 (jammy-updates)] 48) libudev1 [249.11-0ubuntu3.1 (now) -> 249.11-0ubuntu3.3 (jammy-updates)] 49) systemd [249.11-0ubuntu3.1 (now) -> 249.11-0ubuntu3.3 (jammy-updates)] 50) systemd-sysv [249.11-0ubuntu3.1 (now) -> 249.11-0ubuntu3.3 (jammy-updates)] 51) udev [249.11-0ubuntu3.1 (now) -> 249.11-0ubuntu3.3 (jammy-updates)] Accept this solution? [Y/n/q/?] Y
-