** (Mix) Unpacking tarball failed

mix deps.get -> ** (Mix) Unpacking tarball failed: inner tarball error, no such file or directory

Anyone have some solutions for this error?

I haven’t had this type of problem, but you can try the following, make sure your internet connection is working, clear your local cache, and then re-run the Mix command

This is likely a permission error again, judging by your previous thread.

I just came across this error now running mix deps.get inside a Dockerfile, and I have to say that (in my case) this was a permission error.

Just adding

USER root

inside that file solved the problem.

Another solution, is to stay with your less privileged USER, but to not forget to do your copies like this

COPY --chown=$USER ...

as by default (see COPY):

All files and directories copied from the build context are created with a UID and GID of 0 unless the optional --chown flag specifies a given username, groupname, or UID/GID combination to request specific ownership of the copied content.

1 Like