I am trying to extract an tarball, I keep getting this error
tar: mediatek/custom/common/lk/lcm/bp101wx1_n/bp101wx1_n.c: Cannot open: Not a directory
tar: mediatek/custom/common/lk/lcm/hsd070idw1/hsd070idw1.c: Cannot open: Not a directory
tar: mediatek/custom/common/lk/lcm/nt35582/nt35582.c: Cannot open: Not a directory
tar: mediatek/custom/common/lk/lcm/r63311_fhd_dsi_vdo_sharp/r63311_fhd_dsi_vdo_sharp.c: Cannot open: Not a directory
tar: mediatek/custom/common/lk/lcm/otm9608_wvga_dsi_cmd/otm9608_wvga_dsi_cmd.c: Cannot open: Not a directory
tar: mediatek/custom/common/lk/lcm/lg4571/lg4571.c: Cannot open: Not a directory
tar: mediatek/custom/common/lk/lcm/hx8363b_wvga_dsi_cmd/hx8363b_wvga_dsi_cmd.c: Cannot open: Not a directory
tar: mediatek/custom/common/lk/lcm/lg4573b_wvga_dsi_vdo_lh430mv1/lg4573b_wvga_dsi_vdo_lh430mv1.c: Cannot open: Not a directory
tar: Exiting with failure status due to previous errors
The original file was a .zip file that contained a .tar.gz file, so I first used unzip
then I used pigz with the -d option to create the tar file.
I extracted the tar file using tar with xf option.
Extracting the tar.gz using the tar xzf also doesn't work :/
Using 7za I get
can not open output file mediatek/custom/common/lk/lcm/bm8578/bm8578.c
can not open output file mediatek/custom/common/lk/lcm/nt35565_qhd_dsi_cmd/nt35565_qhd_dsi_cmd.c
can not open output file mediatek/custom/common/lk/lcm/spfd5461a/spfd5461a.c
can not open output file mediatek/custom/common/lk/lcm/bp101wx1_n/bp101wx1_n.c
can not open output file mediatek/custom/common/lk/lcm/hsd070idw1/hsd070idw1.c
can not open output file mediatek/custom/common/lk/lcm/nt35582/nt35582.c
can not open output file mediatek/custom/common/lk/lcm/r63311_fhd_dsi_vdo_sharp/r63311_fhd_dsi_vdo_sharp.c
can not open output file mediatek/custom/common/lk/lcm/otm9608_wvga_dsi_cmd/otm9608_wvga_dsi_cmd.c
can not open output file mediatek/custom/common/lk/lcm/lg4571/lg4571.c
can not open output file mediatek/custom/common/lk/lcm/hx8363b_wvga_dsi_cmd/hx8363b_wvga_dsi_cmd.c
can not open output file mediatek/custom/common/lk/lcm/lg4573b_wvga_dsi_vdo_lh430mv1/lg4573b_wvga_dsi_vdo_lh430mv1.c
Sub items Errors: 3869
The tar file is 3.8 GB if that matters
According to here you can do
tar -xvzf location.tar.gz
. Try thatIt might be that the name of the directory you are extracting is the same as the file you are extracting, try to rename the archive file before extracting.
It worked for me when I had a similar problem.