bkenobi
Posts: 65
Joined: Sat Jun 21, 2014 4:55 pm

RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 6:08 pm

I have a tarball (file.tgz) that I need to extract. I tested the file with 7zip on Win7 and it checks ok. When I try to extract on my RPi3 with Stretch, it fails.

Code: Select all

pi@raspberrypi:~ $ tar -xvzf file.tgz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
I copied the same file over to my RPi1 running Jessie and it tested good. Is there something I'm missing? I have the system up to date as I just created the OS this morning including all updates. The image is "2017-11-29-raspbian-stretch-lite.img" in case it matters.

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 6:14 pm

Try
tar xavf somefile.tgz
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

bkenobi
Posts: 65
Joined: Sat Jun 21, 2014 4:55 pm

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 6:39 pm

I get the same result with that set of options. RPi1 w/ Jessie works, RPi3 w/ Stretch fails (same output).

pcmanbob
Posts: 9467
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 7:25 pm

Well stretch lite based on same image and resonantly up to date just ran tar xvzf RPLCD-0.4.0.tar.gz to test it and it unzipped and created directories and files ok.

So it suggests the file is at fault

what file and from were ?
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 7:33 pm

Check the sha256sum against the value published at: https://www.raspberrypi.org/downloads/raspbian/
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

n67
Posts: 938
Joined: Mon Oct 30, 2017 4:55 pm

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 7:37 pm

DougieLawson wrote:
Sat Mar 10, 2018 7:33 pm
Check the sha256sum against the value published at: https://www.raspberrypi.org/downloads/raspbian/
I doubt that OP's "file.tgz" has anything to do with anything at raspberrypi.org/downloads.
"L'enfer, c'est les autres"

G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:

Epmu Sn!

J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!

bkenobi
Posts: 65
Joined: Sat Jun 21, 2014 4:55 pm

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 9:45 pm

The file is a program I'm downloading from a git repository. I downloaded the file on Windows and tested it in 7zip and it shows good. I downloaded it on RPi3 with Stretch and it gives an error. I transferred the file to Windows from the RPi3 and tested with 7zip and it is good. That means that the file must be downloading correctly but for some reason the RPi3 can't extract it. Any other thoughts?

I can't imagine the issue is the file, but the file is located here:
https://github.com/Bounz/HomeGenie-BE/r ... 15_all.tgz

User avatar
rpdom
Posts: 17174
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 10:10 pm

It looks like the file is a .tar, not a .tgz Trying to extract it with tar xzvf ... gives an error, but tar xvf ... works on my Linux laptop. I haven't tested it on a Pi yet.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 10:13 pm

I downloaded your file and extracted it with this:

Code: Select all

tar -xvf homegenie_1.1.15_all.tgz

bkenobi
Posts: 65
Joined: Sat Jun 21, 2014 4:55 pm

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 10:16 pm

Just to verify that things weren't getting corrupted when transferred between systems, I did a shasum on the RPi3, RPi1, and Windows and all 3 are identical. I am now confident the issue is not the file.

I tried extracting with your command line but it still gives an error on Stretch. I tried on Jessie and it works.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 10:18 pm

My bad. Didn't work with RPi3/Stretch.

bkenobi
Posts: 65
Joined: Sat Jun 21, 2014 4:55 pm

Re: RPi3 w/ Stretch cannot extract tarball

Sat Mar 10, 2018 10:19 pm

Strange. I renamed the file to a ".tar" extension and it was able to extract on Stretch. There must be a difference between the two versions of tar then?

Jessie = 1.27.1
Stretch = 1.29

Return to “Troubleshooting”