1

I've read all answers on "How to install "vanilla" Tex Live on Debian or Ubuntu?" and used scottkosty's script to do so. I'm getting an error at the end of installation process:

install-tl-ubuntu: install-tl finished successfully.
install-tl-ubuntu: linking...
ln: failed to create symbolic link ‘/opt/texbin/i386-linux’: File exists
install-tl-ubuntu: ERROR: could not link.

Same thing happened when I tried manual install: when getting to change the PATH variable and typing which tex the command line gave /usr/bin/tex instead of /opt/texbin/tex, which for me indicated that the symbolic link was not properly created. But, as I have pretty close to zero experience on Ubuntu command line (or command line for that matter) and just started using -falling in love with- TeX to typeset my documents though I'd ask here. What's going wrong? If so needed, what more info can I give to specify, at best, my issue?

Don't know if it matters or not, but before trying to install vanilla I had TexLive installed via apt-get texlive. Then, following a chronological order: I removed TexLive following This, tried to install vanilla using Silek's method (didn't work, as said before), removed again, finally got to the script by scott assuming I was doing something wrong, got to the same problem, where I'm still stuck.

  • Did you make sure that you had no installation installed by Ubuntu's package manager first? That is, you need to uninstall any TeX Live packages installed by your distro's package manager. The good news is that the installation was successful so you don't need to install it again. It is just a matter of creating the symbolic link. You can use the relevant part of Silke's answer for that. But make sure to remove TeX Live packages installed by apt first. – cfr Jul 16 '15 at 01:36
  • As far as removing the remainings of the previous Tex distro I did as said in "How to remove everything related to TeX Live for fresh install on Ubuntu?". Is that not it? Should I type apt-get remove texlive or something like that on the command line? – Guilherme Zanotelli Jul 16 '15 at 02:26
  • What does ls -l /opt/texbin/i386-linux /usr/bin/tex give? Did you get errors or warnings when following the removal instructions? Does a package own /usr/bin/tex? If so, which one? I mean, does it belong to a package apt knows about? (I don't know if 'own' is the right term on Ubuntu.) – cfr Jul 16 '15 at 02:43
  • @cfr I get this by running what you said ls: cannot access /usr/bin/tex: No such file or directory lrwxrwxrwx 1 root root 38 Jul 15 15:37 /opt/texbin/i386-linux -> /usr/local/texlive/2015/bin/i386-linux. I don't know enough about the system to answer the other questions, sorry... – Guilherme Zanotelli Jul 16 '15 at 02:52
  • That doesn't make much sense if which tex gives the output you said. But try sudo rm /opt/texbin/i386-linux; sudo rmdir /opt/texbin; sudo ln -s /usr/local/texlive/2015/bin/i386-linux /opt/texbin. If the second command gives you an error, STOP! In that case, report the output of ls -a /opt/texbin. – cfr Jul 16 '15 at 03:06
  • Note that the second command removes the directory /opt/texbin only if that directory is already empty. If it is not, you'll get an error. Don't delete the contents but tell us what they are. That's why I said STOP! I'm not suggesting removing the directory if it still contains stuff after removing the symbolic link. rmdir won't remove a directory unless it is empty. It is thus safe to use here. Just don't try variations which would delete stuff regardless. You don't want to make things worse. – cfr Jul 16 '15 at 03:10
  • It worked perfecly! Didn't quite understood what was done though, seemed to me it was the same thing I did before, when trying to create the symbolic link. But I think you were right about removing the packages installed by apt. I run the command apt-get remove texlive and terminal responded with "there's no texlive anymore but there're still some packages related to it type apt-get autoremove texlive to remove them", and afterwards I did what you said above to retry making the symbolic link! At last it's working, thank you very much @cfr! – Guilherme Zanotelli Jul 16 '15 at 15:50

0 Answers0