[Tex/LaTex] Ubuntu 14.04.1 64-bit LTS TexLive 2014 Installation Problems

installingtexlivetexstudioUbuntu

I installed TexLive 2014 from the iso image I downloaded from TexLive images.The installation went on perfectly smooth and I also had the installer create symlinks inside /usr/bin. However, when I tried to install TexStudio the editor via the package manager apt-get Ubuntu also installed some older TexLive packages which I suspect that might have corrupted my original installation. How can I remove the older TexLive packages installed before installing TexStudio without affecting my original TexLive 2014 installation? Furthermore, when I go into /usr/bin I noticed that one of the symlinks was broken, namely mkluatexfontdb, the output of ll command is as follows:

 ll mkluatexfontdb
lrwxrwxrwx 1 root root 55 Oca  2 22:27 mkluatexfontdb -> /usr/local/texlive/2014/bin/x86_64-linux/mkluatexfontdb

I checked in the directory pointed out by the link and confirmed that the file mkluatexfontdb did not exist. What can I do about it?

Best Answer

There are several issues here:

  • you have put the symlink into /usr/bin, which is not a good idea, as this is a directory that is managed by dpkg/apt. You should have installed them into /usr/local/bin (etc) as suggested by the installer

  • after that, you installed texstudio and by this the dependencies on texlive packages in Ubuntu. Since the Debian/Ubuntu packages also contain the same files in /usr/bin, all the smylinks are hosed. In particular, the link targets are overwritten with the version of binaries in the Debian/Ubuntu packages.

What you should do is:

  • remove textudio, Debian/Ubuntu texlive packages, and your local TeX Live installation in /usr/local/texlive

  • install again from the iso image, or better directly from the network installer, generating links into /usr/local

  • use the equivs feature (see above comments) for building a texlive-local package, install that

  • finally you can install all kind of programs from the Debian/Ubuntu repositories without having your installation hosed, and other texlive package installed.

Related Question