Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcode 11.2 运行几次正常后会出现dpkg安装失败问题 dpkg: error 有大佬遇到的么 #223

Closed
Yongle-Fu opened this issue Nov 7, 2019 · 2 comments

Comments

@Yongle-Fu
Copy link

dpkg: error processing archive /var/root/MonkeyDevPackages/xxx_0.1-1_iphoneos-arm.deb (--install):
corrupted filesystem tarfile in package archive: unsupported PAX tar header type 'x'

@Lessica
Copy link

Lessica commented Nov 23, 2019

这里也遇到过了。

经过检查,原因是 /opt/MonkeyDev/bin/md 使用 macOS 自带的 tar,即 bsdtar,而越狱后 Cydia 提供的 Tape ArchiveDebian Packager 是 GNU dpkg 和 gnutar,二者存在不完全兼容的情况。

解决方法:

使用 Homebrew 安装 gnu-tar

brew install gnu-tar

/opt/MonkeyDev/bin/md 第 487 行

tar -cLpz --disable-copyfile --exclude ".*" "$@" -f "$outputDir/$tarName.tar.gz" * || \
	panic $? "Failed to create $tarName archive"

替换为

gtar -chpz --exclude ".*" "$@" -f "$outputDir/$tarName.tar.gz" * || \
	panic $? "Failed to create $tarName archive"

@KingSun0
Copy link

厉害

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants