Use ubuntu:20.04 Install necessary packages apt install texlive-full In VSCode: Install LaTeX Workshop v9.0.1 (this version has auto refresh pdf after build)