我正在用这个命令解决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以禁用文件列表,这可能有助于您仅关注错误消息.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。