我正在尝试提取 tarball,但一直收到此错误
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
原始文件是一个包含 .tar.gz 文件的 .zip 文件,因此我首先使用unzip
然后使用带有 -d 选项的 pigz 来创建 tar 文件。
我使用带有 xf 选项的 tar 提取了 tar 文件。
使用 tar xzf 提取 tar.gz 也不起作用 :/
使用 7za 我得到
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
tar 文件大小为 3.8 GB
答案1
根据这里你可以tar -xvzf location.tar.gz
这样做。试试看
答案2
您正在提取的目录的名称可能与您正在提取的文件的名称相同,请尝试在提取之前重命名存档文件。
当我遇到类似的问题时,它对我很有用。