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.
aptfirst. – cfr Jul 16 '15 at 01:36apt-get remove texliveor something like that on the command line? – Guilherme Zanotelli Jul 16 '15 at 02:26ls -l /opt/texbin/i386-linux /usr/bin/texgive? 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 packageaptknows about? (I don't know if 'own' is the right term on Ubuntu.) – cfr Jul 16 '15 at 02:43ls: 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:52which texgives the output you said. But trysudo 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 ofls -a /opt/texbin. – cfr Jul 16 '15 at 03:06/opt/texbinonly 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.rmdirwon'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:10apt. I run the commandapt-get remove texliveand terminal responded with "there's no texlive anymore but there're still some packages related to it typeapt-get autoremove texliveto 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