gpt4 book ai didi

linux - tar :invalid magic, tar:短读

转载 作者:行者123 更新时间:2023-12-05 03:45:11 26 4
gpt4 key购买 nike

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

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

最佳答案

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

对于 BusyBox 和其他 tar,明确指定格式(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,则需要将整个命令作为单个参数传递)

关于linux - tar :invalid magic, tar:短读,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66017619/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com