LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2021, 05:36 AM   #1
SamGearhart172450
LQ Newbie
 
Registered: Jan 2021
Location: Denver
Distribution: Debian Buster
Posts: 19

Rep: Reputation: Disabled
Can't UNZIP FILE FOR SOME REASON


Here is the feedback that my machine has decided to all of a sudden start giving me when I try to unzip a file. Never did this before so now this is a new response. Frustrating to say the least as I know the commands have been downloaded as I've used them before. here is the output from my machine....


pi@mikado:~/Downloads $ unzip linux-5.11.11.tar.xz
Archive: linux-5.11.11.tar.xz
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of linux-5.11.11.tar.xz or
linux-5.11.11.tar.xz.zip, and cannot find linux-5.11.11.tar.xz.ZIP, period.
pi@mikado:~/Downloads $ tar xvzf linux-5.11.11.tar.xz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
pi@mikado:~/Downloads $


HELP!!!
 
Old 04-07-2021, 05:44 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,185

Rep: Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946
The current version of tar should automatically determine the compression type so try
tar -xf file.tar.xz

If that does not work the option for xz is -j

If that does not work you might need to install the xz-utils package.

zip/unzip is only for zip files.

Last edited by michaelk; 04-07-2021 at 05:45 AM.
 
Old 04-07-2021, 05:56 AM   #3
SamGearhart172450
LQ Newbie
 
Registered: Jan 2021
Location: Denver
Distribution: Debian Buster
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
The current version of tar should automatically determine the compression type so try
tar -xf file.tar.xz

If that does not work the option for xz is -j

If that does not work you might need to install the xz-utils package.

zip/unzip is only for zip files.
I think that worked my friend and thank you for such prompt response time. This place is great.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Does "unzip -X" work in Info-ZIP UnZip 6.00? ruario Linux - Software 5 09-15-2013 04:21 AM
How to find out a file in a WAR which in a zip without unzip the zip-file? thomas2004ch Linux - Software 3 09-30-2011 03:06 PM
What is the difference between using "jar xvf" and "unzip" to unzip the zip-file? thomas2004ch Linux - Newbie 4 08-27-2009 05:11 AM
about unzip to unzip some chinese files' trouble arcow Linux - Software 0 03-24-2006 02:25 AM
For some reason I can't compile a .cpp file with kdevelop, the button is greyed out. Manyguns Programming 1 07-16-2001 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration