meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.26k stars 680 forks source link

Linux delopy install ubuntu impish fail #1303

Open xintiaoxuanlv opened 2 years ago

xintiaoxuanlv commented 2 years ago

zst format decompression failed, how to solve? IMG_20220217_211942

JavisWiki commented 2 years ago

I met same problem, and I solved it by doing this:

Step 1. Edit /data/user/0/ru.meefik.linuxdeploy/files/include/bootstrap/debian/debootstrap/functions

Replace

    control.tar.xz) cat_cmd=xzcat ;;
    control.tar)    cat_cmd=cat ;;

to

    control.tar.xz) cat_cmd=xzcat ;;
    control.tar)    cat_cmd=cat ;;
    control.tar.zst) cat_cmd=zstdcat ;;

There are two places total in file "functions".

Step 2. Download and exact ztsd binary file. you can download from termux source and exact ztsd binary file from .deb: link: https://termux.librehat.com/apt/termux-main/pool/main/z/zstd/

or download exacted binary file from here: link: https://cowtransfer.com/s/de0ab98c7cfb43

Step 3. rename file zstd to zstdcat

Step 4. Copy file zstdcat to /data/user/0/ru.meefik.linuxdeploy/files/bin, and chmod +x /data/user/0/ru.meefik.linuxdeploy/files/bin/zstdcat

Step 5. Install ubuntu in LinuxDeploy.