我正在尝试解压下载的包,但一直失败。
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$
我还能尝试什么?
如中所述
man tar
:GNU tar 提供了一个
--force-local
选项来覆盖这个默认行为所以而
失败,
成功。
您面临的问题是文件名称非常糟糕的结果。您需要先重命名文件,然后提取内容。
当您看到包含 和 等字符的文件名时,
:
如果@
可能的话,最好重命名它们。