Como se señaló en los comentarios ,este método no funciona para archivos que están correctamente formados, sin embargo, como muestra otra respuesta , debe agregar --strip-components 1
para que esto realmente funcione. He probado con esta nueva opción y funciona tanto para archivos con un nombre de nivel superior -como para los que no lo tienen.
De askUbuntu, esta respuesta funcionó para mí:
tar zxvf ugly_name.tgz --one-top-level=pretty_name
`--one-top-level[=dir]'
Tells tar to create a new directory beneath the extraction directory (or the one passed to `-C') and use it to guard against tarbombs. In the absence of dir argument, the name of the new directory will be equal to the base name of the archive (file name minus the archive suffix, if recognized). Any member names that do not begin with that directory name (after transformations from `--transform' and `--strip-components') will be prefixed with it. Recognized file name suffixes are `.tar', and any compression suffixes recognizable by See -auto-compress.
По сути, ответ на этот вопрос содержится в serverfault .
Резюме:
Exit code 143 means that the program received a SIGTERM signal to instruct it to exit, but it did not handle the signal properly.
[This can be suppressed] by adding the exit code into the unit file as a "success" exit status:
[Service]
SuccessExitStatus=143
Другой ответ по ссылке выше добавляет больше деталей.