linux – tar退出失败……?

前端之家收集整理的这篇文章主要介绍了linux – tar退出失败……?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在用这个命令解决tar -pxvzf filename.tar.gz一切似乎都很顺利,但它出乎意料地退出了下面的错误.有没有理由我收到此错误和/或阻止它?
tar: Exiting with failure status due to prevIoUs errors

遵循回复删除-v的人的建议.这是输出错误(见下文).这是joomla cms站点的备份.知道什么会导致这些错误吗?我唯一可能的事情是缓存和tmp文件夹可能会导致它可能具有奇怪的字符

tar: Archive contains `nsion.pd' where numeric mode_t value expected
tar: Archive contains `Party.pd' where numeric mode_t value expected
tar: Archive contains `manent C' where numeric mode_t value expected
tar: Archive contains `ial Circ' where numeric mode_t value expected
tar: Archive contains `pdf0444' where numeric mode_t value expected
tar: Archive contains `pring 20' where numeric mode_t value expected
tar: Archive contains `.pdf444' where numeric mode_t value expected
tar: Archive contains `pdf0444' where numeric mode_t value expected
tar: Archive contains `up from ' where numeric mode_t value expected
tar: Archive contains `ting.pdf' where numeric mode_t value expected
tar: Archive contains `on.pdf4' where numeric mode_t value expected
tar: Archive contains `f100444' where numeric mode_t value expected
tar: Archive contains `ptions t' where numeric mode_t value expected
tar: Archive contains `f100444' where numeric mode_t value expected
tar: Archive contains `pdf0444' where numeric mode_t value expected
tar: Archive contains `f100444' where numeric mode_t value expected
tar: Archive contains `ter.pdf' where numeric mode_t value expected
tar: Archive contains `ted.pdf' where numeric mode_t value expected
tar: Archive contains `df00444' where numeric mode_t value expected
tar: Archive contains `Inc..pdf' where numeric mode_t value expected
tar: Archive contains `d.pdf44' where numeric mode_t value expected
tar: Archive contains `Network.' where numeric mode_t value expected
tar: Archive contains `df00444' where numeric mode_t value expected
tar: Archive contains `rship Aw' where numeric mode_t value expected
tar: Archive contains `.pdf444' where numeric mode_t value expected
tar: Archive contains `ition.pd' where numeric mode_t value expected
tar: Archive contains `df00444' where numeric mode_t value expected
tar: Archive contains `9.pdf44' where numeric mode_t value expected
tar: Archive contains `1.pdf4' where numeric mode_t value expected
tar: Exiting with failure status due to prevIoUs errors

解决方法

您的命令将调用tar,它将调用gunzip来首先解压缩文件.您可以使用两个命令来检查文件损坏等可能的错误,如下所示:
$gunzip filename.tar.gz

上面的命令将生成文件filename.tar.然后,您可以使用:

$tar -pxvf filename.tar

这应该可以帮助您调试问题.您还可以从命令中删除-v以禁用文件列表,这可能有助于您仅关注错误消息.

猜你在找的Linux相关文章