AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1447829
Accepted
mLstudent33
mLstudent33
Asked: 2022-12-30 02:50:27 +0800 CST2022-12-30 02:50:27 +0800 CST 2022-12-30 02:50:27 +0800 CST

如何在 Virtualbox 上为 Edx Stanford 编译器课程设置 Ubuntu 18.04 VM

  • 772

https://courses.edx.org/courses/course-v1:StanfordOnline+SOE.YCSCS1+3T2020/6b750292e90d4950b895f621a5671b49/

我正在尝试解压下载的包,但一直失败。

nyck33@nyck33-VirtualBox:/usr/class$ wget https://courses.edx.org/asset-v1:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected]
--2022-12-29 19:45:59--  https://courses.edx.org/asset-v1:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected]
Resolving courses.edx.org (courses.edx.org)... 104.16.177.84, 104.16.178.84, 104.16.179.84, ...
Connecting to courses.edx.org (courses.edx.org)|104.16.177.84|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5773538 (5.5M) [application/x-gzip]
Saving to: ‘asset-v1:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected]’

asset-v1:StanfordOnlin 100%[=========================>]   5.51M  2.59MB/s    in 2.1s    

2022-12-29 19:46:03 (2.59 MB/s) - ‘asset-v1:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected]’ saved [5773538/5773538]

nyck33@nyck33-VirtualBox:/usr/class$ ls
asset-v1:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected]
asset-v1:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected]
nyck33@nyck33-VirtualBox:/usr/class$ tar -xf asset-v1:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected]
tar: Cannot connect to [email protected]: resolve failed
nyck33@nyck33-VirtualBox:/usr/class$ tar -xf student-dist.tar.gz.1
tar: student-dist.tar.gz.1: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
nyck33@nyck33-VirtualBox:/usr/class$ 

我还能尝试什么?

18.04
  • 2 2 个回答
  • 24 Views

2 个回答

  • Voted
  1. Best Answer
    steeldriver
    2022-12-30T14:20:50+08:002022-12-30T14:20:50+08:00

    如中所述man tar:

          An archive name that has a colon in it specifies a file  or  de‐
          vice on a remote machine.  The part before the colon is taken as
          the machine name or IP address, and the part  after  it  as  the
          file or device pathname, e.g.:
    
           --file=remotehost:/dev/sr0
    

    GNU tar 提供了一个--force-local选项来覆盖这个默认行为

       --force-local
              Archive file is local even if it has a colon.
    

    所以而

    $ tar -xf asset-v1\:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected]
    tar: Cannot connect to [email protected]: resolve failed
    

    失败,

    $ tar --force-local -xf asset-v1\:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected]
    

    成功。

    • 1
  2. matigo
    2022-12-30T05:11:29+08:002022-12-30T05:11:29+08:00

    您面临的问题是文件名称非常糟糕的结果。您需要先重命名文件,然后提取内容。

    1. 将文件重命名为更简单的名称:
      mv asset-v1\:StanfordOnline+SOE.YCSCS1+1T2020+type@[email protected] soe.tar.gz
      
    2. 提取内容:
      tar -xvf soe.tar.gz 
      
    3. 确认您有文件:
      ll
      total 5680
      drwxrwxr-x 10 jason jason    4096 12月 29 13:08 ./
      drwxr-xr-x 21 jason jason    4096 12月 29 13:06 ../
      drwxr-xr-x 11 jason jason    4096  6月 18  2011 assignments/
      drwxr-xr-x  3 jason jason    4096  6月 18  2011 bin/
      drwxr-xr-x  2 jason jason    4096  6月 18  2011 etc/
      drwxr-xr-x  2 jason jason    4096  6月 18  2011 examples/
      drwxr-xr-x  2 jason jason    4096  6月 18  2011 handouts/
      drwxr-xr-x 11 jason jason    4096  6月 18  2011 include/
      drwxr-xr-x  4 jason jason    4096  6月 18  2011 lib/
      -rw-rw-r--  1 jason jason 5773538  3月 28  2020 soe.tar.gz
      drwxr-xr-x 11 jason jason    4096  6月 18  2011 src/
      

    当您看到包含 和 等字符的文件名时,:如果@可能的话,最好重命名它们。

    • 0

相关问题

  • Ubuntu 16.10 及更高版本中的 Nautilus 功能“创建链接”发生了什么变化?

  • 使用标准接口(使用 mimetype)以编程方式修改文件关联

  • 我可以从 Evince 拖放到 Thunderbird 吗?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve