Questions tagged [tar]

a utility to archive files into a sequential stream, then commonly placed into one file on disk (previously tapes, hence the name, Tape ARchive)

Filter by
Sorted by
Tagged with
4 votes
3 answers
280 views

How do you efficiently/correctly extract data from a tarball into a new Ubuntu distribution?

I am updating my Ubuntu distribution from 18.04 to 22.04. I exported the Ubuntu 18.04 instance with wsl --export Ubuntu-18.04 <file.tar> to a tarball and am trying to figure out how to ...
0 votes
2 answers
30 views

How to set up on Ubuntu 18.04 VM on Virtualbox for Edx Stanford Compiler Course

https://courses.edx.org/courses/course-v1:StanfordOnline+SOE.YCSCS1+3T2020/6b750292e90d4950b895f621a5671b49/ I am trying to untar the downloaded package and it keeps failing. nyck33@nyck33-VirtualBox:/...
0 votes
0 answers
94 views

Why ubuntu doesn't run a bin file?

I'm trying to install a software on Ubuntu 22.04 LTS. After downloading the tar.gz file, I extracted the files with the command: tar -xvf CCS6.1.0.00104_linux.tar.gz Then I entrered the extracted ...
3 votes
3 answers
929 views

Creating tar files without including the directories

I am fairly new using tar having used zip files in the past. I want to just create the tar file without the directories being included. I went here, but found it a bit confusing. https://www.baeldung....
  • 2,676
0 votes
0 answers
101 views

ssh connection drops immediately, was working recently

I have seen a similar issue posted elsewhere, but mine seems to be slightly different. I am sshing into a Ubuntu 16 server, and it was working literally hours ago. I started a backup using tar -cvpzf ...
  • 101
0 votes
0 answers
20 views

how to zip the tar files of Waymo open dataset to a right form?

I downloaded the Waymo open dataset (v1.2) and do not know to untar these tar files in three different folders (testing, training, validation). Do I need to go each folder and run ls *.tar | xargs -n1 ...
0 votes
0 answers
33 views

Recovering tar files within Ubuntu OS!

I accidentally deleted my backup files which are stored as .tar files within Ubuntu. I was trying to use various tools (testdisk, extundelete, and ext3grep) to recover the tar files (contain PNG files)...
4 votes
2 answers
444 views

How can I extract files in the directory where they're located with the find command?

I have tried to extract multiple files from the directory where they're located with: for i in $(find . -name '*.tgz'); do # search the tgz files and extract them tar -xvzf $i done I expected ...
1 vote
1 answer
71 views

tar lzma autocompression produces the error "This does not look like a tar archive"

The following script mkdir test && cd test mkdir files touch files/{1,2,3} tar --create --file "test.lzma" files/{1,2,3} --auto-compress mkdir extracted_files tar --extract --file &...
  • 11
0 votes
0 answers
15 views

merging split archive downloaded files

I have downloaded a big executive file in 4 parts 1 in .tar frmat and 3 in zip.xz formats plz guide me how to extract them into the one main file and also what is the reason of different format in the ...
  • 13
0 votes
1 answer
116 views

How to decompress without any extraction a .tar.xz file into .tar file?

I have - file1.txt, file2.txt, file3.txt, file4.txt, file5.txt Now, I do - tar -cvf archive.tar file[1-5].txt Next, I do xz archive.tar and I get archive.tar.xz Now, How can I get back my archive....
1 vote
1 answer
76 views

Can I rollback apt-upgrade from tar backup?

I recently made apt-upgrade which broke something in my system that I cannot identify. I have a .tar backup of the whole filesystem that I made recently. Is there a way to use this backup to rollback ...
0 votes
0 answers
53 views

How to obtain linux-source.tar.bz2?

I'm on Ubuntu 18.04 LTS with a kernel version: root@sintrones-abox:/usr/src# uname -r 4.15.0-189-generic I would need to obtain the file linux-source-4.15.0.tar.bz2. How can I obtain it? I tried to ...
  • 21
4 votes
3 answers
5k views

Trying to unzip a tgz in WSL but get ELF not found error

I would like to unzip a .tgz file, but I get an ELF not found error. I am using Windows 10 and Ubuntu 22.04 in WSL. Here is a screenshot of the error:
0 votes
1 answer
62 views

Cannot locate file after moving

The thing is that I am starting after a few months of experience in linux to use the command line. I was trying to use a new "cursor theme". I found on reddit that I needed to move the file ...
0 votes
0 answers
267 views

Cannot unzip a file ubuntu 20.04

Hi so upon me trying to unzip the tar file i am getting this error. Problem Trying to unzip it with tar -xzf /tmp/rocket.chat.tgz -C /tmp I downloaded it with this command : curl -L https://releases....
  • 1
0 votes
1 answer
409 views

How to install waterfox from tar.bz2 [duplicate]

brand new to Lubuntu, as in day 2...trying to install Waterfox. I downloaded tar file (waterfox-G4.1.0.en-US.linux-x86_64.tar.bz2), extracted to a folder, but when I try to click on extracted files '...
  • 1
0 votes
2 answers
294 views

Do I need to convert to gzip format or tar format?

$file ccache-2.4.tar.gz ccache-2.4.tar.gz: HTML document, ASCII text The file, ccache-2.4.tar.gz is in the ASCII test format ccache-2.4.tar.gz: not in gzip format tar: This does not look like a ...
4 votes
1 answer
88 views

How best to copy just parts of a tar file

I'm retired but I used to teach at a university. I was supposed to destroy all records of student grades (it's a law), but I just noticed a bunch of my backups have years of my home directory from ...
  • 412
1 vote
1 answer
44 views

How to Install Pulsecaster? Python install not working

I am running Ubuntu 20.04 LTS. I am trying to install the software http://stickster.github.io/pulsecaster/ It comes in a tar.gz file which I have downloaded and extracted to a folder. Instructions on ...
  • 63
0 votes
0 answers
12 views

Installing and using dcfldd on 20.04.4 LTS [duplicate]

I was unable to install dcfldd onto my live-ubuntu-usb which I want to do in order to wipe my HD that I am planning to sell. I tried both with simple sudo apt install dcfldd As well as by trying to ...
  • 43
0 votes
0 answers
4k views

Unable to extract using tar: Error is not recoverable: exiting now

Unable to extract using tar: Error is not recoverable: exiting now Can someone help me with this issue ? Log4j2 download link wget https://www.apache.org/dyn/closer.lua/logging/log4j/2.17.1/apache-...
  • 71
0 votes
0 answers
91 views

Can't extract any files

I have been putting up with this for a while and using a workaround by opening into the zip and dragging and dropping onto desktop, but it's a whole other story with tar.gz files because I cannot open ...
3 votes
1 answer
643 views

Unable to install a .sh file

I am trying to use a package called mgl-tools and when I run ./install.sh, it isn't working. It used to work a few days ago. The error: ./install.sh Installing MGLTools to /home/aka/Desktop/Expt 10/...
  • 45
1 vote
2 answers
658 views

GNU tar - update tar file, overwriting the original file in command line(which is possible by drag-and-drop in Archive Manager)

I want to update a tar file with part of the content modified, by overwriting the original file, in a script. I tried tar -u, -A and -r, but none does what I want. I also tried with --overwrite. An ...
0 votes
0 answers
235 views

Untar failed due to compressed data--format error?

I've been trying to untar this file for several days now, and every time I try it again it ends up corrupting the file and creating corrupted files and directories. I have tried reinstalling tar and ...
-5 votes
1 answer
32 views

Bad uninstall of avg2013flx still causing prob (cont of my last issue)

The issue from my last post is still not solved and has rendered the Snap Store useless. I am getting an error that looks like this while uninstalling the Steam Installer. "Unable to remove '...
1 vote
1 answer
142 views

Create tar backup on USB fails

A question please: when I use a Data Taveler 100G3 USB stick, capacaity 128 GB to make a backup of my home directory I get an error: tar -czvf /media/dick/linux-bck/home-usb.gz /home/dick gzip: stdout:...
  • 299
-1 votes
1 answer
331 views

how can i download ubuntu's kernel?

is there any way to find and download latest Ubuntu desktop specific kernel? for example how can i download latest kernel belongs to Ubuntu 21.10? i am looking for .tar.xz file of Ubuntu kernel. also, ...
  • 296
0 votes
0 answers
81 views

I want to remove 3.28.tar.bz2 file and install 3.30.tar.bz2 file, how can I do that?

I am using Ubuntu WSL on windows 10 latest version and maybe I installed an older version of tar.bz2 file by using the command: wget https://www.nsnam.org/release/ns-allinone-3.28.tar.bz2 tar xvjf ns-...
0 votes
2 answers
721 views

installing stripe for VSC on ubuntu 18.04

I am following these directions: Download the latest linux tar.gz file from https://github.com/stripe/stripe-cli/releases/latest Unzip the file: tar -xvf stripe_X.X.X_linux_x86_64.tar.gz Move ./...
  • 37
2 votes
1 answer
567 views

How to get executable program from tar.xz file

I want to use the program KDE Iso Imagewriter, but it seems to only be available as a tar.xz file. How do I derive an executable file from the tar.xz file?
  • 2,065
0 votes
1 answer
1k views

Why is my alias from .bashrc not working?

I've written a line in .bashrc alias untar='sudo tar –xvzf' Now, when I use "untar" in bash I get the error: untar filename.tar.gz tar: invalid option -- '�' Try 'tar --help' or 'tar --...
0 votes
0 answers
286 views

tar command reports "file changed as we read it" while i think that partition mounted read only

I make a backup of my home user snap directory with tar. I have mounted the partition with bind-option according to mount manpage: at first mount --bind / /mnt/bind and then mount -o remount,bind,ro /...
  • 75
1 vote
2 answers
8k views

I do not know how to install a tar.gz file

I read the answers to similar questions but it did not help me. My computer runs on Xubuntu, a derivative of Ubuntu. I am trying to install a package from this website : https://github.com/...
0 votes
1 answer
81 views

Where do I extract tar archive in linux? [duplicate]

I use Ubuntu's derivative Xubuntu. Sometimes a software I would like to install is not available in the apt repository and can be downloaded in form of compressed tar archive. What would be the proper ...
  • 143
0 votes
0 answers
33 views

Unpacking a .tar only persists if left for 30+ seconds

I work for a company that has several Ubuntu 18.04 Server units scattered across the USA running our own software. The units are used by our clients a few days a week and the rest of the time sit idle ...
1 vote
2 answers
4k views

How to create a tar file to a specific folder from a different folder

Hi guys i am new to linux. I am trying to create a tar file from a different directory and want to be placed a specific directory. I have tried this cmd tar -cvf dailybackup.tar /root/...
1 vote
0 answers
270 views

Tar a file along with preserved file capabilities

We are building a root filesystem of Ubuntu 20.04 with packages installed using debootstrap and finally tar it using: tar -c --use-compress-program=pigz -f $ROOTFS --numeric-owner -C $TMPDIR . ...
1 vote
1 answer
53 views

What does the -W parameter of tar actually do?

I am using tar to pack up some data. Before I move it to an archive, I want to check the integrity of the tarball. According to the man page, the parameter -W does a verification: -W, --verify Verify ...
  • 4,853
0 votes
1 answer
116 views

How can I remove all strings from tar file in Linux?

I created a tar.gz file using tar -cf file_1.tar command. But, when I use strings file_1.tar, I see: file 0000644 0001750 0001750 00000000000 014545 ustar arian arian How can I remove them?
  • 11
1 vote
0 answers
121 views

backup, encrypt and then restore

I would like to encrypt my hard drive, but I have a lot of packages installed and configured already, so I was wandering whether it is possible to save a backup state and then restore it to the system....
0 votes
2 answers
49 views

How can I find the daily hirsute hippo?

Here is the ubuntu base: bionic/ daily (impish indri)/ focal/ releases/ for example: this is daily focal As you can see, there is no daily Hirsute Hippo. How can I find the daily hirsute hippo (tar....
0 votes
1 answer
192 views

Why was the nano that was installed manually not colored?

I recently installed Nano manually. I downloaded and installed the latest version from the site: This one and this one I installed both (ncrurses 6.2 and nano 5.8) with commands: mkdir /tmp/myfiles cd ...
4 votes
1 answer
587 views

How do I compress a folder while preserving file ownership

I have a docker server I want to backup. My deployment folder has very specific ownership and permissions to support my containers: $ ls -lhaF /opt/docker total 32K drwxr-xr-x 7 devops devops 4.0K ...
  • 67
0 votes
1 answer
790 views

Looking for a subtitle translator-&-merger to create dual-language subtitles

I want to translate an .srt file, and then merge the result with the original such that both texts appear in the resulting .srt file, the original at the top and the translation at the bottom. If I ...
  • 71
0 votes
0 answers
38 views

Deciphering Ubuntu Python Xlib (X11) offerings

This page: http://archive.ubuntu.com/ubuntu/pool/universe/p/python-xlib/ Shows these offerings (amongst others): python-xlib_0.23-2build1.debian.tar.xz 2019-12-17 13:15 5.9K python-xlib_0.23-...
0 votes
1 answer
853 views

Not able to install node-v16.2.0-linux-x64.tar.gz in Ubuntu using tar

:/usr/local$ tar --strip-components 1 -xzf /home/pallavi/node-v16.2.0-linux-x64.tar.gz tar: README.md: Cannot open: File exists tar: LICENSE: Cannot open: File exists tar: CHANGELOG.md: Cannot open: ...
0 votes
0 answers
307 views

Using tar command to backup file

I am using a live cd to take backup of a file.This was my problem. Now I want to use tar to backup a single file Phone academics where I have accumulated other files and I want to create the backup in ...
  • 205
3 votes
2 answers
2k views

Updating Azure Data Studio

I am using the Azure Data Studio Client App for managing Databases. Ubuntu 20.04. When I check for updates inside the AZ Data Studio i get a tar.gz in my downloads folder. No instructions as to what ...

1
2 3 4 5
12