无法使用tar -cvpzf解压缩完整目录 [英] can't untar a complete directory using tar -cvpzf

查看:356
本文介绍了无法使用tar -cvpzf解压缩完整目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

把我的头撞到这个...

Banging my head on this one...

我用tar -cvpzf file.tar.gz压缩了完整的目录.

I used tar -cvpzf file.tar.gz to compress a complete directory.

我将文件移动到另一台服务器,然后尝试解压缩将存档复制到的目录.无法使其正常工作.

I move the file to another server and i try to decompress the directory where i have copied the archive. Can't make it work.

bash-3.2$ tar -xvpzf news.tar.gz .       
tar: gzip: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: .: Not found in archive
tar: Error exit delayed from previous errors

有人吗?

推荐答案

您的tar无法找到gzip.如果没有gzip,则无法创建.gz文件.您应该在系统上寻找gzip可执行文件.这是什么系统?

Your tar can't find gzip. If you don't have gzip, you can't make a .gz file. You should look for a gzip executable on your system. What kind of system is it?

在此期间,您可以省略"z",而仅传输.tar文件.它将更大,但至少您将能够将数据移至另一台服务器.

In the meantime, you could leave off the "z" and just transfer a .tar file. It will be bigger, but at least you'll be able to move your data to the other server.

这篇关于无法使用tar -cvpzf解压缩完整目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆