为 Duckiebot 设置 SD 卡时出错

为 Duckiebot 设置 SD 卡时出错

我在设置 SD 卡时遇到了麻烦。我正在解释一切,以便找到解决方案。

我正在使用 Duckiebot DB21J 和 NVDIA JETSON NANO。
操作系统是 Ubuntu 22.04.4 LTS。

  1. 首先,我拿出 Duckiebot 附带的 SD 卡和适配器。我按照手册开始操作。但下载卡住了,所以我关闭了终端并格式化了 SD 卡。我正试图从德国做这件事。

  2. 现在,当我再次尝试按照手册使用相同方法设置 SD 卡时,我的终端出现错误,错误消息是,

     Archive:  /tmp/duckietown/dts/init_sd_card/dt-nvidia-jetpack-v1.3.0-4gb.zip
       End-of-central-directory signature not found.  Either this file is not
       a zipfile, or it constitutes one disk of a multi-part archive.  In the
       latter case the central directory and zipfile comment will be found on
       the last disk(s) of this archive.
     unzip:  cannot find zipfile directory in one of /tmp/duckietown/dts/init_sd_card/dt-nvidia-jetpack-v1.3.0-4gb.zip or
             /tmp/duckietown/dts/init_sd_card/dt-nvidia-jetpack-v1.3.0-4gb.zip.zip, and cannot find /tmp/duckietown/dts/init_sd_card/dt-nvidia-jetpack-v1.3.0-4gb.zip.ZIP, period.dts :  Traceback (most recent call last):
         :    File "/home/ferdous/.local/lib/python3.10/site-packages/dt_shell/environments.py", line 43, in execute
         :      shell.onecmd(cmdline)
         :    File "/usr/lib/python3.10/cmd.py", line 217, in onecmd
         :      return func(arg)
         :    File "/home/ferdous/.local/lib/python3.10/site-packages/dt_shell/shell.py", line 729, in <lambda>
         :      do_command_lam = lambda s, w: do_command(s, w)
         :    File "/home/ferdous/.local/lib/python3.10/site-packages/dt_shell/commands/commands.py", line 136, in do_command
         :      return descriptor.command.command(shell, args)
         :    File "/home/ferdous/.duckietown/shell/profiles/daffy/commands/duckietown/init_sd_card/command.py", line 349, in command
         :      data.update(step2function[step_name](shell, parsed, data))
         :    File "/home/ferdous/.duckietown/shell/profiles/daffy/commands/duckietown/init_sd_card/command.py", line 440, in step_download
         :      _run_cmd(["unzip", data["disk_zip"], "-d", parsed.workdir])
         :    File "/home/ferdous/.duckietown/shell/profiles/daffy/commands/duckietown/init_sd_card/command.py", line 829, in _run_cmd
         :      subprocess.check_call(cmd, shell=shell, env=env, **outputs)
         :    File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
         :      raise CalledProcessError(retcode, cmd)
         :  subprocess.CalledProcessError: Command '['unzip', '/tmp/duckietown/dts/init_sd_card/dt-nvidia-jetpack-v1.3.0-4gb.zip', '-d', '/tmp/duckietown/dts/init_sd_card']' returned non-zero exit status 9.
         :  dts :  To report a bug, please also include the contents of /home/ferdous/shell-debug-info.txt
    

此时我该怎么办?
如何解决此错误?
我正在寻找解决方案。

相关内容