[英]SwiftMailer: can't open .tar.gz archives on Linux
I downloaded a couple of versions from http://swiftmailer.org/downloads/archive (tar.gz) but the archive manager says 我从http://swiftmailer.org/downloads/archive(tar.gz )下载了几个版本,但档案管理器说
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
when I try to open it. 当我尝试打开它时。 Any ideas? 有任何想法吗?
Try: 尝试:
gzip -d file.tar.gz
then: 然后:
tar -xf file.tar
This was taken from: 取自:
http://fosshelp.blogspot.com.au/2012/04/solution-tar-this-does-not-look-like.html http://fosshelp.blogspot.com.au/2012/04/solution-tar-this-does-not-look-like.html
Or just tar xzf file.tar.gz
. 或者只是tar xzf file.tar.gz
Easier, faster, and takes less disk space. 更容易,更快,并且占用更少的磁盘空间。
Update: 更新:
I don't see why that doesn't work, but ungzipping first does. 我不明白为什么这行不通,但是先解压缩才行。 In that case, it would be better to: 在这种情况下,最好:
gzip -dc file.tar.gz | tar xzf -
which at least uses a pipe to avoid uncompressing and reading back from mass storage. 至少要使用管道以避免解压缩并从大容量存储中读取。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.