I have this document that used to compile fine until a couple of weeks ago, but now I'm getting:
! Package caption Error: For a successful cooperation we need at least version
(caption) `2004/02/13 v1.2' of package listings,
(caption) but only version
(caption) `2002/04/01 1.0 (Carsten Heinz)'
(caption) is available.
See the caption package documentation for explanation.
Type H <return> for immediate help.
...
l.6 \begin{document}
?
! Undefined control sequence.
<argument> ...t@title \endgroup }\newcaptionstyle
{lsttitle} {\caption@make {...
l.6 \begin{document}
us problem, so I'm exiting ...
***?
So I guess I have to install a newer version of listings? How can I?
listingspackage. Download its files. As superuser (sudo) use those files to replace the ones already in your installation. If that fails, then use Ubuntu's package manager to re-install the original. – Oct 21 '16 at 01:36sudo apt-get remove texlive,sudo apt-get autoremove,sudo apt-get remove tex-commonand thensudo apt-get install texlive texlive-latex-extra texlive-lang-portuguese, but now I get! LaTeX Error: File 'abntex2.cls' not found. This is from a package that was supposed to be installed automatically with TeX Live. – Raphael Oct 21 '16 at 01:51kpsewhich. If all the files are from Ubuntu and your system if fully updated, then report the problem to the package managers. If you were using standard TeX Live we could be of more help, but if you use distro packages, it is always somewhat piecemeal and never entirely straightforward. Personally, I'd remove the Debian packages completely and install from upstream, but I realise others prefer to stick with their distros packages. – cfr Oct 21 '16 at 02:35kpsewhich listings.stygives/usr/share/texmf/tex/latex/fpc-3.0.0/listings.sty. – Raphael Oct 21 '16 at 14:51caption.styis also from Ubuntu's package, then you should report the problem. – cfr Oct 21 '16 at 16:05caption.styis in/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty. (I'm not sure how to figure if it is from Ubuntu's package or not). – Raphael Oct 21 '16 at 18:31/usr/share. Probablyaptcan tell if it recognises the file or not but I don't have a Debian-flavoured system to investigate right now. (At least, nothing like a current one.) – cfr Oct 21 '16 at 20:56