gpt4 book ai didi

ubuntu - 找不到 ROS 包

转载 作者:行者123 更新时间:2023-12-04 19:24:15 27 4
gpt4 key购买 nike

我无法通过本教程安装 ROS 软件包 https://nxp.gitbook.io/nxp-aim/installation-of-nxp-gazebo

$ ./foxy_install_aim.sh
给出以下错误
    Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.81.0-1ubuntu1.2).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
Hit:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:5 http://packages.ros.org/ros2/ubuntu jammy InRelease
Fetched 110 kB in 2s (52.0 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: http://packages.ros.org/ros2/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'xorg' instead of 'x-window-system'
E: Unable to locate package gazebo11
E: Unable to locate package libgazebo11-dev
E: Unable to locate package ros-foxy-ros-base
E: Unable to locate package ros-foxy-desktop
E: Unable to locate package ros-foxy-cv-bridge
E: Unable to locate package ros-foxy-image-tools
E: Unable to locate package ros-foxy-image-transport
E: Unable to locate package ros-foxy-image-transport-plugins
E: Unable to locate package ros-foxy-image-pipeline
E: Unable to locate package ros-foxy-camera-calibration-parsers
E: Unable to locate package ros-foxy-camera-info-manager
E: Unable to locate package ros-foxy-launch-testing-ament-cmake
E: Unable to locate package ros-foxy-cv-bridge
E: Unable to locate package ros-foxy-vision-opencv
E: Unable to locate package ros-foxy-gazebo-dev
E: Unable to locate package ros-foxy-gazebo-msgs
E: Unable to locate package ros-foxy-gazebo-msgs-dbgsym
E: Unable to locate package ros-foxy-gazebo-plugins
E: Unable to locate package ros-foxy-gazebo-plugins-dbgsym
E: Unable to locate package ros-foxy-gazebo-ros
E: Unable to locate package ros-foxy-gazebo-ros2-control
E: Unable to locate package ros-foxy-gazebo-ros2-control-dbgsym
E: Unable to locate package ros-foxy-gazebo-ros2-control-demos
E: Unable to locate package ros-foxy-gazebo-ros2-control-demos-dbgsym
E: Unable to locate package ros-foxy-gazebo-ros-dbgsym
E: Unable to locate package ros-foxy-gazebo-ros-pkgs
E: Unable to locate package ros-foxy-vision-msgs
E: Unable to locate package ros-foxy-vision-msgs-dbgsym
sudo: geographiclib-get-geoids: command not found
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
./foxy_install_aim.sh: line 41: /opt/ros/foxy/setup.bash: No such file or directory
带有“E:”的部分看起来像是错误,但我不确定我应该如何修复这些。

最佳答案

也许您在 apt 配置中缺少一些资源。

From ros official documentation - https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html


设置来源
您需要将 ROS 2 apt 存储库添加到您的系统。
首先,确保 Ubuntu Universe 存储库由
检查此命令的输出。
apt-cache policy | grep universe
这应该输出如下一行:
500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
release v=20.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=universe,b=amd64
如果您没有看到上述输出行,请使用以下说明启用 Universe 存储库:
sudo apt install software-properties-common
sudo add-apt-repository universe
现在将 ROS 2 apt 存储库添加到您的系统。
sudo apt update && sudo apt install curl gnupg2 lsb-release
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
然后将存储库添加到您的源列表。
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(source /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
设置存储库后更新您的 apt 存储库缓存。
sudo apt update

关于ubuntu - 找不到 ROS 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72591758/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com