求助daemon各种新手问题


#1

Run a daemon (as root) on iOS 继续讨论:

TerryChedeMacBook-Pro:rootdaemond Che$ make package

Making all for tool rootdaemond…
==> Compiling main.m (armv7)…
==> Compiling TestLoop.m (armv7)…
==> Linking tool rootdaemond (armv7)…
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7
==> Compiling main.m (arm64)…
==> Compiling TestLoop.m (arm64)…
==> Linking tool rootdaemond (arm64)…
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7
==> Merging tool rootdaemond…
==> Signing rootdaemond…
Making stage for tool rootdaemond…
dpkg-deb: 错误: obsolete compression type 'lzma'; use xz instead

输入 dpkg-deb --help 可获得有关操作 *.deb 文件的帮助;
输入 dpkg --help 可获得有关安装和卸载软件包的帮助。
make: *** [internal-package] Error 2

请问这个问题怎么解决啊?


#2

找到方法了
修改opt/theos/makefiles/package/deb.mk
第六行:THEOSPLATFORM_DPKG_DEB_COMPRESSION ?= lzma
把最后lzma 改成 xz 就可以了


#3

我也遇到了这个问题,是brew自动升级了dpkg,当时的解决方法是把dpkg固定在1.18.10这个版本,没去改theos里的脚本...

命令:

brew pin dpkg 1.18.10

#4

我根据 https://github.com/theos/theos/issues/211 这个issue上的方案安装1.18.10的版本 但是homebrew一install就Updating 永远安装最新版本 无解了 想pin老版本都pin不了


#5

咦我記得theos某個腳本裡強制使用了xz?


#6

我个人安装旧版本dpkg的问题解决了 上面的链接内容有更新 作者贴了一个禁止homebrew自动更新的方法
$ HOMEBREW_NO_AUTO_UPDATE=1 brew install dpkg # install the older dpkg


#7

直接下安装包,安装

wget -c https://homebrew.bintray.com/bottles/dpkg-1.18.10.el_capitan.bottle.tar.gz
tar xpvf dpkg-1.18.10.el_capitan.bottle.tar.gz
mv dpkg/1.18.10/ /usr/local/Cellar/dpkg/

然后:

brew switch dpkg 1.18.10
brew link dpkg
brew pin dpkg 1.18.10

#8

也是一个方案 收下了:blush:


#9

但是又出现了新的问题
dpkg: serious warning: files list file for package `unrar' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `gzip' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `unzip' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `zip' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package p7zip' missing, assuming package has no files currently installed.
3989 files and directories currently installed.)
Unpacking com.xgf.cgpointzero (from /tmp/_theos_install.deb) ...
dpkg-deb: file
/tmp/_theos_install.deb' contains ununderstood data member data.tar.xz , giving up
dpkg: error processing /tmp/_theos_install.deb (--install):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:
/tmp/_theos_install.deb
make: *** [internal-install] Error 1
abcdeMac-mini:supportrxcq xgf$