"! LaTeX Error: File `*.sty' not found.": Travis build w/ texlive-latex3 & texlive-latex-extra

I am getting the error: “! LaTeX Error: File `ocgcolor.sty’ not found.” in a Travis build.
Note the

- sudo apt-get install texlive texlive-latex3
- sudo apt install texlive-latex-extra

lines before install in the .travis.yml file. Following is the full file, but the rest of it shouldn’t matter:

sudo: required
- sudo apt-get -qq update
- sudo apt-get install texlive texlive-latex3
- sudo apt install texlive-latex-extra
- ./build.sh
  provider: script
  script: ./travis_deploy.sh
  skip_cleanup: true
    branch: master
    - ENCRYPTION_LABEL="19a81de38b62"
    - COMMIT_AUTHOR_EMAIL="chris@ethereum.org"
    - COMMIT_AUTHOR="Travis CI"
    - PUSH_REPO="git@github.com:ethereum/yellowpaper.git"

Interestingly, /usr/share/texlive/texmf-dist/tex/latex/ocgx/ocgx.sty is included here: https://packages.ubuntu.com/trusty/all/texlive-latex-extra/filelist.

The travis_deploy script shouldn’t make a difference, but here it is anyway.

In the preamble of the Tex file:


The preamble also has other related packages, but they shouldn’t cause the error:


with options, as well as 


This should probably be on the Project Dev and Advice board.

Hi @jamesray1,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.


This has been resolved at https://tex.stackexchange.com/questions/412790/how-to-install-the-ocgx2-package-which-is-not-available-on-https-packages-ubun and https://github.com/agrahn/ocgx2/issues/7.