首页 > 解决方案 > 无法升级或以其他方式更改 Heroku 上的 tex-live 安装

问题描述

由于 tex-live 不兼容,现在将我的应用程序更新推送到 Heroku 被拒绝。请参阅下面的错误消息。

Heroku 错误信息

remote: tlmgr: Remote repository is newer than local (2018 < 2019)
remote: Cross release updates are only supported with
remote:   update-tlmgr-latest(.sh/.exe) --update
remote: Please see https://tug.org/texlive/upgrade.html for 
details.
remote:  !     Push rejected, failed to compile TeX Live app.

我尝试了以下方法:

  1. 添加一个texlive.repository包含内容的文件ftp://tug.org/historic/systems/texlive/2018/tlnet-final。这不起作用,因为 texlive 存储库缺少所需的加密证书。

  2. 删除 texlive buildpack 并重新开始。下面是我的 buildpack 配置。但是,当我尝试删除它时,我收到以下消息:

    $ heroku buildpacks:remove syphar/heroku-buildpack-tex › 错误:https ://buildpack-registry.heroku.com/buildpacks/syphar%2Fheroku-buildpack-tex 处的 JSON 响应正文无效原因:JSON 输入意外结束

在这一点上,我被卡住了!

Heroku 构建包

$ heroku buildpacks
=== nshost Buildpack URLs
1. https://github.com/HashNuke/heroku-buildpack-elixir.git
2. https://github.com/syphar/heroku-buildpack-tex.git

标签: herokutex-live

解决方案


这有效:在文件 texlive.packages 中,替换

ftp://tug.org/historic/systems/texlive/2018/tlnet-final

https://www.math.utah.edu/pub/texlive/historic/systems/texlive/2018/tlnet-final

解决方案由犹他大学数学系 Nelson Beebe 提供


推荐阅读