Linux – How to solve “tar: invalid magic” error on Linux Alpine

alpine-linuxtar

I'm installing sqlite on Alpine Linux. I download sqlite-autoconf-3130000.tar.gz but tar could not open it. I tried this answer but it's not working. tar gives this message:

tar: invalid magic
tar: short read

I wrote these commands.

wget https://www.sqlite.org/2015/sqlite-autoconf-3090100.tar.gz
tar -zxvf sqlite-autoconf-3090100.tar.gz

Best Answer

Try to install the tar package (apk add tar). Busybox tar (default) doesn't support all features.

Related Question