I am running through the LinkedIn learning “intro to linux” course and I’m on the tar video/practice. for some reason .tar.bz2 creates an empty archive and hen I get an error when I try to unpack it
It has me run in my Ubuntu VM:
tar -caf myfiles.tar /Exercise Files/
tar -caf myfiles.tar.bz2 /Exercise Files/
tar -caf myfiles.tar.gz /Exercise Files/
mv myfiles.tar.bz2 /unpack1
cd /unpack1
tar -xf myfiles.tar.bz2
After creating the three archives, the video has me ' ls -l'
to show they were created and that something is actually in them. The first issue is that the .tar.bz2 archive shows as empty.
The second is when I try the tar -xf myfiles.tar.bz2
I get an error “tar: this doesn’t look like a tar archive. tar (child): Bzip2 cannot exec: no such file or directory.”
I made sure that my ubuntu is updated and I’ve followed is commands to a tee.
Is there something I’m missing or need to install? I also noticed the archive sizes were slightly different (his showed like 117k and mine showed 170k)
any assistance is greatly appreciated! TIA!!!!!!
Jrquimby96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.