Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always failed with UNABLE_TO_VERIFY_LEAF_SIGNATURE #315

Open
PaleNeutron opened this issue Sep 14, 2024 · 7 comments
Open

Always failed with UNABLE_TO_VERIFY_LEAF_SIGNATURE #315

PaleNeutron opened this issue Sep 14, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@PaleNeutron
Copy link

Run teatimeguest/setup-texlive-action@v3
Restoring cache
Installation profile
Installing TeX Live
| InstallTLError: Failed to download install-tl
|     at download (setup-texlive-action/v3/packages/texlive/src/install-tl/cli.ts:185:19)
|     at acquire (setup-texlive-action/v3/packages/texlive/src/install-tl/cli.ts:116:[15](https://github.com/dexplo/dataframe_image/actions/runs/10844820731/job/30113460578#step:6:16))
|     at install2 (setup-texlive-action/v3/packages/action/src/runs/main/install.ts:43:21)
|     at setup-texlive-action/v3/packages/action/src/runs/main/index.ts:39:7 {
|   code: 'FAILED_TO_DOWNLOAD',
|   repository: 'https://mirror.math.princeton.edu/pub/CTAN/systems/texlive/tlnet/',
|   [cause]: Error: unable to verify the first certificate
|    {
|     code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
|   }
| }
Error: InstallTLError: Failed to download install-tl

See my action https://github.com/dexplo/dataframe_image/actions/runs/10844820731/job/30113460578

@PaleNeutron
Copy link
Author

I found solution here #304 (comment)

@muzimuzhi
Copy link
Contributor

I saw in dexplo/dataframe_image@64cee11 you added repository and version inputs, so the step now becomes

    - name: Setup TeX Live
      uses: teatimeguest/setup-texlive-action@v3
      with:
        cache: true
        packages: >-
          scheme-basic
          collection-xetex
          collection-fontsrecommended
          collection-mathscience
          collection-pictures
          collection-latexextra
        repository: https://mirrors.tuna.tsinghua.edu.cn/tex-historic-archive/systems/texlive/2023/tlnet-final/
        version: 2023

Is the historic TeX Live 2023, rather than TeX Live 2024, really the version you want to use?

@PaleNeutron
Copy link
Author

PaleNeutron commented Sep 15, 2024

I still want to track the latest texlive, this commit is just a test.

@teatimeguest teatimeguest added the bug Something isn't working label Sep 20, 2024
@teatimeguest
Copy link
Owner

@PaleNeutron Sorry for the late response. To use the latest version, select a CTAN mirror from here and set the repository input as follows:

with:
  repository: <CTAN mirror URL>/systems/texlive/tlnet/

For example, if you choose

https://ctan.math.washington.edu/tex-archive/

then the repository URL is

https://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/

@PaleNeutron
Copy link
Author

@PaleNeutron Sorry for the late response. To use the latest version, select a CTAN mirror from here and set the repository input as follows:

with:
  repository: <CTAN mirror URL>/systems/texlive/tlnet/

For example, if you choose

https://ctan.math.washington.edu/tex-archive/

then the repository URL is

https://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/

It seems not all repositories have the same structure, for example, THU's mirror path is 404

https://mirrors.tuna.tsinghua.edu.cn/tex-historic-archive/systems/texlive/tlnet/

@muzimuzhi
Copy link
Contributor

muzimuzhi commented Sep 21, 2024

Not all CTAN mirrors mirror the historic archives. If you are going to use the latest yearly TeX Live version, then there's no need to use the historic archives.

That's why in #315 (comment) I asked

Is the historic TeX Live 2023, rather than TeX Live 2024, really the version you want to use?

@teatimeguest
Copy link
Owner

@PaleNeutron It appears not to be a CTAN mirror URL, but rather (part of) a URL for the historic archive.

According to the mirror list page, the CTAN mirror on tsinghua.edu.cn is located at

https://mirrors.tuna.tsinghua.edu.cn/CTAN/

So if you want to use the latest version via tsinghua.edu.cn, you need to set as follows:

with:
  repository: https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants