小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
windows下安装docker+ROS1,在第一次输入测试(t)命令时报错,无法进入容器
-
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-yaml is already the newest version (3.12-1build2).
python3-distro is already the newest version (1.0.1-2).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
code : Depends: libsecret-1-0 (>= 0.18) but it is not going to be installed
Depends: libxkbfile1 but it is not going to be installed
Depends: xdg-utils (>= 1.0.2) but it is not going to be installed
Recommends: libvulkan1 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
--2023-05-31 17:39:13-- 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: 42293 (41K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/base.py’/tmp/fishinstall/tools/base 100%[===========================================>] 41.30K --.-KB/s in 0.08s
2023-05-31 17:39:13 (537 KB/s) - ‘/tmp/fishinstall/tools/base.py’ saved [42293/42293]
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上使用的微信)
[11]:一键安装:ROS+Docker(支持所有版本ROS/ROS2)
[12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot)
[77]:测试模式:运行自定义工具测试
[0]:quit
请输入[]内的数字以选择:11
--2023-05-31 17:39:19-- http://fishros.com/install/install1s/tools/tool_install_ros_with_docker.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: 11540 (11K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_install_ros_with_docker.py’/tmp/fishinstall/tools/tool 100%[===========================================>] 11.27K --.-KB/s in 0.006s
2023-05-31 17:39:20 (1.97 MB/s) - ‘/tmp/fishinstall/tools/tool_install_ros_with_docker.py’ saved [11540/11540]
--2023-05-31 17:39:20-- http://fishros.com/install/install1s/tools/tool_install_vscode.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: 1366 (1.3K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_install_vscode.py’/tmp/fishinstall/tools/tool 100%[===========================================>] 1.33K --.-KB/s in 0s
2023-05-31 17:39:20 (316 MB/s) - ‘/tmp/fishinstall/tools/tool_install_vscode.py’ saved [1366/1366]
--2023-05-31 17:39:20-- http://fishros.com/install/install1s/tools/tool_install_docker.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: 2882 (2.8K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_install_docker.py’/tmp/fishinstall/tools/tool 100%[===========================================>] 2.81K --.-KB/s in 0.002s
2023-05-31 17:39:20 (1.30 MB/s) - ‘/tmp/fishinstall/tools/tool_install_docker.py’ saved [2882/2882]
欢迎使用一键安装ROS-Docker版,支持所有版本ROS,本工具由作者小鱼提供
================================1.版本选择======================================
RUN Choose Task:[请输入括号内的数字]
请选择你要安装的ROS版本名称(请注意ROS1和ROS2区别):
[1]:noetic
[2]:humble
[3]:foxy
[4]:galactic
[5]:melodic
[6]:rolling
[7]:kinetic
[8]:eloquent
[9]:dashing
[10]:crystal
[11]:bouncy
[12]:ardent
[13]:lunar
[14]:indigo
[0]:quit
请输入[]内的数字以选择:5
你选择了melodic(ROS1),该版本目前状态:长期支持
================================2.安装Docker======================================
Run CMD Task:[docker version]
[-]Result:success a0e4e17bddfbd388f38=================3.下载镜像(该步骤因网络原因会慢一些,若失败请重试)==================
Run CMD Task:[sudo docker pull fishros2/ros:melodic-desktop-full ]
melodic-desktop-full: Pulling from fishros2/ros
Digest: sha256:3d95b89365e60cf96696288f32816e2324fd8c891d379f0e8fae62b08a22e763
Status: Image is up to date for fishros2/ros:melodic-desktop-full
docker.io/fishros2/ros:melodic-desktop-full
Run CMD Task:[sudo docker pull fishros2/ros:melodic-desktop-full ]
melodic-desktop-full: Pulling from fishros2/ros
Digest: sha256:3d95b89365e60cf96696288f32816e2324fd8c891d379f0e8fae62b08a22e763
Status: Image is up to date for fishros2/ros:melodic-desktop-full
docker.io/fishros2/ros:melodic-desktop-full
Run CMD Task:[sudo docker pull fishros2/ros:melodic-desktop-full ]
melodic-desktop-full: Pulling from fishros2/ros
Digest: sha256:3d95b89365e60cf96696288f32816e2324fd8c891d379f0e8fae62b08a22e763
Status: Image is up to date for fishros2/ros:melodic-desktop-full
docker.io/fishros2/ros:melodic-desktop-full
================================4.生成容器======================================
请为你的melodic容器取个名字吧!melodic1
收到名字melodic1
Run CMD Task:[users]
[-]Result:success请手动输入你的用户名>>aurora_borealis
Run CMD Task:[sudo docker run -dit --name=melodic1 -v /home/aurora_borealis:/home/aurora_borealis -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/dri:/dev/dri --device /dev/snd -e DISPLAY=unix$DISPLAY -w /home/aurora_borealis fishros2/ros:melodic-desktop-full]
docker: Error response from daemon: Conflict. The container name "/melodic1" is already in use by container "85d2d1bf520e063bfa1e6ec0175d4894ce2fe0cafb3b2f25b4764bf6ae791f08". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
Run CMD Task:[docker exec -it melodic1 /bin/bash -c "echo -e '
source /opt/ros/melodic/setup.bash' >> ~/.bashrc" ]
Error response from daemon: Container 85d2d1bf520e063bfa1e6ec0175d4894ce2fe0cafb3b2f25b4764bf6ae791f08 is not running
Run CMD Task:[xhost +local:]
sh: 1: xhost: not found
================================5.生成命令======================================
Run CMD Task:[users]
[-]Result:success请手动输入你的用户名>>aurora_borealis
Run CMD Task:[sudo chmod 777 /home/aurora_borealis/.fishros/bin/melodic1]
================================6.生成使用工具======================================
RUN Choose Task:[请输入括号内的数字]
为方便后续使用容器,请选择使用方式,若不知道怎么选,推荐套餐1,若不需要则可以选退出:
[1]:套餐1:VsCode+插件(本地使用推荐)
[2]:套餐2:SSH-Service(远程使用推荐)
[0]:quit
请输入[]内的数字以选择:1
套餐1包含Vscode及其容器插件,开始安装。。
欢迎使用一键安装Vscode,本工具由作者小鱼提供
开始根据系统架构,为你下载对应版本的vscode~
Run CMD Task:[sudo wget http://vscode.cdn.azure.cn/stable/6261075646f055b99068d3688932416f2346dd3b/code_1.73.1-1667967334_amd64.deb -O /tmp/vscode.deb]
--2023-05-31 17:42:54-- http://vscode.cdn.azure.cn/stable/6261075646f055b99068d3688932416f2346dd3b/code_1.73.1-1667967334_amd64.deb
Resolving vscode.cdn.azure.cn (vscode.cdn.azure.cn)... 222.199.191.35
Connecting to vscode.cdn.azure.cn (vscode.cdn.azure.cn)|222.199.191.35|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 96706580 (92M) [application/octet-stream]
Saving to: ‘/tmp/vscode.deb’/tmp/vscode.deb 100%[=================================================>] 92.23M 9.78MB/s in 9.9s
2023-05-31 17:43:05 (9.34 MB/s) - ‘/tmp/vscode.deb’ saved [96706580/96706580]
下载完成,接下来为你安装Vscode~
Run CMD Task:[sudo dpkg -i /tmp/vscode.deb]
[-]Result:code:1 (1.9-2) .....7334) ...stalled.)Run CMD Task:[rm -rf /tmp/vscode.deb]
[-]Result:success安装完成~
Run CMD Task:[code --install-extension ms-vscode-remote.remote-containers --user-data-dir]
sh: 1: code: not found
===========================后续使用指令=================================
后续可在任意终端输入melodic1来启动/停止/测试/删除容器
==============================文件存储位置===============================
你的主目录已经和容器的对应目录做了映射
==============================问题反馈&&更新讨论=============================
请访问社区的一键安装版块:https://fishros.org.cn/forum/topic/112
欢迎加入机器人学习交流QQ群:438144612(入群口令:一键安装)
鱼香小铺正式开业,最低499可入手一台能建图会导航的移动机器人,淘宝搜店:鱼香ROS 或打开链接查看:https://item.taobao.com/item.htm?id=696573635888
如在使用过程中遇到问题,请打开:https://fishros.org.cn/forum 进行反馈
aurora_borealis@DESKTOP-4KV591G:~$ melodic1
/home/aurora_borealis/.fishros/bin/melodic1: line 1: xhost: command not found
请输入指令控制melodic1: 重启(r) 进入(e) 启动(s) 关闭(c) 删除(d) 测试(t):
t
Error response from daemon: Container 85d2d1bf520e063bfa1e6ec0175d4894ce2fe0cafb3b2f25b4764bf6ae791f08 is not running
查看过melodic1这个容器,他没有ports
请问一下怎么解决,谢谢!
我是在unbuntu18.04的终端运行的: