TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
! LaTeX Error: File `mypackage.sty' not found.

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

I am getting the above error message in Ubuntu 10.10. I used this on the Windows machine with MikTeX and it worked fine. I am running TeX Live 2010 on my Ubuntu machine. I put mypackage.sty in a folder called mypackage under directory

share|improve this question
up vote 12 down vote accepted

You should not put files into /usr/local/texlive/2010/texmf-dist/tex/latex. That directory should be reserved for TeXLive itself.

If you are on a multi-user system, you can put files into /usr/local/texlive/texmf-local/, but if it's just you on your linux machine, it's easier to put them in ~/texmf. If you do need them in the texmf-local folder you will need to run sudo mktexlsr to rebuild the file database. If you put things into ~/texmf you don't need to do this and your packages will always be found.

See this answer for more details.

share|improve this answer
It could be worth mentioning that for "one-off" packages, it could just be put in the same directory as the .tex file. – Seamus Jan 13 '11 at 10:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.