I can never remember what the apropriate flags to pass to the tar
command are to unpack a tar.gz file. Fortunately, on Debian based distros there is the atool
package.
sudo apt update
sudo apt install atool
and then simply aunpack
whatever zip or tar.gz file you need.