You are missing one of the key tags in your tar command. It should start out
The z modifier tells tar that you want to unpack a gzip compressed file. If a file ends in .bz2 then replace the z with a j. The x is extract, v is be verbose (report everything done), and the f tells it to use the file from standard input.
In the future, please post the exact
error messages. They can help us to help you. Just saying "errors" is somewhat akin to going to the doctor and saying, "I hurt", and leaving it at that!