Skip to content

Busybox: tar error when installing JuNest #340

Open
@TeddyCuoreDolce

Description

@TeddyCuoreDolce

I'm facing some tar related issue

# junest setup
Downloading JuNest...
[...]
Installing JuNest...
tar: invalid option -- 'z'
BusyBox v1.35.0 (2023-03-05 21:13:04 Europe) multi-call binary.

Usage: tar c|x|t [-ahvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [LONGOPT]... [FILE]...

Create, extract, or list files from a tar file

	c	Create
	x	Extract
	t	List
	-f FILE	Name of TARFILE ('-' for stdin/out)
	-C DIR	Change to DIR before operation
	-v	Verbose
	-O	Extract to stdout
	-o	Don't restore user:group
	-k	Don't replace existing files
	-a	(De)compress based on extension
	-h	Follow symlinks
	-T FILE	File with names to include
	-X FILE	File with glob patterns to exclude
	--exclude PATTERN	Glob pattern to exclude
	--overwrite		Replace existing files
	--strip-components NUM	NUM of leading components to strip
	--no-recursion		Don't descend in directories
	--numeric-owner		Use numeric user:group
	--no-same-permissions	Don't restore access permissions
	--to-command COMMAND	Pipe files to COMMAND
Error occurred when installing JuNest

So looks like my tar is missing the z option which you're using to extract a .tar.gz
One workaround would be to replace the -z with an equivalent gzip command, which is available to me.
Is it an option to try that in case straight tar fails?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions