【问题标题】:tar:invalid magic, tar:short read焦油:无效的魔法,焦油:短读
【发布时间】:2021-02-02 21:04:45
【问题描述】:

我输入这个命令 su -c busybox tar -xvf /storage/emulated/0/Download/andrax.r5-build5.tar.xz -C /data/data/com.thecrackertechnology.andrax/ANDRAX/

出现这样的错误 焦油:无效的魔法 焦油:短读

【问题讨论】:

  • this thread 有帮助吗?您的 tar 文件可能已损坏。

标签: linux termux


【解决方案1】:

自动检测压缩格式是 GNU 的一项功能。

对于 BusyBox 和其他 tars,明确指定格式 (busybox tar --help):

    -Z      (De)compress using compress
    -z      (De)compress using gzip
    -J      (De)compress using xz
    -j      (De)compress using bzip2
    -a      (De)compress using lzma

在你的情况下:

busybox tar -xJvf file.tar.xz

(请注意,如果将其传递给su -c,则需要将整个命令引用以作为单个参数传递)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-03-15
    • 2021-10-26
    • 2011-10-14
    • 1970-01-01
    • 2014-03-26
    • 1970-01-01
    • 2014-01-07
    相关资源
    最近更新 更多