Unable to open tar.tar file

Asked by curiogeo

I am trying to unpack a file that was dowloaded with Internet Explorer. In the process of the download the tar.gz extension was changed to a tar.tar extension.

I changed the file using a move command:
mv dpkg_1.10.27ubuntu1.1.tar.tar dpkg_1.10.27ubuntu1.1.tar.gz
That was successful.

I then tried:
gunzip dpkg_1.10.27ubuntu1.1.tar.gz

and it was successful.

The last step failed:
~/dpkg# tar -xvjf dpkg_1.10.27ubuntu1.1.tar
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors

What have I missed?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
curiogeo
Solved:
Last query:
Last reply:
Revision history for this message
SageMassa (jedd.bissegger) said :
#1

just use tar -xvf

Revision history for this message
Best curiogeo (damani-best) said :
#2

It seems that changing the tar string from:
tar -xvjf dpkg_1.10.27ubuntu1.1.tar

to:
tar -xvzf dpkg_1.10.27ubuntu1.1.tar

made the difference in the file decompression.

Revision history for this message
Gerald M (geraldm) said :
#3

Problem was you were using the "-j" switch which tried to decompress a "bzip2" file. The "-z" switch was the correct one to use since the file was a .gz (gzip) file.