I've spent two days messing about with this now!

If I install TexLive from the repositories, I'm unable to use tlmgr to update it, and Lyx can't find any of the document classes.

the "Tex Information" config option lists them all happily, and LaTex works fine, so there's obviously something broken in Lyx (and yes, I've reconfigured, texhashed and even rebooted)

SO, uninstalling TexLive and reinstalling from the TexLive installer (not the apt repos) works fine (except the default install location is /usr/local which requires root permissions despite installer instructions to not install as root. I had to manually create the install directory and chmod it to get the install to work as myself). I have a working, tested Tex install!

but now, of course, I can't install Lyx because apt doesn't know that I have a working Tex install and insists that I need the tex-common package installed with my lyx package, which will overwrite my lovely working tlmgr-able tex install with an old version that won't work with tlmgr and put me back with Lyx not being able to find document classes.

Is it always this hard? The just all feels broken to me...What am I getting wrong? How does anyone get Lyx working?

  • On Ubuntu/Debian it does seem to just work. By doing a manual install you omit items required by the package system, so that then creates other problems, as you've found. It might be easier to revert to the package system and then ask for help solving that. Your idea of checking the tex install first is a good one. I'd uninstall the manual tex installation. Purge all lyx and tex packages (not just remove), and then try to reinstall lyx. Lyx should bring in all the required packages. – penguinpreferred Nov 19 '14 at 2:48
  • You might be interested in github.com/scottkosty/install-tl-ubuntu . To use it, uninstall everything you've installed then run sudo ./install-tl-ubuntu. If you want to install all of the dependencies that LyX needs so that you can compile every single LyX example and template, run instead sudo ./install-tl-ubuntu --more-tex. – scottkosty Nov 19 '14 at 2:52
  • looks interesting, that will actually solve the repo problem I guess, so at least I'll be able to install Lyx without overwriting texlive... I'll give it a go and report back :) thanks! – mfhholmes Nov 19 '14 at 2:57
  • You should see this question. Note that the script @scottkosty pointed to almost certainly will install as root which, as you say, is not recommended by upstream. These instructions explain how to create a new user to do the installation (and why you should do this rather than install as either yourself or root). Disclaimer: Those are my instructions. I wrote them because I don't know of any others. – cfr Nov 19 '14 at 3:03
  • I agree with cfr (and he is correct on his points). My script is just if you want something simple that works. – scottkosty Nov 19 '14 at 3:13

Your Answer

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

Browse other questions tagged or ask your own question.