LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-25-2023, 05:16 AM   #31
palio88@gg
LQ Newbie
 
Registered: Feb 2023
Posts: 27

Original Poster
Rep: Reputation: 0

Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

What does 1 not upgraded mean?
 
Old 02-25-2023, 05:18 AM   #32
palio88@gg
LQ Newbie
 
Registered: Feb 2023
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Did you install Virtualbox yet and a guest OS?

The correct syntax assuming your in the directory where the xz file is located.
tar xvf linux-6.2.xz

It's on a wsl2 Ubuntu system.

You never show the executed command just the results so it is difficult to provide help as exactly you are doing wrong.
@DESKTOP-BK9717N:/home/pocoloco234# tar xvf linux-5.2.xz
tar: linux-5.2.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
 
Old 02-25-2023, 05:19 AM   #33
palio88@gg
LQ Newbie
 
Registered: Feb 2023
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Did you install Virtualbox yet and a guest OS?

The correct syntax assuming your in the directory where the xz file is located.
tar xvf linux-6.2.xz

It's on a wsl2 Ubuntu system.

You never show the executed command just the results so it is difficult to provide help as exactly you are doing wrong.
Yes I Installed the Virtual Box with Ubuntu Jellyfish
 
Old 02-25-2023, 05:22 AM   #34
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,996

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
Quote:
Originally Posted by palio88@gg View Post
@DESKTOP-BK9717N:/home/pocoloco234# tar xvf linux-5.2.xz
tar: linux-5.2.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
You must read some guides about tar, you not only don't know how does it work, but also you don't understand (read) the messages you got.
Now you passed a non-existent filename to tar. You need to specify a real, existing file.
 
Old 02-25-2023, 05:25 AM   #35
palio88@gg
LQ Newbie
 
Registered: Feb 2023
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Turbocapitalist View Post
What did you really type? Which distro, including version, is that on?
This 'Error: tar is not recoverable' is saying it too many times for now.

Last edited by palio88@gg; 02-25-2023 at 05:29 AM.
 
Old 02-25-2023, 05:31 AM   #36
palio88@gg
LQ Newbie
 
Registered: Feb 2023
Posts: 27

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by palio88@gg View Post
This 'Error: tar is not recoverable' is saying it too many times for now.
and there's nothing new in the internet I searched but didn't find anything except this and it doesn't work:

mv Doctrine-1.2.0.tgz Doctrine-1.2.0.tar.gz
gunzip Doctrine-1.2.0.tar.gz
tar xf Doctrine-1.2.0.tar

from:

https://stackoverflow.com/questions/...le-exiting-now
 
Old 02-25-2023, 05:46 AM   #37
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,996

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
Quote:
Originally Posted by palio88@gg View Post
This 'Error: tar is not recoverable' is saying it too many times for now.
That only means you wanted to do something which is actually not possible. Like uncompressing a non-existent file. With other words you entered an incorrect command. You need to learn tar.
 
Old 02-25-2023, 06:40 AM   #38
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,766

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Quote:
@DESKTOP-BK9717N:/home/pocoloco234# tar xvf linux-5.2.xz
tar: linux-5.2.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Do you pay attention to what you type?
Look at the output of the ls command. Is it
linux-6.2.tar.xz
or
linux-6.2.tar

That is the file you need to extract in the tar command.
 
Old 02-25-2023, 06:59 AM   #39
palio88@gg
LQ Newbie
 
Registered: Feb 2023
Posts: 27

Original Poster
Rep: Reputation: 0
Question

can't simlpy figure out how tar mv bz xz and on and on work ...

Can somebody Help please ???
 
Old 02-25-2023, 07:05 AM   #40
palio88@gg
LQ Newbie
 
Registered: Feb 2023
Posts: 27

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by michaelk View Post
Do you pay attention to what you type?
Look at the output of the ls command. Is it
linux-6.2.tar.xz
or
linux-6.2.tar

That is the file you need to extract in the tar command.
****@DESKTOP-BK9717N:/home/pocoloco234# tar updates
tar: You may not specify more than one '-Acdtrux', '--delete' or '--test-label' option
Try 'tar --help' or 'tar --usage' for more information.

Take a look at this ^ what does it tell to you and why can't I access tar ??



****@DESKTOP-BK9717N:/home/pocoloco234# ls
'HELP --' 'sudo_root 8'
****@DESKTOP-BK9717N:/home/pocoloco234# ls linux-6.2.tar.xz
ls: cannot access 'linux-6.2.tar.xz': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234# ls tar
ls: cannot access 'tar': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234# ls pessulus-2.30.3.tar.bz2
ls: cannot access 'pessulus-2.30.3.tar.bz2': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234# ls pessulus-2.30.3.tar
ls: cannot access 'pessulus-2.30.3.tar': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234# ls linux-6.2.tar
ls: cannot access 'linux-6.2.tar': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234#
 
Old 02-25-2023, 07:12 AM   #41
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,766

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Do you understand what the tar command is and how it works?
https://www.geeksforgeeks.org/tar-co...inux-examples/

Quote:
****@DESKTOP-BK9717N:/home/pocoloco234# ls
'HELP --' 'sudo_root 8'
It looks like your home directory does not contain any archive files. Did you download the kernel? If so where is it? Typically files downloaded from the web browser are automatically saved to your Downloads directory by default i.e./home/pocoloco234/Downloads.

Last edited by michaelk; 02-25-2023 at 08:38 AM.
 
Old 02-25-2023, 07:18 AM   #42
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,996

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
Quote:
Originally Posted by palio88@gg View Post
****@DESKTOP-BK9717N:/home/pocoloco234# tar updates
tar: You may not specify more than one '-Acdtrux', '--delete' or '--test-label' option
Try 'tar --help' or 'tar --usage' for more information.

Take a look at this ^ what does it tell to you and why can't I access tar ??
the first argument of tar is an operation. The operation itself is just one letter, can be Acdtrux (as it was reported). Actually updates has d t and u, therefore tar cannot decide which operation do you really want to use.


Quote:
Originally Posted by palio88@gg View Post

****@DESKTOP-BK9717N:/home/pocoloco234# ls
'HELP --' 'sudo_root 8'
This is the content of the current dir, it looks like you have 2 files in it.

Quote:
Originally Posted by palio88@gg View Post
****@DESKTOP-BK9717N:/home/pocoloco234# ls linux-6.2.tar.xz
ls: cannot access 'linux-6.2.tar.xz': No such file or directory
You have no such file in the current dir

Quote:
Originally Posted by palio88@gg View Post
****@DESKTOP-BK9717N:/home/pocoloco234# ls tar
ls: cannot access 'tar': No such file or directory
tar is a command, not a file (and obviously cannot be find in the current directory)

Quote:
Originally Posted by palio88@gg View Post
****@DESKTOP-BK9717N:/home/pocoloco234# ls pessulus-2.30.3.tar.bz2
ls: cannot access 'pessulus-2.30.3.tar.bz2': No such file or directory
same, non-existent file

Quote:
Originally Posted by palio88@gg View Post
****@DESKTOP-BK9717N:/home/pocoloco234# ls pessulus-2.30.3.tar
ls: cannot access 'pessulus-2.30.3.tar': No such file or directory
the same again

Quote:
Originally Posted by palio88@gg View Post
****@DESKTOP-BK9717N:/home/pocoloco234# ls linux-6.2.tar
ls: cannot access 'linux-6.2.tar': No such file or directory
the same again
 
Old 02-25-2023, 07:36 AM   #43
palio88@gg
LQ Newbie
 
Registered: Feb 2023
Posts: 27

Original Poster
Rep: Reputation: 0
Wink

Quote:
Originally Posted by palio88@gg View Post
****@DESKTOP-BK9717N:/home/pocoloco234# tar updates
tar: You may not specify more than one '-Acdtrux', '--delete' or '--test-label' option
Try 'tar --help' or 'tar --usage' for more information.

Take a look at this ^ what does it tell to you and why can't I access tar ??



****@DESKTOP-BK9717N:/home/pocoloco234# ls
'HELP --' 'sudo_root 8'
****@DESKTOP-BK9717N:/home/pocoloco234# ls linux-6.2.tar.xz
ls: cannot access 'linux-6.2.tar.xz': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234# ls tar
ls: cannot access 'tar': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234# ls pessulus-2.30.3.tar.bz2
ls: cannot access 'pessulus-2.30.3.tar.bz2': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234# ls pessulus-2.30.3.tar
ls: cannot access 'pessulus-2.30.3.tar': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234# ls linux-6.2.tar
ls: cannot access 'linux-6.2.tar': No such file or directory
****@DESKTOP-BK9717N:/home/pocoloco234#
-----------------------------

Also Terminal doesn't give access to partition E: which I don't have on Windows
 
Old 02-25-2023, 09:21 AM   #44
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
there is no HELP command. Most modern commands have a --help

Code:
tar --help
Usage: tar [OPTION...] [FILE]...
GNU 'tar' saves many files together into a single tape or disk archive, and can
restore individual files from the archive.

Examples:
  tar -cf archive.tar foo bar  # Create archive.tar from files foo and bar.
  tar -tvf archive.tar         # List all files in archive.tar verbosely.
  tar -xf archive.tar          # Extract all files from archive.tar.

 Local file name selection:

      --add-file=FILE        add given FILE to the archive (useful if its name
                             starts with a dash)
  -C, --directory=DIR        change to directory DIR
      --exclude=PATTERN      exclude files, given as a PATTERN
      --exclude-backups      exclude backup and lock files
      --exclude-caches       exclude contents of directories containing
                             CACHEDIR.TAG, except for the tag file itself
      --exclude-caches-all   exclude directories containing CACHEDIR.TAG
      --exclude-caches-under exclude everything under directories containing
                             CACHEDIR.TAG
Or you can get help with "man tar", but that is way more descriptive.

You need a hello.c code in order to compile it. I just use:

Code:
#include <stdio.h>
main()
{
printf("hello word\n");
}
Then gcc -o hello hello.c. Then run hello, "./hello" returns "hello world".

The developer environment to do compiles might not be installed. It is usually called build-essentials in Ubuntu, others have a procedure to install it. These get the libs and headers to compile most things, although for each library/module might need a more specific set, usually called a dev package. For example, to build ldap binaries you might need package.libldap2-dev.

Don't be guessing on the arguments for commands. Almost none "ask" you for input, if you don't reference a file or are using stdin (like a | pipe or > redirect) it isn't going to work.

Last edited by elgrandeperro; 02-25-2023 at 09:28 AM.
 
  


Reply



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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
Can't get hybrid NVIDIA optimus graphics card to work in Ununtu studio 16.04, reboots to blank screen Booster.goat Ubuntu 1 10-02-2016 08:28 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
How do I un tar a .tar, .tar.z, .tar.gz file vofkid Linux - Newbie 4 03-15-2002 02:54 PM

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

All times are GMT -5. The time now is 09:30 PM.

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