How to get around this error when unTarring an archive “tar: Cannot change ownership to uid 1000, gid 1000: Operation not permitted”
The problem is described here. This problem arises when trying to untar in a context where tar thinks it is root (e.g. a Docker container). The solution is to add the flag --no-same-owner
:
tar -zvxf training.tar.gz -C data/multi30k --no-same-owner