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)
558
questions
3
votes
2
answers
208
views
tar command with and without --absolute-names option
I am currently using ubuntu 20.04 machine.
I was trying to create compressed archives using tar command using the below command,
sudo tar -caf /opt/archive.tar.bz2 /home/bob/databases/
my current ...
0
votes
0
answers
31
views
How to limit tar process to not utilize IO at max?
So I have a server where I have important processes running 24/7, and once per day I run a backup of a specific folder like this:
time tar cf ${HOME}/${SNAP_NAME} -C ${DATA_PATH} . &>>${...
0
votes
0
answers
147
views
Help with installing the Chrome web browser (22.04.2 LTS)
I have just installed Ubuntu 22.04.2 LTS on my computer a few hours ago. For a few days, I tried to do an install so I could dual boot between Ubuntu & Windows 10. But I had failure after failure,...
0
votes
1
answer
82
views
22.04 upgrade stuck on extracting jammy.tar.gz
upgrading from 20.04 to 22.04. Ran these commands:
sudo apt update && sudo apt upgrade -y
sudo update-manager -d
This is what is showing on screen:
Checking for a new Ubuntu release
...
0
votes
0
answers
40
views
Do I need to regereate initramfs when I move Linux to new partitions?
When I restore my Linux backups from either an image file or tar backups to new partitions/volumes (root, boot, and home), do I need to regerenerate the initramfs files as well? I would use the ...
0
votes
1
answer
46
views
tar change permission of parent directory to 775
I tried to untar file with below command
sudo -u ubuntu tar -xzf tar.tgz -C "$(dirname "/home/ubuntu/deploy/")"
The tar log looks like
./
./deploy/deploy_scy.yml
./deploy/...
0
votes
0
answers
25
views
unpacking path tar gz [duplicate]
today I tried to install postman. but the site provides a tar archive.gz, which contains a ready-made application. I need to know if there is some standard for unpacking tar gz ? maybe there is some ...
0
votes
0
answers
42
views
I have yet to locate any clearly delineated instruction on how to install a .tar.xz file in ubuntu 22+ using the command prompt only. Anyone? [duplicate]
I have yet to locate any clearly delineated instruction on how to install a .tar.xz file in Ubuntu 22+ using the command prompt only. Anyone? I've found so many variations, permutations, and ...
2
votes
1
answer
134
views
tar extract ignore timestamp
I create myarchive.tar on machine A and use tar -xvf myarchive.tar on machine B where tar complains about timestamps : tar: lib/libboost_date_time.so.1.65.1: time stamp 2023-02-27 20:06:01 is 254449....
4
votes
3
answers
320
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
34
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
205
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
2k
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....
0
votes
0
answers
283
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 ...
0
votes
0
answers
30
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
40
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
677
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
120
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 &...
0
votes
0
answers
20
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 ...
0
votes
1
answer
335
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
112
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
83
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 ...
4
votes
3
answers
6k
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
83
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
298
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....
0
votes
1
answer
587
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 '...
0
votes
2
answers
463
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
107
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 ...
1
vote
1
answer
45
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 ...
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 ...
0
votes
0
answers
5k
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-...
3
votes
1
answer
764
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/...
1
vote
2
answers
909
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 ...
1
vote
0
answers
308
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
34
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
184
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:...
-1
votes
1
answer
399
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, ...
0
votes
2
answers
858
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 ./...
2
votes
1
answer
646
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?
0
votes
1
answer
2k
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
352
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 /...
1
vote
2
answers
9k
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
98
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 ...
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
5k
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
399
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
55
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 ...
0
votes
1
answer
127
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?
1
vote
0
answers
133
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
50
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....