0

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?

  • Don't install TeXstudio from the repositories. Download it from here: texstudio.sourceforge.net – Sigur Jan 3 '15 at 23:07
  • @Sigur Unfortunately I installed it already would uninstalling everything related to Tex mess up with my original installation? – Vesnog Jan 3 '15 at 23:09
  • 1
    TeXstudio has no relation with your TeXlive installation. You just need to point to the right path when configure TeXstudio so it will use the right executable. – Sigur Jan 3 '15 at 23:11
  • 1
    From TeX Live and Debian/Ubuntu, "Integrating vanilla TeX Live with Debian", you may be able to use TeXstudio from Ubuntu with upstream TeX Live, but you'll have to use the equivs package to fool the Ubuntu package manager into thinking their TeX Live is installed. Or you could keep using the Ubuntu TL 2013 that came with 14.04. It's not horribly out of date, but that depends on what you really need. – Mike Renfro Jan 3 '15 at 23:24
  • 1
    Using apt to uninstall the Debian TeXLive packages should not touch your manual install (unless things have changed recently). I'd purge the install along with TeXStudio; then use the tlmgr utility to update (if needed) manual install; then set up the equivs as suggested; then install TeXStudio. (Sadly, I can't help with the broken link: never heard of the 'file' before, and it doesn't seem to be present on my system [tlmgr revision 35841 using TeX Live 2014].) – jon Jan 3 '15 at 23:40
2

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.

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.