I installed LaTeX on my Kubuntu with those commands:

sudo apt-get install abntex
sudo apt-get install texmaker
sudo apt-get install texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended texmaker

but I also need to use listings package for my assignment paper. How to install listings package for LaTeX here?


Ok it turned out that listings wasnt missing it was something different which caused the problem. I found a solution:

mkdir -p /usr/share/texmf-texlive/tex/latex/floatflt
cd /usr/share/texmf-texlive/tex/latex/floatflt
rm -f floatflt.* float*.tex
wget http://mirror.ctan.org/macros/latex/contrib/floatflt/floatflt.ins
wget http://mirror.ctan.org/macros/latex/contrib/floatflt/floatflt.dtx
latex floatflt.ins
texhash /usr/share/texmf-texlive
  • 2
    Might be best suitable on tex.stackexchange.com – mtk Jan 28 '13 at 12:10
  • 2
    Hey Katie: rather than editing the answer into your question, it's best to actually provide it as a new answer, which you can then mark as accepted. That keeps the questions and answers nicely separate and makes it easier for future visitors to recognize that there's a solution (rather than just a really long question with updates). – mattdm Jan 28 '13 at 13:57
  • If the listings package was not missing, then what was the problem? Any error message? – njsg Jan 28 '13 at 17:05
  • @mtk: Even better: askubuntu.com – Martin Schröder Jan 29 '13 at 9:25

I recommend you to use apt-file to search for the package that contains a specific file.

If you invoke

apt-file search listings.sty

you should find the package that contains listings.

On my system it's contained in texlive-latex-recommended that you have already installed.

To play it safe i would execute


to update latex's directory tree.

If you can't get it working after that i'm pretty sure that something else is wrong.

| improve this answer | |
  • 3
    For me, apt-get install texlive-latex-recommended was the solution. Thanks for the tip about apt-file! – Ilmari Karonen Mar 13 '16 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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