Ubuntu tar reports an error when decompressing tar: Ignoring unknown extended header keyword... solution

When using tardecompression, the following error occurs:

tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.FinderInfo'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.lastuseddate#PS'
......

Originally, this error report would not have any impact on the compressed content and could be ignored. But... uncomfortable! ! ! Obsessive-compulsive disorder can be cured.

After searching, it is found that the reason for this error is that this tarfile is Mac OS Xpackaged and compressed on , Mac OS Xusing BSD tar, so it will generate some GNU tarunrecognizable additional information.

Once the problem is found, the solution is simple, just put the file to be packed and compressed on Linuxthe server for execution.

Guess you like

Origin blog.csdn.net/yilovexing/article/details/126424372
tar