Unable to unzip package

sudo tar -xjfv nextcloud-20.0.1.tar.bz2 /var/www/nextcloud/
tar (child): v: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

What did I do wrong?

The f paramerter needs to be the last (paramter for you’re archive) and with -C you can set the directory :

root@nextcloud:~/tmp# tar -xjfv nextcloud-20.0.1.tar.bz2 /root/tmp/
tar (child): v: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
root@nextcloud:~/tmp# tar -xjvf nextcloud-20.0.1.tar.bz2 -C /root/tmp/
nextcloud/
nextcloud/index.php
...
root@nextcloud:~/tmp# 

Use bunzip2 from package “bzip2” (Ubuntu, Debian, …)
bunzip2 nextcloud-20.0.1.tar.bz2
and then “tar xvf”

Or use the zip file: https://download.nextcloud.com/server/releases/nextcloud-20.0.1.zip

unzip nextcloud-20.0.1.zip
package “unzip” (Ubuntu, Debian, …)

DOH!

Thanks! Can’t believe I missed that.