TinyTex installation doesn't succeed: "This program is blocked by a group policy. For more information, contact your system administrator.""
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.2k
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to install the TinyTeX distribution (TinyTeX-1) for a client with restricted admin rights in a Windows environment. When trying to install TinyTeX (tinytex::install_tinytex), I always get this message: "This program was blocked by a group policy. For more information, contact your system administrator". The download from https://yihui.org/tinytex/TinyTeX-1 works fine. I have also tried to install TinyTex on a local folder, where I know I have admin rights, and that has not worked. I get the same error message. So my question is:
- Is this error message because tlmgr wants to download from a CTAN mirror that is blocked by the firewall,
- or is it that the installation wants to execute an application that is blocked?
I have tried to add all the necessary paths correctly before the installation.
Sys.setenv((PATH = paste("C:/Users/[user]/AppData/Roaming/TinyTeX/bin", Sys.getenv("PATH"), sep = ";"))
options(tinytex.tlmgr.path = "C:/Users/[user]/AppData/Roaming/TinyTeX/bin/windows/tlmgr.bat")
Unfortunately, I can't give more specifics about the PC, because I currently don't have access to it. I am trying to solve the issue remotely.
I have been trying to resolve this issue for weeks now. I have check all the resolved issues available. Thanks a lot for your help!
By filing an issue to this repo, I promise that
- I have fully read the issue guide at https://yihui.org/issue/.
- I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/tinytex'). - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tinytex::install_tinytex and the configured TinyTeX bin and tlmgr.bat paths in the issue. Reproduce the installation on the restricted Windows system and determine whether the group policy blocks CTAN access or an installer executable; done requires a confirmed cause and actionable installation guidance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, r
- Domain
- operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100