鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    docker安装出现问题:检测到本次运行出现失败命令

    已定时 已固定 已锁定 已移动
    一键安装
    一键安装 docker
    2
    2
    327
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • A
      anvalue
      最后由 编辑

      错误日志上传成功,反馈码: 1732334442

      shine@shine:~$ wget http://fishros.com/install -O fishros && . fishros
      --2024-11-23 11:57:42-- http://fishros.com/install
      Resolving fishros.com (fishros.com)... 47.119.165.169
      Connecting to fishros.com (fishros.com)|47.119.165.169|:80... connected.
      HTTP request sent, awaiting response... 301 Moved Permanently
      Location: http://fishros.com/install/ [following]
      --2024-11-23 11:57:43-- http://fishros.com/install/
      Reusing existing connection to fishros.com:80.
      HTTP request sent, awaiting response... 200 OK
      Length: 387 [application/octet-stream]
      Saving to: ‘fishros’

      fishros 100%[===================>] 387 --.-KB/s in 0s

      2024-11-23 11:57:43 (136 MB/s) - ‘fishros’ saved [387/387]

      [sudo] password for shine:
      E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
      E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
      --2024-11-23 11:57:47-- http://mirror.fishros.com/install/tools/base.py
      Resolving mirror.fishros.com (mirror.fishros.com)... 47.119.165.169
      Connecting to mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 51464 (50K) [application/octet-stream]
      Saving to: ‘/tmp/fishinstall//tools/base.py’

      /tmp/fishinstall//t 100%[===================>] 50.26K --.-KB/s in 0.09s

      2024-11-23 11:57:47 (549 KB/s) - ‘/tmp/fishinstall//tools/base.py’ saved [51464/51464]

      Run CMD Task:[dpkg --print-architecture]
      [-][0.00s] CMD Result:success

      Run CMD Task:[wget http://mirror.fishros.com/install/tools/translation/translator.py -O /tmp/fishinstall//tools/translation/translator.py --no-check-certificate]
      [/][0.00s] --2024-11-23 11:57:48-- http://mirror.fishros.com/install/tools/tran[|][0.10s] Connecting to mirror.fishros.com (mirror.fishros.com)|47.119.165.169|[-][0.10s] CMD Result:success

      Run CMD Task:[wget http://mirror.fishros.com/install/tools/translation/assets/zh_CN.py -O /tmp/fishinstall//tools/translation/assets/zh_CN.py --no-check-certificate]
      [/][0.00s] --2024-11-23 11:57:49-- http://mirror.fishros.com/install/tools/tran[|][0.08s] Connecting to mirror.fishros.com (mirror.fishros.com)|47.119.165.169|[-][0.08s] CMD Result:success

      Run CMD Task:[wget http://mirror.fishros.com/install/tools/translation/assets/en_US.py -O /tmp/fishinstall//tools/translation/assets/en_US.py --no-check-certificate]
      [/][0.00s] --2024-11-23 11:57:49-- http://mirror.fishros.com/install/tools/tran[|][0.10s] Connecting to mirror.fishros.com (mirror.fishros.com)|47.119.165.169|[-][0.10s] CMD Result:success

      Run CMD Task:[wget https://fishros.org.cn/forum/topic/1733 -O /tmp/t1733 -q --timeout 10 && rm -rf /tmp/t1733]
      [-][0.00s] CMD Result:code:4

      已为您切换语言至当前所在国家语言:zh_CN
      基础检查通过...

      ======欢迎使用一键安装工具,人生苦短,三省吾身,省时省力省心!=======
      ======一键安装已开源,请放心使用:https://github.com/fishros/install =======

                          .-~~~~~~~~~-._       _.-~~~~~~~~~-.
                      __.'              ~.   .~              `.__
                  .'//     开卷有益        \./     书山有路     \ `.
                  .'// 可以多看看小鱼的文章   |    关注公众号鱼香ROS  \ `.
              .'// .-~~~~~~~~~~~~~~-._     |     _,-~~~~~~~~~~~. \`.
              .'//.-"                 `-.  |  .-'                 "-.\`.
          .'//______.============-..   \ | /   ..-============.______\`.
          .'______________________________\|/______________________________`
          ----------------------------------------------------------------------
      

      RUN Choose Task:[请输入括号内的数字]
      ---众多工具,等君来用---
      ROS相关:
      [1]:一键安装(推荐):ROS(支持ROS/ROS2,树莓派Jetson)
      [3]:一键安装:rosdep(小鱼的rosdepc,又快又好用)
      [4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)
      [9]:一键安装:Cartographer(18 20测试通过,16未测. updateTime 20240125)
      [11]:一键安装:ROS Docker版(支持所有版本ROS/ROS2)
      [16]:一键安装:系统自带ROS (!!警告!!仅供特殊情况下使用)

      常用软件:
      [2]:一键安装:github桌面版(小鱼常用的github客户端)
      [6]:一键安装:NodeJS环境
      [7]:一键安装:VsCode开发工具
      [8]:一键安装:Docker
      [10]:一键安装:微信(可以在Linux上使用的微信)
      [12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot)
      [14]:一键安装:科学上网代理工具
      [15]:一键安装:QQ for Linux

      配置工具:
      [5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统)
      [13]:一键配置:python国内源
      [17]:一键配置: Docker代理(支持VPN+代理服务两种模式)

      请输入[]内的数字以选择:8
      Run CMD Task:[wget http://mirror.fishros.com/install/tools/tool_install_docker.py -O /tmp/fishinstall/tools/tool_install_docker.py --no-check-certificate]
      [/][0.00s] --2024-11-23 11:59:43-- http://mirror.fishros.com/install/tools/tool[|][0.10s] Connecting to mirror.fishros.com (mirror.fishros.com)|47.119.165.169|[-][0.10s] CMD Result:success

      欢迎使用一键安装Docker,支持amd64和arm64架构系统,本工具由作者alyssa提供
      开始根据系统架构,为你下载对应版本的docker~
      Run CMD Task:[sudo apt update]
      [][1.27s] Hit:2 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu bionic InReleas[-][3.25s] CMD Result:success hem.

      Run CMD Task:[apt-get update]
      Ign:1 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic InRelease
      Hit:2 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu bionic InRelease
      Hit:3 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release
      Hit:5 https://mirrors.ustc.edu.cn/ubuntu bionic InRelease
      Hit:6 https://mirrors.ustc.edu.cn/ubuntu bionic-updates InRelease
      Hit:7 https://mirrors.ustc.edu.cn/ubuntu bionic-backports InRelease
      Hit:8 https://mirrors.ustc.edu.cn/ubuntu bionic-security InRelease
      Reading package lists... Done
      Run CMD Task:[DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates curl ]
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      ca-certificates is already the newest version (20230311ubuntu0.18.04.1).
      curl is already the newest version (7.58.0-2ubuntu3.24).
      The following packages were automatically installed and are no longer required:
      gir1.2-goa-1.0 gir1.2-snapd-1
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 51 not upgraded.
      Run CMD Task:[install -m 0755 -d /etc/apt/keyrings]
      Run CMD Task:[curl -fsSL "https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu/gpg" -o /etc/apt/keyrings/docker.asc]
      Run CMD Task:[chmod a+r /etc/apt/keyrings/docker.asc]
      Run CMD Task:[echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list]
      下载完成,接下来升级apt索引~
      Run CMD Task:[apt-get update ]
      Ign:1 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic InRelease
      Hit:2 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu bionic InRelease
      Hit:3 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release
      Get:4 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu bionic InRelease [64.4 kB]
      Hit:6 https://mirrors.ustc.edu.cn/ubuntu bionic InRelease
      Get:7 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packages [39.0 kB]
      Hit:8 https://mirrors.ustc.edu.cn/ubuntu bionic-updates InRelease
      Hit:9 https://mirrors.ustc.edu.cn/ubuntu bionic-backports InRelease
      Hit:10 https://mirrors.ustc.edu.cn/ubuntu bionic-security InRelease
      Fetched 103 kB in 0s (359 kB/s)
      Reading package lists... Done
      开始安装最新版本docker CE~
      Run CMD Task:[DEBIAN_FRONTEND=noninteractive apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin]
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
      gir1.2-goa-1.0 gir1.2-snapd-1
      Use 'sudo apt autoremove' to remove them.
      The following additional packages will be installed:
      git git-man liberror-perl pigz
      Suggested packages:
      aufs-tools cgroupfs-mount | cgroup-lite git-daemon-run | git-daemon-sysvinit
      git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
      Recommended packages:
      slirp4netns
      The following NEW packages will be installed:
      containerd.io docker-buildx-plugin docker-ce docker-ce-cli
      docker-ce-rootless-extras docker-compose-plugin git git-man liberror-perl
      pigz
      0 upgraded, 10 newly installed, 0 to remove and 51 not upgraded.
      Need to get 115 MB of archives.
      After this operation, 435 MB of additional disk space will be used.
      Get:1 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 containerd.io amd64 1.6.21-1 [28.3 MB]
      Get:2 https://mirrors.ustc.edu.cn/ubuntu bionic/universe amd64 pigz amd64 2.4-1 [57.4 kB]
      Get:3 https://mirrors.ustc.edu.cn/ubuntu bionic/main amd64 liberror-perl all 0.17025-1 [22.8 kB]
      Get:4 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/main amd64 git-man all 1:2.17.1-1ubuntu0.18 [804 kB]
      Get:5 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/main amd64 git amd64 1:2.17.1-1ubuntu0.18 [3,990 kB]
      Get:6 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 docker-buildx-plugin amd64 0.10.5-1~ubuntu.18.04~bionic [26.1 MB]
      Get:7 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 docker-ce-cli amd64 5:24.0.2-1~ubuntu.18.04~bionic [13.3 MB]
      Get:8 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 docker-ce amd64 5:24.0.2-1~ubuntu.18.04~bionic [22.9 MB]
      Get:9 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 docker-ce-rootless-extras amd64 5:24.0.2-1~ubuntu.18.04~bionic [9,014 kB]
      Get:10 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 docker-compose-plugin amd64 2.18.1-1~ubuntu.18.04~bionic [10.9 MB]
      Fetched 115 MB in 18s (6,344 kB/s)
      Selecting previously unselected package pigz.
      (Reading database ... 252213 files and directories currently installed.)
      Preparing to unpack .../0-pigz_2.4-1_amd64.deb ...
      Unpacking pigz (2.4-1) ...
      Selecting previously unselected package containerd.io.
      Preparing to unpack .../1-containerd.io_1.6.21-1_amd64.deb ...
      Unpacking containerd.io (1.6.21-1) ...
      Selecting previously unselected package docker-buildx-plugin.
      Preparing to unpack .../2-docker-buildx-plugin_0.10.5-1~ubuntu.18.04~bionic_amd64.deb ...
      Unpacking docker-buildx-plugin (0.10.5-1~ubuntu.18.04~bionic) ...
      Selecting previously unselected package docker-ce-cli.
      Preparing to unpack .../3-docker-ce-cli_5%3a24.0.2-1~ubuntu.18.04~bionic_amd64.deb ...
      Unpacking docker-ce-cli (5:24.0.2-1~ubuntu.18.04~bionic) ...
      Selecting previously unselected package docker-ce.
      Preparing to unpack .../4-docker-ce_5%3a24.0.2-1~ubuntu.18.04~bionic_amd64.deb ...
      Unpacking docker-ce (5:24.0.2-1~ubuntu.18.04~bionic) ...
      Selecting previously unselected package docker-ce-rootless-extras.
      Preparing to unpack .../5-docker-ce-rootless-extras_5%3a24.0.2-1~ubuntu.18.04~bionic_amd64.deb ...
      Unpacking docker-ce-rootless-extras (5:24.0.2-1~ubuntu.18.04~bionic) ...
      Selecting previously unselected package docker-compose-plugin.
      Preparing to unpack .../6-docker-compose-plugin_2.18.1-1~ubuntu.18.04~bionic_amd64.deb ...
      Unpacking docker-compose-plugin (2.18.1-1~ubuntu.18.04~bionic) ...
      Selecting previously unselected package liberror-perl.
      Preparing to unpack .../7-liberror-perl_0.17025-1_all.deb ...
      Unpacking liberror-perl (0.17025-1) ...
      Selecting previously unselected package git-man.
      Preparing to unpack .../8-git-man_1%3a2.17.1-1ubuntu0.18_all.deb ...
      Unpacking git-man (1:2.17.1-1ubuntu0.18) ...
      Selecting previously unselected package git.
      Preparing to unpack .../9-git_1%3a2.17.1-1ubuntu0.18_amd64.deb ...
      Unpacking git (1:2.17.1-1ubuntu0.18) ...
      Setting up git-man (1:2.17.1-1ubuntu0.18) ...
      Setting up containerd.io (1.6.21-1) ...
      Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
      Setting up liberror-perl (0.17025-1) ...
      Setting up docker-ce-rootless-extras (5:24.0.2-1~ubuntu.18.04~bionic) ...
      Setting up docker-buildx-plugin (0.10.5-1~ubuntu.18.04~bionic) ...
      Setting up docker-compose-plugin (2.18.1-1~ubuntu.18.04~bionic) ...
      Setting up docker-ce-cli (5:24.0.2-1~ubuntu.18.04~bionic) ...
      Setting up pigz (2.4-1) ...
      Setting up git (1:2.17.1-1ubuntu0.18) ...
      Setting up docker-ce (5:24.0.2-1~ubuntu.18.04~bionic) ...
      Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
      Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
      Processing triggers for systemd (237-3ubuntu10.57) ...
      Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
      Processing triggers for ureadahead (0.100.0-21) ...
      Run CMD Task:[sudo groupadd docker]
      groupadd: group 'docker' already exists
      Run CMD Task:[sudo gpasswd -a shine docker]
      Adding user shine to group docker
      Run CMD Task:[sudo gpasswd -a root docker]
      Adding user root to group docker
      安装完成,接下来你可以尝试使用docker --version指令测试是有正常回显~
      欢迎加入机器人学习交流QQ群:438144612(入群口令:一键安装)
      鱼香小铺正式开业,最低499可入手一台能建图会导航的移动机器人,淘宝搜店:鱼香ROS 或打开链接查看:https://item.taobao.com/item.htm?id=696573635888
      如在使用过程中遇到问题,请打开:https://fishros.org.cn/forum 进行反馈

      1 条回复 最后回复 回复 引用 0
      • 小伊小
        机器人小伊
        最后由 编辑

        根据您提供的日志信息,Docker 的安装过程中出现了几个关键步骤和反馈,我们可以逐一分析并解决问题:

        1. dpkg 锁文件错误:
          在安装过程中,您遇到了一个 dpkg 锁文件错误:

          E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
          E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
          

          这个错误通常发生在有另一个 apt 或 dpkg 进程正在运行时。确保没有其他的包管理器操作正在进行,或者等待之前的操作完成后再继续。您可以通过 ps aux | grep apt 或 ps aux | grep dpkg 来检查是否有相关的进程正在运行。

        2. Docker 安装成功:
          日志中显示 Docker 相关的包已经成功安装,并且创建了必要的 systemd 服务和套接字:

          Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
          Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
          

          这表明 Docker 服务应该已经可以被启动和使用了。

        3. 用户添加到 Docker 组:
          您已经被添加到 docker 组中,这使得您可以无需使用 sudo 来运行 Docker 命令。但是,如果您在添加用户到组之后立即尝试运行 Docker 命令,可能需要注销并重新登录,或者重新启动会话,以确保组更改生效。

        4. 测试 Docker 安装:
          您可以通过运行 docker --version 来验证 Docker 是否正确安装。如果返回了 Docker 的版本号,说明安装成功。

        5. 后续步骤:

          • 尝试重新启动您的计算机,以确保所有更改都已生效。
          • 运行 docker --version 检查 Docker 是否正常工作。
          • 如果 Docker 命令仍然需要 sudo,请确保您已经注销并重新登录,或者您的会话已经重新加载了组信息。
        6. 其他问题:

          • 如果您在安装或配置 Docker 时遇到任何问题,可以检查 Docker 的日志文件,通常位于 /var/log/syslog 或使用 journalctl -u docker.service 来查看。
          • 确保您的系统满足 Docker 的所有依赖和硬件要求。

        如果在执行这些步骤后仍然遇到问题,请提供更多信息,以便进一步诊断问题。


        以上为生成回答,仅供参考~

        我是小伊,已接入ChatGpt,所有回复,仅供参考~

        1 条回复 最后回复 回复 引用 0
        • 第一个帖子
          最后一个帖子
        皖ICP备16016415号-7
        Powered by NodeBB | 鱼香ROS