From 95e0b3e92c8d949017114121efb4f45d27b7bd0f Mon Sep 17 00:00:00 2001 From: Yaya4 <34249303+Yaya48@users.noreply.github.com> Date: Tue, 16 Mar 2021 22:40:51 +0100 Subject: [PATCH] Workaround for zsdt The procursus team decided to use zstd as a compression for their deb to make deb unusable on unc0ver so i fixed it migration to support it with a workaround. --- procursus-migration.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/procursus-migration.sh b/procursus-migration.sh index 7cf8e28..2f08c97 100644 --- a/procursus-migration.sh +++ b/procursus-migration.sh @@ -45,7 +45,15 @@ else wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/procursus-keyring_2020.05.09_iphoneos-arm.deb --no-check-certificate dpkg -i procursus-keyring_2020.05.09_iphoneos-arm.deb apt update - apt download libzstd1 apt libapt-pkg6.0 xz-utils liblzma5 libncursesw6 ncurses-term libxxhash0 libxxhash-dev + rm -rf /tmp/zstd-support/ + mkdir /tmp/zstd-support/ + cd /tmp/zstd-support/ + apt download libintl8 liblzma5 lz4 xz liblz4-1 xz-utils + wget https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/libzstd1_1.4.7_iphoneos-arm.deb + wget https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/zstd_1.4.7_iphoneos-arm.deb + dpkg -i --force-all *.deb + cd /tmp/procursus-migration + apt download libzstd1 apt libapt-pkg6.0 xz-utils liblzma5 libncursesw6 ncurses-term libxxhash0 libxxhash-dev libgcrypt20 libgpg-error0 dpkg dpkg -i --force-all /tmp/procursus-migration/libncursesw6*.deb if [ ! -f "/usr/lib/libncurses.6.dylib" ]; then echo "Fixing ..." @@ -53,7 +61,8 @@ else else echo "Nothing To Do!" fi - dpkg -i --force-all /tmp/procursus-migration/* + dpkg -i --force-all dpkg*.deb + dpkg -i --force-all *.deb apt download coreutils dpkg -r --force-all libidn2 apt --fix-broken install -y -u -o APT::Force-LoopBreak=1