teatimeguest / setup-texlive-action

A GitHub Action to set up TeX Live
https://github.com/marketplace/actions/setup-texlive-action
MIT License
41 stars 2 forks source link

Always failed with UNABLE_TO_VERIFY_LEAF_SIGNATURE #315

Open PaleNeutron opened 2 months ago

PaleNeutron commented 2 months ago
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 commented 2 months ago

I found solution here https://github.com/teatimeguest/setup-texlive-action/issues/304#issuecomment-2171031060

muzimuzhi commented 2 months ago

I saw in https://github.com/dexplo/dataframe_image/commit/64cee1173bff9c7d898f63f082601d8256a24fcc 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 commented 2 months ago

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

teatimeguest commented 2 months ago

@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 commented 2 months ago

@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 commented 2 months ago

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 https://github.com/teatimeguest/setup-texlive-action/issues/315#issuecomment-2351021745 I asked

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

teatimeguest commented 2 months ago

@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/