E:无法找到软件包Ros-Foxy-Desktop'在Windows 10中插入ROS2(WSL2)
我在Windows计算机中安装ROS2。 我正在使用WSL2,Ubuntu 20.04.lts,
sudo apt install ros-foxy-desktop -y
但结果是
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ros-foxy-desktop
如何解决此问题?
I installing ROS2 in the windows computer.
I am using WSL2, Ubuntu 20.04.LTS
sudo apt install ros-foxy-desktop -y
But the results is
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ros-foxy-desktop
How can I fix this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要添加正确的来源,以便APT可以找到该软件包。
这里 - https://docs.ros.orgg/ en/foxy/installation/替代方案/ubuntu-install-binary.html - 您可以看到在安装Foxy之前,您需要至少运行两步。
注意:这些步骤在Ubuntu 22.04上正常工作。不确定约20.04。
You need to add the right sources such that apt can find that package.
here - https://docs.ros.org/en/foxy/Installation/Alternatives/Ubuntu-Install-Binary.html - you can see that you need to run at least two steps before installing foxy.
Note: These steps work fine on ubuntu 22.04. Not sure about 20.04.