When I use XeLaTeX to compile TeX in Ubuntu 22.04, it shows this error:

Package: moderncvcolorblue 2021-12-16 v2.3.0 modern curriculum vitae and letter
 color scheme: blue

! LaTeX Error: File `ctex.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.
<read *>

l.7 \usepackage
End of file on the terminal!

This is the tex file:





\email{[email protected]}





what should I do to fixed this issue?

  • 2
    If ctex.sty is not found, it is not installed. Depending on how you've installed TeX Live you either have to install it using tlmgr or the Linux package manager. With the linux package manage you need at least sudo apt-get install texlive-lang-chinese, but I would recommend to use sudo apt-get install texlive-full to install all of TeX Live provides by Ubuntu.
    – cabohah
    Jun 3, 2023 at 9:52
  • Related (but with another package): tex.stackexchange.com/q/28627/277964
    – cabohah
    Jun 3, 2023 at 10:01
  • I Installed followed the official document tug.org/texlive/quickinstall.html
    – Dolphin
    Jun 3, 2023 at 11:41

2 Answers 2


Finally I run this command and fixed this issue:

sudo apt install latex-cjk-all
  • 2
    this answer does not match your comment under the question. tug.org/texlive/quickinstall.html would install an upstream texlive not managed by apt. This updates the debian/ubuntu system texlive apt package. Your log /usr/share/texlive/ in the question does show you are using the system tex not texlive from tug.org Jun 3, 2023 at 18:03

If your OS is ubuntu:

sudo apt install texlive-full

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .