Edit Links |
LyX /
LyXOnUbuntu
<< | Page list | >>
How to correctly install LyX on Ubuntu. (Debian users should check LyXOnDebian.) Table of contents (hide)
1. Installation1.1 Ubuntu official reposThe version of LyX provided by the official repositories is often out of date, but unless you need features or bug fixes from more recent versions, that may be fine.
sudo apt install lyx
This will install TeXLive from Ubuntu's repositories (if it wasn't already installed).
sudo apt install --no-install-recommends lyx
If LyX doesn't recognize your TeX distribution (go to Tool->TeX information, and see if anything appears), you need to add it's path to the .profile file. For example (adjust as needed), add the following line:
export PATH=$PATH:/usr/local/texlive/2026/bin/x86_64-linux
Then log out and back in, and restart LyX. You might also need to use the Tools->Reconfigure option. See also here.
1.2 Ubuntu PPANote: this option is obsolete. The stable PPA, set up by Liviu Andronic, used to be the easiest option, but the repository has not been updated since 2021 and is obsolete now. If you still want to use it, use the following instructions. If you want to get an up-to-date version, your best options are to get the Debian package or to compile from source, as described below. InstallingIf you already have a repository version of LyX installed, you should remove it:
If you don't do this, the fourth step that follows may fail. Do the following:
You will probably have to press "Enter" after step 1 (adding the PPA). UninstallationTo uninstall the package, do as you would for any package with apt-get. You may want to stop using a PPA for various reasons. One way to "pause" the PPA is to do the following: Open Ubuntu Software Center and go to Edit > Software Sources > Other Software and uncheck the two entries corresponding to the PPA of interest. 1.3 Debian binariesThis method will allow you to get the most recent release as a binary, without compiling from source.
#
If you encounter errors, make sure you have an up-to-date version of TexLive. 1.4 Manual compilationTo compile LyX from source, do the following:
2. FAQ2.1 Tip: Use MPM with UbuntuMPM is the MiKTeX Package Manager (MiKTeX being the most popular LaTeX distribution for the Windows platform). It has been ported to Unix and descendants, albeit command-line only (so far). One nice feature of MiKTeX is that LaTeX packages are provided for download individually, rather than in large bundles. A blog entry by Stefan Kottwitz gives concise instructions on how to install MPM in Ubuntu Hardy. Once it's installed, you can easily download and install individual LaTeX packages. For instance, I installed xypic.sty using the line /Paul 2.2 Tip: Where are the examples files?The examples files are in /usr/share/lyx/examples/, however, they cannot be accessed by LyX as a user, since they are read only. So you must use terminal to go to /usr/share/lyx/ and then do cp -r examples ~/Documents/lyx/examples. This will create a directory with read/write permissions in your home directory. 2.3 Creating documents in other languagesHebrewTo set up Hebrew, see Hebrew On Linux. HindiPlease follow guide at http://wiki.lyx.org/UbuntuLinux/Hindi 2.4 Categories |