Skip to content

Archive value out of uid_t range (Windows) #2

@Rybec

Description

@Rybec

On Windows, I get a series of errors from tar saying the uid_t and gid_t are out of range, when extracting the sandbox_outer archive. (Reporting this from another system, otherwise I would copy/paste the error, though I already researched it for you (see below), so you probably don't need it.)

According to some research I did, this typically means you are trying to extract the archive as root (not sure how this plays out in Windows), and the id of the user that created the file on the source system is higher than your system allows. According to tar's documentation, the --no-same-owner switch is supposed to avoid this error by extracting the file as being owned by the current user, however, when I added this in the pynbox script, it didn't work. With or without, though, it did extract the files, the problem is that the tar error terminates the script early, which prevents it from installing the rest of the packages.

I believe this can be easily fixed, by repackaging sandbox_outer, after changing the owner and group of the files and directory it contains to a user with an id lower than ~65000. (Evidently this is a common problem for users on Windows domains, because they use absurdly large user IDs.)

In case anyone else has this problem, this is how I got around it:

  1. I opened the pynbox script, and I commented out the tar line (line 135, on the version I have).
  2. I ran the script as specified in the instructions, which now will download all of the specified components but does not extract them.
  3. I went into the build/packages subdirectory and manually extracted them with something like tar -C ~/destination -xvf python.2.7.11d.tbz2

Note that when I extracted the sandbox_outer package, I still got the tar error, but the files seem to be intact. The other packages extracted without error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions